Creates a group of lines which represent the weighted medial axis of given polygon.
FUNCTION PolyMedialAxis(h : HANDLE): HANDLE;def vs.PolyMedialAxis(h):
return HANDLE| Name | Type | Description |
|---|---|---|
| h | HANDLE |
BEGIN
if polyHandle <> nil then BEGIN
medAxis := PolyMedialAxis(polyHandle);
IF medAxis <> NIL THEN MedialAxis := CleanMedialAxis(medAxis, minimumRadius);
END;import vs
# Creates a group of lines which represent the weighted medial axis of given
# polygon.
h = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.PolyMedialAxis(h)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2014