mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-28 15:05:39 +05:00
correct computation of shapes
This commit is contained in:
parent
eb8276c132
commit
718c876fa7
@ -717,6 +717,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
{
|
||||
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:
|
||||
BRepGProp::LinearProperties(shape, props);
|
||||
// throw Exception("Properties implemented only for FACE");
|
||||
@ -744,6 +752,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
{
|
||||
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:
|
||||
BRepGProp::LinearProperties(shape, props);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user