Trimming NURBS surface with closed NURBS curve


#1

Hi,
I have had a NURBS surface in OpenNurbs approximated from a point cloud, and now it need to trim this surface with some holes inside this surface. Each of such holes is described by a closed NURBS curve. How can I do this with OpenNurbs?
I hope to see your answer. Thanks so much.


(Menno Deij - van Rijswijk) #2

You may want to look here
https://github.com/mcneel/Rhino5Samples_CPP/tree/master/SampleBrepCommands

Specifically at

https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleBrepCommands/cmdSampleFaceWithHole.cpp

and

https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleBrepCommands/cmdSampleTrimmedPlane.cpp

on how to make trims “by hand”.


#3

I think the brep data structure will help you


#4

Hi,

sorry to revive an old topic, but my question is so closely related, I think this is the right place for it.

I have a 3D nurbs surface and a closed 2D domain curve. I would like to make a brep with just the part of the surface that is inside the curve. The way I see it, the brep surface should be uniquely defined by just the surface and the curve. From the IsValid output, it seems to me that I also need a 3D curve, but I don’t understand what its purpose should be or how I should define it. It would be a great help to me, if someone could shed some light on that or point me to a resource that does so. I think the brepstructure link is trying to do that, but I don’t quite get it.


#5

hello how do you realize 3d nurbs surface?


(Dale Fugier) #6

I am sorry but don’t understand what this means. What problem are you trying to solve?