Home › Forums › Urban Modeling and Simulation › UMS_Surface split script
- This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by Reinhard Koenig.
- AuthorPosts
- November 21, 2019 at 23:09 #14276Bardo Fernando Martin Salgado HenriquezParticipant
Hi Forum, I would like to split my a brep face with some lines in C# (as split lines component does), however, I’m a bit stuck with the script. Do you have any ideas or tips that can help me? Attached you can see the screenshot (I’m intending to have pizza slices).
Attachments:
You must be logged in to view attached files. - November 21, 2019 at 23:38 #14278Reinhard KoenigKeymaster
Dear Bardo,
have you tried using the line – circle intersection method?
https://developer.rhino3d.com/api/RhinoCommon/html/N_Rhino_Geometry_Intersect.htm#!This post shows an example of how to use it:
https://developer.rhino3d.com/guides/grasshopper/simple-geometry-component/This is the function:
Rhino.Geometry.Intersect.Intersection.LineCircle(line, circle, out t1, out p1, out t2, out p2)Hope this helps. You can also use a Grasshopper component after your C# script and continue with another C# script, etc.
Best regards
Reinhard
- AuthorPosts
- You must be logged in to reply to this topic.