From da9b53164f69fd50f69aa3affe00bdda15f3dbc2 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 7 Mar 2006 12:48:38 +0000 Subject: [PATCH] To apply NODE representation type for meshes on the nodal entity --- src/VISU_I/VISU_Mesh_i.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_Mesh_i.cc b/src/VISU_I/VISU_Mesh_i.cc index 2a65400b..a38ea37b 100644 --- a/src/VISU_I/VISU_Mesh_i.cc +++ b/src/VISU_I/VISU_Mesh_i.cc @@ -228,6 +228,8 @@ VISU::Storable* VISU::Mesh_i::Build (int theRestoring) throw std::runtime_error("Mesh_i::Build - myResult->GetInput() == NULL !!!"); if (!theRestoring) { myPresentType = VISU::SHADED; + if(myEntity == VISU::NODE_ENTITY) + myPresentType = VISU::POINT; myName = GenerateName().latin1(); myCellColor.R = 0.0; myCellColor.G = myCellColor.B = 1.0; myNodeColor.R = myNodeColor.G = 1.0; myNodeColor.B = 1.0; @@ -273,7 +275,8 @@ VISU::Storable* VISU::Mesh_i::Build (int theRestoring) myMeshPL->Init(); string aResultEntry = myResult->GetEntry(); string anEntry = myResult->GetEntry(aComment.latin1()); - if(anEntry == "") throw std::runtime_error("Mesh_i::Build - anEntry was not found !!!"); + if(anEntry == "") + throw std::runtime_error("Mesh_i::Build - anEntry was not found !!!"); mySObject = myStudy->FindObjectID(anEntry.c_str()); SALOMEDS::StudyBuilder_var aStudyBuilder = myStudy->NewBuilder(); SALOMEDS::GenericAttribute_var anAttr = aStudyBuilder->FindOrCreateAttribute(mySObject,"AttributeIOR"); -- 2.39.2