+ Reply to Thread
Results 1 to 6 of 6

Thread: curve | meshface intersection method

  1. #1

    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.

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    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

  3. #3
    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.

  4. #4
    Is there perhaps a way to get the Mesh.NakedEdgeMeshFaces?

  5. #5
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    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

  6. #6
    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.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts