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();
转载于:https://www.cnblogs.com/2018shawn/p/11236259.html