Nebeor Posted March 15, 2021 Share Posted March 15, 2021 A simple example: how can I turn this in an 2D oval shape that corresponds with the intersection, just by using code? Quote Link to comment
PeterYip Posted March 15, 2021 Share Posted March 15, 2021 There are probably alternative or better method to do this, right off top of my mind is to extrude the surface, and subtract from it then extract the surface. Screen Recording 2021-03-15 at 10.43.03.mov Quote Link to comment
Nebeor Posted March 15, 2021 Author Share Posted March 15, 2021 (edited) @PeterYip Very cool video, but I still need to find a way to do "Extract" through the SDK. Also, I still need to convert it afterwards from a nurbs to a 2DPolygon. Edited March 15, 2021 by Nebeor Quote Link to comment
JBenghiat Posted March 15, 2021 Share Posted March 15, 2021 Any shape or particular shapes? You can use ISDK::CreateContourCurves() to get the NURBS intersection and then ISDK::ConvertNurbsToPolylineArcs() If I know the shapes (I do a lot of intersecting cones and planes), I just do the math. 1 Quote Link to comment
Nebeor Posted March 16, 2021 Author Share Posted March 16, 2021 @JBenghiat Awesome! that was just what I needed, I don't even have to draw a plane or extrusion. I've put the 'delta' param of Create Contour curves to something insanely big, otherwise it will crash on conversion. Quote Link to comment
JBenghiat Posted March 16, 2021 Share Posted March 16, 2021 You can also pass 0 to the delta, which should only give you a contour at the cut plane and effectively give you the same result. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.