From: nge Date: Thu, 8 Oct 2009 11:24:28 +0000 (+0000) Subject: Correction after merge X-Git-Tag: V5_1_3rc1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa5435bee82474f381bed7380f931ccca5238b25;p=plugins%2Fblsurfplugin.git Correction after merge --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 3f52063..a972233 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -384,39 +384,6 @@ double getT(const TopoDS_Edge& edge, const gp_XYZ& point) return projector.LowerDistanceParameter(); } -///////////////////////////////////////////////////////// -TopoDS_Shape BLSURFPlugin_BLSURF::entryToShape(std::string entry) -{ - MESSAGE("BLSURFPlugin_BLSURF::entryToShape"<FindObjectID(entry.c_str()); - SALOMEDS::GenericAttribute_var anAttr; - if (!aSO->_is_nil()){ - SALOMEDS::SObject_var aRefSObj; - GEOM::GEOM_Object_var aShape; - SALOMEDS::AttributeIOR_var myAttribute; - CORBA::String_var myAttrValue; - CORBA::Object_var myCorbaObj; - // If selected object is a reference - if ( aSO->ReferencedObject( aRefSObj )) - aSO = aRefSObj; - SALOMEDS::SComponent_var myFatherCpnt = aSO->GetFatherComponent(); - CORBA::String_var myFatherCpntDataType = myFatherCpnt->ComponentDataType(); - if ( strcmp(myFatherCpntDataType,"GEOM")==0) { - MESSAGE("aSO father component is GEOM"); - if (!aSO->FindAttribute(anAttr, "AttributeIOR")) return S; - myAttribute=SALOMEDS::AttributeIOR::_narrow(anAttr); - myAttrValue=myAttribute->Value(); - MESSAGE("aSO IOR: "<< myAttrValue); - myCorbaObj=smeshGen_i->GetORB()->string_to_object(myAttrValue); - aShape = GEOM::GEOM_Object::_narrow(myCorbaObj); - } - if ( !aShape->_is_nil() ) - S=smeshGen_i->GeomObjectToShape( aShape.in() ); - } - return S; -} - ///////////////////////////////////////////////////////// TopoDS_Shape BLSURFPlugin_BLSURF::entryToShape(std::string entry) { @@ -659,9 +626,9 @@ void BLSURFPlugin_BLSURF::SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsu // Standard Size Maps // MESSAGE("Setting a Size Map"); - const BLSURFPlugin_Hypothesis::TSizeMap & sizeMaps = hyp->GetSizeMapEntries(); - BLSURFPlugin_Hypothesis::TSizeMap::const_iterator smIt; - for ( smIt = sizeMaps.begin(); smIt != sizeMaps.end(); ++smIt ) { + const BLSURFPlugin_Hypothesis::TSizeMap sizeMaps = BLSURFPlugin_Hypothesis::GetSizeMapEntries(hyp); + BLSURFPlugin_Hypothesis::TSizeMap::const_iterator smIt = sizeMaps.begin(); + for ( ; smIt != sizeMaps.end(); ++smIt ) { if ( !smIt->second.empty() ) { MESSAGE("blsurf_set_sizeMap(): " << smIt->first << " = " << smIt->second); GeomShape = entryToShape(smIt->first);