Issue with cut_with_mesh() deleting vertices unexpectedly #1193
Linus-Foley
started this conversation in
General
Replies: 2 comments 2 replies
|
Sorry for the late reply, |
1 reply
|
Oh ok, that is because there is no "inside" of a mesh when the mesh is a plane. from vedo import *
torus = Mesh("half_torus.stl")
m = Mesh("rectangle.stl").c("blue5")
box = m.clone().rotate_x(90).extrude(-0.2).rotate_x(-90)
box.compute_normals()
box.c("green").alpha(0.2).lw(1).wireframe()
torus.cut_with_mesh(box, invert=1)
show(torus, m, box, axes=1) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a U shaped object, and I wish to cut off a section of one of its ends. I'm trying to do this by placing a rectangle at the place I want to slice at, and then using cut_with_mesh() using the rectangle. As you can see below, the opposite side of the U shape gets some of its vertices deleted.
Is there a way to prevent this, or another way to go about cutting off one end of a U shape?
All reactions