Mesh-Plane Clipping | GeomAlgoLib

preview_player
Показать описание
This video explains how to clip meshes with planes, using lookup tables similar to marching cubes (but much simpler).

The source code can be found here:
Рекомендации по теме
Комментарии
Автор

You made this very easy to understand. It would be cool to see your take on closing the hole left behind by the plane.

shadowscion
Автор

It'd be nice with a C# version of the last stage in which you compute the final clip-vertices. Not knowing cpp (only basic C) I just couldn't decipher that part of the code that follows the comment "// Copy the indices and vertices"

laromai
Автор

What would happen if the bunny is under the plane. Will it still be clipped?

anirudh
Автор

Why you are using std::transform iterations?
You lost me at the last transform conversion between local and global vertices.
I really wish if you could show how to rewrite the last transform loop with lambdas in a simple loop.

ptrs
visit shbcf.ru