Open Cascade:计算体积
TopoDS_Shape shape;
...
GProp_GProps System;
BRepGProp::LinearProperties(shape, System);
BRepGProp::SurfaceProperties(shape, System);
BRepGProp::VolumeProperties(shape, System);
System.Mass();
TopoDS_Shape shape;
...
GProp_GProps System;
BRepGProp::LinearProperties(shape, System);
BRepGProp::SurfaceProperties(shape, System);
BRepGProp::VolumeProperties(shape, System);
System.Mass();