mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 10:20:33 +05:00
fix reading/writting quadratic edges
This commit is contained in:
parent
a701eb4ca3
commit
9a5fe30faf
@ -74,14 +74,13 @@ Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
|
|||||||
const TElementLab& aLabel = anIter->first;
|
const TElementLab& aLabel = anIter->first;
|
||||||
const TRecord& aRec = anIter->second;
|
const TRecord& aRec = anIter->second;
|
||||||
if(IsBeam(aRec.fe_descriptor_id)) {
|
if(IsBeam(aRec.fe_descriptor_id)) {
|
||||||
if(aRec.fe_descriptor_id == 11) {
|
switch ( aRec.fe_descriptor_id.size() ) {
|
||||||
// edge with two nodes
|
case 2: // edge with two nodes
|
||||||
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
|
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
|
||||||
aRec.node_labels[1],
|
aRec.node_labels[1],
|
||||||
aLabel);
|
aLabel);
|
||||||
}
|
break;
|
||||||
else {
|
case 3: // quadratic edge (with 3 nodes)
|
||||||
// quadratic edge (with 3 nodes)
|
|
||||||
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
|
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
|
||||||
aRec.node_labels[2],
|
aRec.node_labels[2],
|
||||||
aRec.node_labels[1],
|
aRec.node_labels[1],
|
||||||
|
@ -92,7 +92,7 @@ Driver_Mesh::Status DriverUNV_W_SMDS_Mesh::Perform()
|
|||||||
if( anElem->IsQuadratic() ) {
|
if( anElem->IsQuadratic() ) {
|
||||||
aNodesIter = static_cast<const SMDS_QuadraticEdge* >
|
aNodesIter = static_cast<const SMDS_QuadraticEdge* >
|
||||||
( anElem )->interlacedNodesElemIterator();
|
( anElem )->interlacedNodesElemIterator();
|
||||||
aRec.fe_descriptor_id = 21;
|
aRec.fe_descriptor_id = 22;
|
||||||
} else {
|
} else {
|
||||||
aNodesIter = anElem->nodesIterator();
|
aNodesIter = anElem->nodesIterator();
|
||||||
aRec.fe_descriptor_id = 11;
|
aRec.fe_descriptor_id = 11;
|
||||||
|
Loading…
Reference in New Issue
Block a user