a polyline
nr of points
Create the polyline
points and info if its closed
polyline
Gets the points of the polyline
a polyline
points
Gets the length of the polyline
a polyline
length
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.
Defines the polyline points, whether it's closed, and an optional tolerance.
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.
Finds the points of self intersection of the polyline
points of self intersection
polyline
Create the lines from the polyline
polyline
lines
Create the segments from the polyline
polyline
segments
Reverse the points of the polyline
a polyline
reversed polyline
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.
Defines the polyline points, whether it's closed, and an optional tolerance.
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.
Create the polylines from segments that are potentially connected but scrambled randomly
segments
polylines
Transform the polyline
a polyline
transformed polyline
Finds the intersection points between two polylines
two polylines and tolerance
points
Generated using TypeDoc
Gets the number of points in the polyline
get
nr polyline points
false