How to determine the angle at the end of the wall?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-07-10
01:54 PM
- last edited on
‎2022-10-04
04:29 PM
by
Daniel Kassai
‎2019-07-10
01:54 PM
API_WallType has a "poly" property.
But it contains the original polygon of the original wall without taking into account the docking.
But it contains the original polygon of the original wall without taking into account the docking.
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-07-10 02:48 PM
‎2019-07-10
02:48 PM
O'h I'm sorry.
In API guide described API_WallRelation, that contains needed polygon.
For my aim this code works.
API_Polygon* poly;
API_WallRelation relData;
poly = &relData.connPoly;
for (j = 1; j <= poly->nSubPolys; j++) {
begInd = (*relData.pends)[j - 1] + 1;
endInd = (*relData.pends);
for (i = begInd; i < endInd; i++) {
begC = (*relData.coords);
endC = (*relData.coords)[i + 1];
}
}
In API guide described API_WallRelation, that contains needed polygon.
For my aim this code works.
API_Polygon* poly;
API_WallRelation relData;
poly = &relData.connPoly;
for (j = 1; j <= poly->nSubPolys; j++) {
begInd = (*relData.pends)[j - 1] + 1;
endInd = (*relData.pends)
for (i = begInd; i < endInd; i++) {
begC = (*relData.coords)
endC = (*relData.coords)[i + 1];
}
}