I use A3DComputePhysical Properties to calculate surface area and volume, but sometimes A3DComputePhysical Properties is very slow and takes several tens of minutes to calculate the results. I don’t need other physical quantities such as center of gravity. When I use A3DComputeFaceArea to calculate each face separately and stack them, the difference between the results obtained and the surface area in SolidWorks is not within the acceptable error range. How can I quickly and accurately calculate the surface area and volume?
Hello @502815549,
Sometimes the calculation can be very slow — do you mean with the same CAD file, or with different files?
-
If it’s with different files, the performance may depend on how complex the BRep model is, or it could indicate a potential issue. In that case, we may need the CAD file for further analysis.
-
In general, the performance of A3DComputePhysicalProperties can be influenced by the options in A3DPhysicalPropertiesData, such as:
-
m_bUseGeometryOnRiBRep
-
m_dAccuracyLevel
-
m_bIncludeHiddenRIs
-
These settings can significantly affect both speed and accuracy.
If you only need surface area, computing it face by face with A3DComputeFaceArea can be faster, but keep in mind that summing individual face areas may introduce small numerical differences compared to the full physical property calculation.
Best Regards,
Man