Created by: portnov
Given a Curve object, this node generates a mesh representation of the curve in such a way, that each edge declines from corresponding curve segment for a distance less than specified tolerance. Thus, in some parts of curve, vertices can be far from one another, while in "most interesting" parts of curve, vertices will be very dense.
This node can work with NURBS and NURBS-like curves only. For arbitrary curves, consider use of "Adaptive Plot Curve" node.
The following algorithm is used:
- The whole domain of curve's T parameters is divided into N even parts. Number N is usually very small, such as 2 or 3.
- For each subdomain, it is checked if the segment of the curve is close enough to straight line segment. If yes, then algorithm is done for this segment. If not, then this segment is subdivided again into N even parts.
- All generated points are connected to make a curve-like mesh object.
Preflight checklist
Put an x letter in each brackets when you're done this item:
-
Code changes complete. -
Code documentation complete. -
Documentation for users complete (or not required, if user never sees these changes). -
Manual testing done. -
Unit-tests implemented. -
Ready for merge.