]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To apply NODE representation type for meshes on the nodal entity
authorapo <apo@opencascade.com>
Tue, 7 Mar 2006 12:48:38 +0000 (12:48 +0000)
committerapo <apo@opencascade.com>
Tue, 7 Mar 2006 12:48:38 +0000 (12:48 +0000)
src/VISU_I/VISU_Mesh_i.cc

index 2a65400b55d2c1fdca3a026fb360a75e0ca3665b..a38ea37bf2273d9dae712885ff42dd3215a1d232 100644 (file)
@@ -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");