Thickness analysis of a solid sheet metal

I have a CAD solid sheet metal part, I can mesh them to surface or volume elements. Is there a technique to extract the midsurface in VTK? Also is it possible to estimate thickness from the computed mid surface?
The main objective is to perform thickness analysis, so it may not necessary calculate midsurface, any method that provides thickness would be great!


Medial surface extraction is a hard problem. If you had the information in your CAD system then export it from there instead of trying to reconstruct from an exported surface mesh.

Anyway, if you don’t have any other option, you can use vtkvmtkPolyDataCenterlines in the VTK-based VMTK toolkit to get medial surface (returned by GetVoronoiDiagram). I think the Voronoi polydata already contains thickness values in a point scalar.

Alternatively, you can convert the polydata to a fine-resolution binary image using polydata to stencil filter, then use ITK filters to get the medial surface, compute a distance map from the skeleton, and sample that with a VTK probe filter. See a complete example for this approach here:

1 Like