Generator : cut an octree along X/Y/Z planes

Cassiopée tutorials


This tutorial demonstrates how to cut an octree mesh below (or above) X/Y/Z planes.




In plain colors the cut mesh and in shadow the originally generated octree mesh.


By default, an octree has the same size in all directions (dfar parameter). To cut an octree with respect to X/Y/Z planes, we use the functions T.symetrize and P.selectCells.
T.symetrize is used to ensure that an octree matching boundary is located on the X/Y/Z plane. Then, P.selectCells is used to choose the cells from one or other side of the X/Y/Z plane.

[Download python script].


Return to the tutorial page.