mesh.Mesh.hollow#
- Mesh.hollow(wall_thickness: float, resolution: int = 80)#
Create a hollow shell from a closed triangulated surface mesh.
This method generates a hollow version of the input mesh by creating an inward offset surface and subtracting it from the original mesh.
Parameters#
- wall_thicknessfloat
Desired thickness of the shell. Must be greater than zero and small enough relative to the overall size of the mesh.
- resolutionint, default=80
Resolution of the implicit offset grid. Higher values produce a more accurate inner surface but increase computation time and memory usage.
Returns#
- Mesh
A hollow triangle mesh with the same outer shape as the input.
Notes#
The input mesh must be valid closed triangle mesh.
See Also#
Examples#
>>> sphere = shapes.sphere(radius=1.0) >>> print(sphere.enclosed_volume()) 4.135899 >>> shell = sphere.hollow(wall_thickness=0.1) >>> print(shell.enclosed_volume()) 1.1295651