mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 12:10:34 +05:00
PAL13473 (Build repetitive mesh)
Add static int NbCornerNodes(VolumeType type)
This commit is contained in:
parent
dbb3cdd2ec
commit
7e07caff33
@ -1518,6 +1518,31 @@ int SMDS_VolumeTool::NbFaces( VolumeType type )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Useful to know nb of corner nodes of a quadratic volume
|
||||||
|
* \param type - volume type
|
||||||
|
* \retval int - nb of corner nodes
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
int SMDS_VolumeTool::NbCornerNodes(VolumeType type)
|
||||||
|
{
|
||||||
|
switch ( type ) {
|
||||||
|
case TETRA :
|
||||||
|
case QUAD_TETRA: return 4;
|
||||||
|
case PYRAM :
|
||||||
|
case QUAD_PYRAM: return 5;
|
||||||
|
case PENTA :
|
||||||
|
case QUAD_PENTA: return 6;
|
||||||
|
case HEXA :
|
||||||
|
case QUAD_HEXA : return 8;
|
||||||
|
default: return 0;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GetFaceNodesIndices
|
//function : GetFaceNodesIndices
|
||||||
//purpose : Return the array of face nodes indices
|
//purpose : Return the array of face nodes indices
|
||||||
|
@ -193,7 +193,10 @@ class SMDS_WNT_EXPORT SMDS_VolumeTool
|
|||||||
int faceIndex );
|
int faceIndex );
|
||||||
// Return number of nodes in the array of face nodes
|
// Return number of nodes in the array of face nodes
|
||||||
|
|
||||||
private:
|
static int NbCornerNodes(VolumeType type);
|
||||||
|
// Useful to know nb of corner nodes of a quadratic volume
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
bool setFace( int faceIndex );
|
bool setFace( int faceIndex );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user