curve | meshface intersection method
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?
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?
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?
Is there perhaps a way to get the Mesh.NakedEdgeMeshFaces?
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
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.