Closed bfialkoff closed 3 months ago
Hello
your surface meshes have badly oriented triangles, you can easily fix that by calling .orient()
on them
the following worked for me:
cone_mesh_1 = read('/tmp/meshes_and_cones/cone_mesh_1.ply')
cone_mesh_2 = read('/tmp/meshes_and_cones/cone_mesh_2.ply')
surface_mesh_1 = read('/tmp/meshes_and_cones/surface_mesh_1.ply').orient()
surface_mesh_2 = read('/tmp/meshes_and_cones/surface_mesh_2.ply').orient()
r1 = pierce(surface_mesh_1, cone_mesh_1)
r2 = pierce(surface_mesh_2, cone_mesh_2)
Hi,
As part of a project I am working on i am trying to pierce a surface mesh (or web) and a cone type mesh. I have many pairs of surface meshes each of which need to be pierce with a cone.
However, something doesn't seem to be working properly. I have 2 test cases in particular and in one case the operation returns what I expect and in the other case the
pierce
function seems to be ignored. I can't seem to find any clear indication of what is wrong.The code i am using is super simple and I've uploaded 4 plys that i am working with.
Viewing the results with
i=1
(i.e the first pair) doesn't seem to work but withi=2
(the 2nd pair) it does seem to give the expected results.I'd really appreciate any help.
Thanks :)
meshes_and_cones.zip