I was wondering how can I “extract” single curves after they have been joined. For example if I have two parallel splines connected with two straight lines at their ends and then joined…I need to select them and then somehow 1. separate them 2. recognize which ones ar the splines and which ones are the lines. I am guessing that the IsLinear method will be used for the second problem, but how do I “separate” them, or duplicate the segments?
yes, I do have a ON_PolyCurve…unfortunatelly I do not know how to select it. I tried all types of casting but I do not know how to actually “extract” the ON_PolyCurve from a selected object…can you help me with that? I expected an ON_Curve::IsPolyCurve (like there is for Polyline) so I can recognize if my selected ON_Curve* is actually a ON_PolyCurve, but there is nothing like that…
Thanks, it works…I was doing the same except I was passing the CRhinoObject* to the ON_PolyCurve::Cast…that was the mistake…I mixed CRhinoObject with ON_Object…