Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.2 KB

File metadata and controls

48 lines (39 loc) · 1.2 KB

ClipPolygon

Description

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

Parameters

Name Type Description
hPolygon HANDLE
hClipper HANDLE
dFuzz REAL

Examples

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))

Version

Availability: from Vectorworks 2014

Category