You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stephen S. Mitchell edited this page Apr 25, 2026
·
4 revisions
Namespace: AlibreScript.API
Kind: Class
Methods
PolylinePoint3D
Creates a new 3D polyline point
defPolylinePoint3D(x, y, z):
"""Creates a new 3D polyline pointArgs:x (float): X coordinatey (float): Y coordinatez (float): Z coordinate"""
Offset
Applies an offset to the point and creates a new point
defOffset(x, y, z):
"""Applies an offset to the point and creates a new pointArgs:x (float): X offset to applyy (float): Y offset to applyz (float): Z offset to applyReturns:New point with offset applied"""
Scale
Scales the point location based on an origin for the scaling
defScale(scale_origin_x, scale_origin_y, scale_origin_z, scale_factor):
"""Scales the point location based on an origin for the scalingArgs:scale_origin_x (float): X-coordinate for scaling originscale_origin_y (float): Y-coordinate for scaling originscale_origin_z (float): Z-coordinate for scaling originscale_factor (float): Factor for scaling as a percentageReturns:New point with scaling applied"""