Same as IntersectSurface, but improves performance by first checking to see if hClipper is within the bounding box of hPolygon before calling IntersectSurface.
FUNCTION ClipPolygon(
hPolygon : HANDLE;
hClipper : HANDLE;
dFuzz : REAL): HANDLE;def vs.ClipPolygon(hPolygon, hClipper, dFuzz):
return HANDLE| Name | Type | Description |
|---|---|---|
| hPolygon | HANDLE | |
| hClipper | HANDLE | |
| dFuzz | REAL |
resultH := ClipPolygon(hPolygon, hClipper, 1.0);import vs
# Same as IntersectSurface, but improves performance by first checking to see
# if hClipper is within the bounding box of hPolygon before calling
# IntersectSurface.
hPolygon = vs.FSActLayer() # handle to the first selected object on the active layer
hClipper = vs.NextSObj(vs.FSActLayer()) # handle to the next selected object
dFuzz = 1.0
objHandle = vs.ClipPolygon(hPolygon, hClipper, dFuzz)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2014