Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix reading/writting quadratic edges
[modules/smesh.git]
/
src
/
DriverUNV
/
DriverUNV_R_SMDS_Mesh.cxx
diff --git
a/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx
b/src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx
index e635874ffd5439446b6b2819e980b7ff2a3bb536..014690fbe273d3efd8519307d5d89b9857d58782 100644
(file)
--- a/
src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx
+++ b/
src/DriverUNV/DriverUNV_R_SMDS_Mesh.cxx
@@
-74,14
+74,13
@@
Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
const TElementLab& aLabel = anIter->first;
const TRecord& aRec = anIter->second;
if(IsBeam(aRec.fe_descriptor_id)) {
const TElementLab& aLabel = anIter->first;
const TRecord& aRec = anIter->second;
if(IsBeam(aRec.fe_descriptor_id)) {
-
if(aRec.fe_descriptor_id == 11
) {
-
// edge with two nodes
+
switch ( aRec.fe_descriptor_id.size()
) {
+
case 2:
// edge with two nodes
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
aRec.node_labels[1],
aLabel);
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
aRec.node_labels[1],
aLabel);
- }
- else {
- // quadratic edge (with 3 nodes)
+ break;
+ case 3: // quadratic edge (with 3 nodes)
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
aRec.node_labels[2],
aRec.node_labels[1],
anElement = myMesh->AddEdgeWithID(aRec.node_labels[0],
aRec.node_labels[2],
aRec.node_labels[1],