ON_Hatch get display curve

Dear , into opennurbs sources ,from a ON_Hatch , is there a method for getting the display list of curve ?
when I use , into rhino software , the method Explode on Hatch , I can see the list of curve but it is into rhino , do you know a similar method into opennurbs function ?

thanks
Laurent

Hi @eraud,

Unfortunately there is not. The Explode command eventually ends up calling the Rhino SDK’s CRhinoHatchPattern::CreateDisplay, which generates the geometry. This function uses private methods not available in public openNURBS.

This said, I’ve worked up something that should get you pretty close to what Rhino produces. Give it a try and let me know if it helps.

ON_HatchPatternDisplayGeometry.cpp (10.0 KB)

– Dale

Hello Dale ,

with your code , I get all IsoLine on surface , but these line are whole , so we need to split these line with outer and inner loop for getting the exact display line ?

thanks
Laurent

Hello Dale ,

it is not simple for getting the good position of dash line between horizontal and vertical (plus and square) , I try but not succeed …

Hi @eraud,

Like I said, the real function you want is not available on openNURBS.

– Dale

Hello Dale ,

ok may be for opennurbs9.0 …
Laurent