-
curve | meshface intersection method
Dear Steve,
Would it be possible to add a method to test for intersections of curve/polyline with single mesh faces?
Ive done a workaround creating a polyline from the meshface vertices and using the rs.CurveCurveIntersection. Is there a cleaner way to do this?
Thanks.
P.
-
Senior Member
I wouldn't think that CurveCurveIntersection would work in 3D since the curve could pass through the middle of a face. There is already a MeshPolyline intersection function in RhinoCommon which returns all of the intersection points and the faces that the polyline intersected. Would that work for you?
http://www.rhino3d.com/5/rhinocommon...shPolyline.htm
-
Hi Steve,
Sorry my mistake, I'm working in 2d in this instance. Also the meshpolyline intersection is a test for containment of the poyline within a closed mesh??? What about open meshes? or singlular mesh faces?
Thanks
Patrick.
-
Is there perhaps a way to get the Mesh.NakedEdgeMeshFaces?
-
Senior Member
Hi Patrick,
The MeshPolyline intersection function that I posted a link to has no requirement on the mesh being closed. This is not a "containment" test, but rather a intersection test.
I'm not sure how your latest question fits into this thread, but it is easy to get all of the faces with naked edges using RhinoCommon
http://www.rhino3d.com/5/rhinocommon...NakedEdges.htm
Thanks,
-Steve
-
Steve,
Thanks for your help. I've had to use rs.PointClosestObject & rs.Distance and use a threshold distance to make my selection. As rs.CurveMeshIntersect doesn't seem to work.
I've got 2d geometry only in plan view. A series of curves which are draw over a grid of mesh faces. I needed to select only the mesh faces which are intersected by the curves. But it always returned null.
Best regards,
Patrick.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules