VS:OffsetPolyN: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (Transfer Orso to _c_) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<desc> | <desc> | ||
Offsets a polygon or polyline. Uses Parasolid to do it. Equivalent of Voronoy based OffsetPoly.</desc> | |||
</desc> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<def> | <def> | ||
<funcDef lang="vs"> | <funcDef lang="vs"> | ||
FUNCTION OffsetPolyN(h: HANDLE; offsetDistance: REAL; smoothCorners: BOOLEAN) : HANDLE; | FUNCTION OffsetPolyN(h:HANDLE; offsetDistance:REAL; smoothCorners:BOOLEAN) : HANDLE; | ||
</funcDef> | </funcDef> | ||
<funcDef lang="py"> | <funcDef lang="py"> | ||
Line 39: | Line 38: | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
< | <remark> | ||
([[User:CBM-c-|_c_]], 2020): | |||
* smoothCorners will create rounded corners | |||
* there is a suppression of collinear vertexes from the original object, so the resulting poly doesn't necessarily have the same count of vertexes. | |||
([[User:CBM-c-|_c_]], 2011): It outputs a polygon (Type 5), polyline (Type 21) or a group (Type 11), according to the offset geometry and eventual intersections. | |||
OffsetPolyN fails: | |||
([[User: | * on holes, they are ignored | ||
* used from inside plug-in objects: deselects the object instance on drawing at each run, compelling the user to re-select (tested from VW 2011 through 2014, also in 2016). | |||
</remark> | </remark> | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<sample> | <sample></sample> | ||
</ | ----------------------------------------------------------------------------------------------------------- | ||
<seeAlso> | |||
Similar calls: | |||
* [[VS:OffsetPoly]] | |||
* [[VS:OffsetHandle]] | |||
</seeAlso> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from | Availability: from Vectorworks 2009 | ||
</version> | </version> | ||
</vwDoc> | </vwDoc> | ||
[[Category:VS Function Reference|OffsetPolyN]] | [[Category:VS Function Reference|OffsetPolyN]] | ||
[[Category:VS Function Reference: | [[Category:VS Function Reference:Graphic Calculation|OffsetPolyN]] |
Latest revision as of 05:21, 30 December 2020
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Offsets a polygon or polyline. Uses Parasolid to do it. Equivalent of Voronoy based OffsetPoly.
FUNCTION OffsetPolyN(
h :HANDLE;
offsetDistance :REAL;
smoothCorners :BOOLEAN) : HANDLE;
def vs.OffsetPolyN(h, offsetDistance, smoothCorners): return HANDLE
Parameters
h HANDLE offsetDistance REAL smoothCorners BOOLEAN
Remarks
(_c_, 2020):
- smoothCorners will create rounded corners
- there is a suppression of collinear vertexes from the original object, so the resulting poly doesn't necessarily have the same count of vertexes.
(_c_, 2011): It outputs a polygon (Type 5), polyline (Type 21) or a group (Type 11), according to the offset geometry and eventual intersections. OffsetPolyN fails:
- on holes, they are ignored
- used from inside plug-in objects: deselects the object instance on drawing at each run, compelling the user to re-select (tested from VW 2011 through 2014, also in 2016).
Version
Availability: from Vectorworks 2009
See Also
Similar calls:
Similar calls:
- [[VS:OffsetPoly]]
- [[VS:OffsetHandle]]