if not self.data:
self.data = StudyData_Swig.StudyData_Object()
self.data.SetShapeByPointer(theShape)
+ return
+
+ ### unnecessary methods that can be accidentally called from any module
+ def GetTopologyType(self, *args): return GEOM.SHAPE
+ def GetMinShapeType(self, *args): return GEOM.SHAPE
+ def GetMaxShapeType(self, *args): return GEOM.SHAPE
+ def GetSubShapeName(self, *args): return ""
+ def SetColor(self, *args): return
+ def GetColor(self, *args): import SALOMEDS; return SALOMEDS.Color( 0,0,0 )
+ def SetAutoColor(self, *args): return
+ def GetAutoColor(self, *args): return False
+ def SetMarkerStd(self, *args): return
+ def SetMarkerTexture(self, *args): return
+ def GetMarkerType(self, *args): return GEOM.MT_NONE
+ def GetMarkerSize(self, *args): return GEOM.MS_NONE
+ def GetMarkerTexture(self, *args): return 0
pass
return aResult
pass
+
model.end()
-face = salome.myStudy.FindObjectByPath("/ShaperStudy/Face_1_1").GetObject()
+face = salome.myStudy.FindObjectByPath("/ShaperResults/Face_1_1").GetObject()
shaper = face.GetGen()
print(shaper.ComponentDataType())
#GetVertexByIndex()
algo = meshOnFace.Segment()
l = algo.ReversedEdgeIndices([(ee[0],vv[0])])
-
+
+
+### unnecessary methods that can be accidentally called from any module
+import SALOMEDS
+face.GetTopologyType()
+face.GetMinShapeType()
+face.GetMaxShapeType()
+face.GetSubShapeName(1)
+face.SetColor(SALOMEDS.Color( 0,0,0 ))
+face.GetColor()
+face.SetAutoColor(0)
+face.GetAutoColor()
+face.SetMarkerStd(GEOM.MT_NONE, GEOM.MS_NONE)
+face.SetMarkerTexture(0)
+face.GetMarkerType()
+face.GetMarkerSize()
+face.GetMarkerTexture()
+
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()