2024 Method
Changes 0
M

CurveByPoints.SortPoints

Description:
Order a set of ReferencePoints in the same way Revit does when creating a curve from points.
Remarks:
Finds a best-fit line to the points by the least squares method, and orders the points by their projection onto the line.
public static bool SortPoints(
	ReferencePointArray arr
)
Return Value bool False if the least-squares method is unable to find a solution; true otherwise.