Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.17 KB

File metadata and controls

56 lines (46 loc) · 1.17 KB

Polygonize

Description

Polygonize polylines and polygons.

FUNCTION Polygonize(
				h                  : HANDLE;
				segmentationLength : REAL;
				polygonizeStraight : BOOLEAN): HANDLE;
def vs.Polygonize(h, segmentationLength, polygonizeStraight):
    return HANDLE

Parameters

Name Type Description
h HANDLE
segmentationLength REAL
polygonizeStraight BOOLEAN

Examples

BEGIN
	hPoly2 := Polygonize(hPoly, resolution, FALSE);
	DelObject(hPoly);
	PolygonizeAndDeleteOrig := hPoly2;
END;

BEGIN
	tempSegLength	:= segLength * ( 25.4 / GetPrefReal( 152 ) );
	h 				:= Polygonize( polyHandle, tempSegLength, true );
	polyHandle		:= h;
END;
import vs

# Polygonize polylines and polygons.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
segmentationLength = 1.0
polygonizeStraight = True

objHandle = vs.Polygonize(h, segmentationLength, polygonizeStraight)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

Version

Availability: from Vectorworks 2018

Category