mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 01:58:35 +05:00
+ * Creates LINEAR!!!!!!!!! octahedron
This commit is contained in:
parent
bcaa0ad2ee
commit
06abe76e03
@ -1573,6 +1573,37 @@ SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1,
|
||||
return elem;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AddVolume
|
||||
//purpose : Creates LINEAR!!!!!!!!! octahedron
|
||||
//=======================================================================
|
||||
|
||||
SMDS_MeshVolume* SMESH_MesherHelper::AddVolume(const SMDS_MeshNode* n1,
|
||||
const SMDS_MeshNode* n2,
|
||||
const SMDS_MeshNode* n3,
|
||||
const SMDS_MeshNode* n4,
|
||||
const SMDS_MeshNode* n5,
|
||||
const SMDS_MeshNode* n6,
|
||||
const SMDS_MeshNode* n7,
|
||||
const SMDS_MeshNode* n8,
|
||||
const SMDS_MeshNode* n9,
|
||||
const SMDS_MeshNode* n10,
|
||||
const SMDS_MeshNode* n11,
|
||||
const SMDS_MeshNode* n12,
|
||||
const int id,
|
||||
bool force3d)
|
||||
{
|
||||
SMESHDS_Mesh * meshDS = GetMeshDS();
|
||||
SMDS_MeshVolume* elem = 0;
|
||||
if(id)
|
||||
elem = meshDS->AddVolumeWithID(n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,id);
|
||||
else
|
||||
elem = meshDS->AddVolume(n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12);
|
||||
if ( mySetElemOnShape && myShapeID > 0 )
|
||||
meshDS->SetMeshElementOnShape( elem, myShapeID );
|
||||
return elem;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AddPolyhedralVolume
|
||||
//purpose : Creates polyhedron. In quadratic mesh, adds medium nodes
|
||||
|
@ -297,6 +297,24 @@ public:
|
||||
const int id = 0,
|
||||
bool force3d = true);
|
||||
|
||||
/*!
|
||||
* Creates LINEAR!!!!!!!!! octahedron
|
||||
*/
|
||||
SMDS_MeshVolume* AddVolume(const SMDS_MeshNode* n1,
|
||||
const SMDS_MeshNode* n2,
|
||||
const SMDS_MeshNode* n3,
|
||||
const SMDS_MeshNode* n4,
|
||||
const SMDS_MeshNode* n5,
|
||||
const SMDS_MeshNode* n6,
|
||||
const SMDS_MeshNode* n7,
|
||||
const SMDS_MeshNode* n8,
|
||||
const SMDS_MeshNode* n9,
|
||||
const SMDS_MeshNode* n10,
|
||||
const SMDS_MeshNode* n11,
|
||||
const SMDS_MeshNode* n12,
|
||||
const int id = 0,
|
||||
bool force3d = true);
|
||||
|
||||
/*!
|
||||
* Creates polyhedron. In quadratic mesh, adds medium nodes
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user