X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_VolumeTool.hxx;h=beec061b700ec62c9c7ca0eb7e8ef48ab8871b12;hb=423f097f5e34c955b122291ad657d8ac49d8aae0;hp=e8891b93a1c4ecc7fa07392f4ffb1b6cf07c3b81;hpb=42c7eb97f9ec27537b638c98ef69dc55f19fa1cd;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_VolumeTool.hxx b/src/SMDS/SMDS_VolumeTool.hxx index e8891b93a..beec061b7 100644 --- a/src/SMDS/SMDS_VolumeTool.hxx +++ b/src/SMDS/SMDS_VolumeTool.hxx @@ -61,6 +61,8 @@ class SMDS_WNT_EXPORT SMDS_VolumeTool { public: + enum VolumeType { UNKNOWN = -1, TETRA = 0, PYRAM, PENTA, HEXA, POLYHEDA }; + SMDS_VolumeTool (); ~SMDS_VolumeTool (); SMDS_VolumeTool (const SMDS_MeshElement* theVolume); @@ -73,6 +75,8 @@ class SMDS_WNT_EXPORT SMDS_VolumeTool // general info // ----------------------- + VolumeType GetVolumeType() const; + bool IsForward() const { return myVolForward; } // Check volume orientation. can be changed by Inverse(). // See node order of forward volumes at the file bottom @@ -170,8 +174,6 @@ class SMDS_WNT_EXPORT SMDS_VolumeTool // static methods for faces // ------------------------ - enum VolumeType { UNKNOWN, TETRA, PYRAM, PENTA, HEXA }; - static VolumeType GetType(int nbNodes); // return VolumeType by nb of nodes in a volume