- Home /
How do I cut a mesh partially?
I'm using the EzySlice framework to cut meshes (https://github.com/DavidArayan/ezy-slice).
image?
So far it can cut a mesh but infinitely but I want to be able to cut partially like this:
image?
As you see in the 3rd photo, only 1 vertex is created at the end of the dotted line away from the outer edge. However the rest of the vertices created by the cut are in pairs. How do I achieve this effect?
Answer by Bunny83 · Oct 27, 2021 at 10:15 PM
Well, that's simply not possible with that library. It only works with convex meshes. When you cut something out of a mesh it's no longer convex. Also the library only supports cutting along planes. What you're asking for is a lot more complex. Of course you can simply cut at two planes and just remove the part you don't want and keep the other parts together. They are still seperate pieces but they could be grouped together and moved together as if they are one object. Of course it depends on your specific needs.
Though in general cutting meshes is a quite complex and complicated matter. Especially when you want to handle non-convex meshes. There is no easy solution. The best bet may be to look for a general purpose CSG library for Unity that supports boolean operations.
@Bunny83 I think the image I posted of the cut is kind of confusing. I didn't make 2 cuts from image 2 to 3. I moved the 2 vertices created from that partial cut in opposite direction to make opening for mesh. I'm not cutting a pizza slice but just making 1 cut and moving it. This effect is still not possible?
Answer by unity_E83E5ADD296999E86B74 · Jan 22 at 09:56 AM
Well, first heat a pizza eventually like how cordierite pizza stone distributes heat evenly and provides maximum intensity of heat which ensures that the crust turns out crispy on the outside and soft on the inside. It is one of the most widely used materials for baking pizza in restaurants.
,Well you must heat a pizza eventually like, cordierite pizza stone distributes heat evenly and provides maximum intensity of heat which ensures that the crust turns out crispy on the outside and soft on the inside. And it is one of the most widely used materials for baking pizza in restaurants.
Your answer
Follow this Question
Related Questions
Vertex Animation 1 Answer
Vertex Color: texture blending and shadowing 2 Answers
Find (Get) linerenderer vertex positions 2 Answers