Jump to content

How can i intersect a 3D object with a plane and get a 2D polygon in return?

Recommended Posts


A simple example: how can I turn this in an 2D oval shape that corresponds with the intersection, just by using code?

Share this post

Link to post
Posted (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 by Nebeor

Share this post

Link to post

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.

  • Love 1

Share this post

Link to post

@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.

Share this post

Link to post

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.

  • Like 1

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...