-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mesh non watertight after slicing with plane #2180
Comments
Hey, not totally sure why it's not watertight... I was able to get it to be watertight with Might be an on-vertex hit or some case that's not handled well? PR's welcome if you figure it out! With triangle and
|
Hello yes, that seemed to do the work! Thank you for the quick response and in case I find the original source of the issue I will let you know with a PR! |
Following the previous, after lots of testing, the "triangle" engine seems much more robust but there are still issues. For example, the following code does not provide watertight meshes. meshFile = "partBefore.stl"
m = trimesh.load_mesh(meshFile)
p = [0.0, 0.0, 0.0]
n = [-0.71 , 0.00 ,0.71]
nNeg = [0.71 , 0.00 ,-0.71]
posMesh = intersections.slice_mesh_plane(m, n, p, cap=True,engine="triangle").process(validate=True)
negMesh = intersections.slice_mesh_plane(m, nNeg, p, cap=True,engine="triangle").process(validate=True)
print("posMesh.is_watertight", posMesh.is_watertight)
print("negMesh.is_watertight", negMesh.is_watertight)
sc = trimesh.Scene()
sc.add_geometry(posMesh)
sc.add_geometry(negMesh)
sc.show()
|
Hello all,
I have been trying to slice the following mesh that I have attached with the plane defined in the code and I get a non-watertight mesh as a result. However, if I save the sliced mesh and load it from another similar framework and save it using it, it is watertight when I load it again in trimesh.
Here is also a photo of how the plane and the mesh look
problematic.zip
The text was updated successfully, but these errors were encountered: