Hide menu
Loading...
Searching...
No Matches
Wall Thickness Calculation

Wall thickness calculation algorithm allows analyzing wall thickness of the model and return information about minimum and maximum thicknesses.

As the API changes to accommodate the needs of users compatibility will be preserved as much as possible but is ultimately not guaranteed.

Capabilities

  • WallThickness_Analyzer allows analyzing wall thickness of a solid model or mesh. Below is a simple example of analyzing.
    The model Wall thickness information


    Model: barrel

    Part #0 ["barrel"] - solid #0 has:
        Min thickness = 4.526479 mm
        Max thickness = 10.036917 mm

Scope of accepted geometries

Wall thickness tool (WallThickness_Analyzer) works with ModelData::Solid and ModelData::IndexedTriangleSet .

API overview

WallThickness_Analyzer is the class that performs wall thickness analysis of a given ModelData::Solid or ModelData::IndexedTriangleSet . It returns WallThickness_Data that contains a thickness field and additional information about minimum and maximum thicknesses. See Wall Thickness Analyzer Example.

using namespace cadex;
ModelData::Solid aSolid = ...;
WallThickness_VoxelizationParameters aVoxelizationParameters;
aVoxelizationParameters.SetResolution (800);
aParameters.SetVoxelizationParameters (aVoxelizationParameters)
aParameters.SetMethod (WallThickness_Method::Voxelization)
WallThickness_Analyzer anAnalyzer (aParameters);
WallThickness_Data aData = anAnalyzer.Perform (aSolid);
Defines a topological solid.
Definition ModelData/Solid.hxx:30
The wall thickness analyzing tool.
Definition WallThickness_Analyzer.hxx:40
The wall thickness analyzer parameters.
Definition WallThickness_AnalyzerParameters.hxx:52
void SetVoxelizationParameters(const WallThickness_VoxelizationParameters &theVoxelizationParameters)
Sets parameters of voxelization method of wall thickness analysis.
Definition WallThickness_AnalyzerParameters.cxx:50
void SetMethod(WallThickness_Method theMethod)
Sets method of wall thickness analysis.
Definition WallThickness_AnalyzerParameters.cxx:88
Contains information about minimum and maximum wall thicknesses.
Definition WallThickness_Data.hxx:40
The parameters for a voxelization wall thickness algorithm.
Definition WallThickness_AnalyzerParameters.hxx:28
void SetResolution(size_t theResolution)
Sets voxel resolution for voxelization wall thickness analysis.
Definition WallThickness_AnalyzerParameters.cxx:120
Contains classes, namespaces, enums, types, and global functions related to Manufacturing Toolkit.
Definition LicenseManager_LicenseError.hxx:29

Voxelization

Computationally demanding and robust wall thickness algorithm. The accuracy of wall thickness calculation depends on the given resolution value. The result values can be slightly inaccurate and the smaller thicknesses values (less than a voxel size) can be ommited due to voxel discretization. It should be at least 20, otherwise the algorithm will not produce any results. The larger the value, the higher the accuracy of the calculations. The recommended values are 100 - 5000. High values greatly increase computation time and memory usage.

Ray Marching

Sensitive and fast wall thickness algorithm. Small memory footprint. Provides high performance with high-accuracy results for fine meshes. Vulnerable to inaccurate or corrupted meshes, yielding tiny min thickness values. Recognizes a wall as a pair of almost opposite triangles. The maximum angle between two sides for them to be counted as a wall is described by WallThickness_RayMarchingParameters::WallSidesAngleTolerance parameter. For example, if the value is greater than \( \frac{\pi}{2} \), then even perpendicular edges could be paired into a wall.