Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 933 Bytes

File metadata and controls

44 lines (35 loc) · 933 Bytes

PolyMedialAxis

Description

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

Parameters

Name Type Description
h HANDLE

Examples

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

Version

Availability: from Vectorworks 2014

Category