denser syntax in occ file

This commit is contained in:
Julius Zimmermann 2022-04-21 10:26:27 +02:00
parent 267959967d
commit 4df5ed1536

View File

@ -717,13 +717,10 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
switch (shape.ShapeType())
{
case TopAbs_FACE:
BRepGProp::SurfaceProperties (shape, props); break;
case TopAbs_SHELL:
BRepGProp::SurfaceProperties (shape, props); break;
case TopAbs_SOLID:
BRepGProp::VolumeProperties (shape, props); break;
case TopAbs_COMPOUND:
BRepGProp::VolumeProperties (shape, props); break;
case TopAbs_COMPSOLID:
BRepGProp::VolumeProperties (shape, props); break;
default:
@ -752,13 +749,10 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
switch (shape.ShapeType())
{
case TopAbs_FACE:
BRepGProp::SurfaceProperties (shape, props); break;
case TopAbs_SHELL:
BRepGProp::SurfaceProperties (shape, props); break;
case TopAbs_SOLID:
BRepGProp::VolumeProperties (shape, props); break;
case TopAbs_COMPOUND:
BRepGProp::VolumeProperties (shape, props); break;
case TopAbs_COMPSOLID:
BRepGProp::VolumeProperties (shape, props); break;
default: