Skip to content

[HELP] How to "carve" mesh and fill holes after cutting? #919

Answered by marcomusy
byaenh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @byaenh
sorry for the late reply, the mesh.slice() should actually work for disconnected boundaries:

from vedo import *
msh = Mesh(dataurl+"bunny.obj").alpha(0.1).wireframe()
mslice = msh.slice(normal=[0,1,0.3], origin=[0,0.16,0])
mslice.c('purple5')
show(msh, mslice, axes=1)

Another option is to use generate_mesh for a 2D-projectable planar contour, see example
vedo/examples/advanced/capping_mesh.py

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcomusy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants