Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Polyline

Index

Constructors

constructor

Methods

countPoints

  • Gets the number of points in the polyline

    group

    get

    shortname

    nr polyline points

    drawable

    false

    Parameters

    Returns number

    nr of points

create

  • Create the polyline

    group

    create

    shortname

    polyline

    drawable

    true

    Parameters

    Returns PolylinePropertiesDto

    polyline

getPoints

  • Gets the points of the polyline

    group

    get

    shortname

    points

    drawable

    true

    Parameters

    Returns Point3[]

    points

length

  • Gets the length of the polyline

    group

    get

    shortname

    polyline length

    drawable

    false

    Parameters

    Returns number

    length

maxFilletsHalfLine

  • Calculates the maximum possible half-line fillet radius for each corner of a given polyline. For a closed polyline, it includes the corners connecting the last segment back to the first.

    The calculation uses the 'half-line' constraint, meaning the fillet's tangent points must lie within the first half of each segment connected to the corner.

    group

    fillet

    shortname

    polyline max fillet radii

    drawable

    false

    Parameters

    • inputs: PolylineToleranceDto

      Defines the polyline points, whether it's closed, and an optional tolerance.

    Returns number[]

    An array containing the maximum fillet radius calculated for each corner. The order corresponds to corners P[1]...P[n-2] for open polylines, and P[1]...P[n-2], P[0], P[n-1] for closed polylines. Returns an empty array if the polyline has fewer than 3 points.

polylineSelfIntersection

  • Finds the points of self intersection of the polyline

    group

    intersections

    shortname

    polyline self intersections

    drawable

    true

    Parameters

    Returns Point3[]

    polyline

polylineToLines

  • Create the lines from the polyline

    group

    convert

    shortname

    polyline to lines

    drawable

    true

    Parameters

    Returns Line3[]

    lines

polylineToSegments

  • Create the segments from the polyline

    group

    convert

    shortname

    polyline to segments

    drawable

    false

    Parameters

    Returns Segment3[]

    segments

reverse

  • Reverse the points of the polyline

    group

    convert

    shortname

    reverse polyline

    drawable

    true

    Parameters

    Returns PolylinePropertiesDto

    reversed polyline

safestFilletRadius

  • Calculates the single safest maximum fillet radius that can be applied uniformly to all corners of a polyline, based on the 'half-line' constraint. This is determined by finding the minimum of the maximum possible fillet radii calculated for each individual corner.

    group

    fillet

    shortname

    polyline safest fillet radius

    drawable

    false

    Parameters

    • inputs: PolylineToleranceDto

      Defines the polyline points, whether it's closed, and an optional tolerance.

    Returns number

    The smallest value from the results of calculatePolylineMaxFillets. Returns 0 if the polyline has fewer than 3 points or if any calculated maximum radius is 0.

sortSegmentsIntoPolylines

  • Create the polylines from segments that are potentially connected but scrambled randomly

    group

    sort

    shortname

    segments to polylines

    drawable

    true

    Parameters

    Returns Polyline3[]

    polylines

transformPolyline

  • Transform the polyline

    group

    transforms

    shortname

    transform polyline

    drawable

    true

    Parameters

    Returns PolylinePropertiesDto

    transformed polyline

twoPolylineIntersection

  • Finds the intersection points between two polylines

    group

    intersection

    shortname

    two polyline intersection

    drawable

    true

    Parameters

    Returns Point3[]

    points

Generated using TypeDoc