Use of Geometry::OffsetPolygon2DData() function.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-04
08:11 AM
- last edited on
2023-08-03
01:33 PM
by
Doreena Deng
2009-11-04
08:11 AM
Hi,
I want to use Geometry::OffsetPolygon2DData() function.
The structure of this function is
Geometry::OffsetPolygon2DData(const Polygon2DData& poly, Vector offset, Polygon2Ddata* offsetedPoly);
But, I don’t have offset as the Vector (I have in double (Distance)) to pass to this function.
How do I convert Distance (double) to offset (Vector)?
Can anyone please give me an example how to use Gepmetry::OffsetPolygon2Ddata() function.
I want to use Geometry::OffsetPolygon2DData() function.
The structure of this function is
Geometry::OffsetPolygon2DData(const Polygon2DData& poly, Vector offset, Polygon2Ddata* offsetedPoly);
But, I don’t have offset as the Vector (I have in double (Distance)) to pass to this function.
How do I convert Distance (double) to offset (Vector)?
Can anyone please give me an example how to use Gepmetry::OffsetPolygon2Ddata() function.
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-04 03:54 PM
2009-11-04
03:54 PM
Ranga wrote:I don't use these functions, but it seems straightforward. You can't be moving a polygon by just a distance, there must also be a direction. So convert the distance and angle to a vector (as an x, y, z offset).
I want to use Geometry::OffsetPolygon2DData() function.
I don’t have offset as the Vector (I have in double (Distance)) to pass to this function.
How do I convert Distance (double) to offset (Vector)?
Ralph Wessel BArch
Central Innovation
Central Innovation