mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +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:
|
case TopAbs_FACE:
|
||||||
BRepGProp::SurfaceProperties (shape, props); break;
|
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:
|
default:
|
||||||
BRepGProp::LinearProperties(shape, props);
|
BRepGProp::LinearProperties(shape, props);
|
||||||
// throw Exception("Properties implemented only for FACE");
|
// throw Exception("Properties implemented only for FACE");
|
||||||
@ -744,6 +752,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
{
|
{
|
||||||
case TopAbs_FACE:
|
case TopAbs_FACE:
|
||||||
BRepGProp::SurfaceProperties (shape, props); break;
|
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:
|
default:
|
||||||
BRepGProp::LinearProperties(shape, props);
|
BRepGProp::LinearProperties(shape, props);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user