class SMDS_MeshElement;
class SMDS_MeshNode;
+class SMDS_PolyhedralVolumeOfNodes;
#include <vector>
#include <set>
bool IsForward() const { return myVolForward; }
// Check volume orientation. can be changed by Inverse().
- // See node order of forward volumes at file bottom
+ // See node order of forward volumes at the file bottom
void Inverse();
// Change nodes order as if the volume changes its orientation:
// info on faces
// -------------
- void SetForwardOrientation ();
- // Node order in faces will be as for forward orientation
-
void SetExternalNormal ();
// Node order in faces will be so that faces normals are external.
- // It overrides SetForwardOrientation()
int NbFaces() const { return myNbFaces; }
// Return number of faces of the volume. In the following
bool IsFaceExternal( int faceIndex );
// Check normal orientation of a face.
- // SetForwardOrientation() and SetForwardOrientation() are taken
- // into account.
+ // SetExternalNormal() is taken into account.
bool IsFreeFace( int faceIndex );
// Check that all volumes built on the face nodes lays on one side
// Return index of a face formed by theFaceNodes.
// Return -1 if a face not found
- int GetFaceIndex( const std::set<int>& theFaceNodesIndices );
+ //int GetFaceIndex( const std::set<int>& theFaceNodesIndices );
// Return index of a face formed by theFaceNodesIndices
// Return -1 if a face not found
bool setFace( int faceIndex );
const SMDS_MeshElement* myVolume;
+ const SMDS_PolyhedralVolumeOfNodes* myPolyedre;
+
bool myVolForward;
int myNbFaces;
int myVolumeNbNodes;
- const SMDS_MeshNode* myVolumeNodes[ 8 ];
+ const SMDS_MeshNode** myVolumeNodes;
- bool myForwardFaces;
bool myExternalFaces;
- int* myFaceNodeIndices;
- int* myFaceNbNodes;
- const SMDS_MeshNode* myFaceNodes[ 5 ];
+
int myCurFace;
+ int myFaceNbNodes;
+ int* myFaceNodeIndices;
+ const SMDS_MeshNode** myFaceNodes;
};
#endif
// /|\
// / | \
// / | \
-// N0 +---|---+ N2 TETRAHEDRON
+// N0 +---|---+ N1 TETRAHEDRON
// \ | /
// \ | /
// \ | /
// \|/
// +
-// N1
+// N2
// + N4
// /|\
// |/ \|
// N0 +---------+ N2
-// N7+----------+N6
+// N5+----------+N6
// /| /|
// / | / |
// / | / |
-// N4+----------+N5 |
+// N4+----------+N7 |
// | | | | HEXAHEDRON
// | | | |
// | | | |
-// | N3+------|---+N2
+// | N1+------|---+N2
// | / | /
// | / | /
// |/ |/
-// N0+----------+N1
+// N0+----------+N3
//
*/