Skip to content

PolylinePoint3D

Stephen S. Mitchell edited this page Sep 23, 2025 · 3 revisions

PolylinePoint3D

← Back to Classes | Documentation Home | Methods Index | Properties Index

  • Namespace: AlibreScript.API
  • Kind: Class

Methods

PolylinePoint3D

Creates a new 3D polyline point

def PolylinePoint3D(x, y, z):
    """
    Creates a new 3D polyline point

    Args:
        x (float): X coordinate
        y (float): Y coordinate
        z (float): Z coordinate

    """

Offset

Applies an offset to the point and creates a new point

def Offset(x, y, z):
    """
    Applies an offset to the point and creates a new point

    Args:
        x (float): X offset to apply
        y (float): Y offset to apply
        z (float): Z offset to apply

    Returns:
        New point with offset applied

    """

Scale

Scales the point location based on an origin for the scaling

def Scale(scale_origin_x, scale_origin_y, scale_origin_z, scale_factor):
    """
    Scales the point location based on an origin for the scaling

    Args:
        scale_origin_x (float): X-coordinate for scaling origin
        scale_origin_y (float): Y-coordinate for scaling origin
        scale_origin_z (float): Z-coordinate for scaling origin
        scale_factor (float): Factor for scaling as a percentage

    Returns:
        New point with scaling applied

    """
Clone this wiki locally