From: apo Date: Tue, 7 Mar 2006 12:48:38 +0000 (+0000) Subject: To apply NODE representation type for meshes on the nodal entity X-Git-Tag: mergeto_trunk_13Mar06~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da9b53164f69fd50f69aa3affe00bdda15f3dbc2;p=modules%2Fvisu.git To apply NODE representation type for meshes on the nodal entity --- 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");