Hi Marco, I'm doing fine here, hope things are well with you!
re: Iterate segments of a curve, you can use crv.getSubObjects() for that, it will return an object list with the curve's segments in it.
So something like:
var segs = crv.getSubObjects();
if ( segs.length == 1 ) it's a single segment curve.
if ( segs.length > 1 ) i'ts a multi-segment curve.
The getSubObjects() method is a part of the base geometry object interface, it works on either curves to get the segments of the curve, or on breps to get the faces, curves, and segment sub-objects of the Brep. An edge curve in a Brep always has just one segment.
Hope this helps!
- Michael
|