Correct Errors NPAL17000

This commit is contained in:
dmv 2007-11-01 13:20:03 +00:00
parent 33109d1450
commit dc19e2f8f3

View File

@ -1332,7 +1332,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_TestHealing.py # Example: see GEOM_TestHealing.py
def GetFreeBoundary(self,theObject): def GetFreeBoundary(self,theObject):
anObj = self.HealOp.GetFreeBoundary(theObject) anObj = self.HealOp.GetFreeBoundary(theObject)
RaiseIfFailed("GetFreeBoundaries", self.HealOp) RaiseIfFailed("GetFreeBoundary", self.HealOp)
return anObj return anObj
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -2025,7 +2025,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_TestMeasures.py # Example: see GEOM_TestMeasures.py
def MakeCDG(self,theShape): def MakeCDG(self,theShape):
anObj = self.MeasuOp.GetCentreOfMass(theShape) anObj = self.MeasuOp.GetCentreOfMass(theShape)
RaiseIfFailed("GetCenterOfMass", self.MeasuOp) RaiseIfFailed("GetCentreOfMass", self.MeasuOp)
return anObj return anObj
## Get a normale to the given face. If the point is not given, ## Get a normale to the given face. If the point is not given,
@ -2128,9 +2128,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_TestMeasures.py # Example: see GEOM_TestMeasures.py
def KindOfShape(self,theShape): def KindOfShape(self,theShape):
aRoughTuple = self.MeasuOp.KindOfShape(theShape) aRoughTuple = self.MeasuOp.KindOfShape(theShape)
if self.MeasuOp.IsDone() == 0: RaiseIfFailed("KindOfShape", self.MeasuOp)
raise RuntimeError, "KindOfShape : " + self.MeasuOp.GetErrorCode()
return []
aKind = aRoughTuple[0] aKind = aRoughTuple[0]
anInts = aRoughTuple[1] anInts = aRoughTuple[1]
@ -2377,9 +2375,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_Spanner.py # Example: see GEOM_Spanner.py
def CheckCompoundOfBlocks(self,theCompound): def CheckCompoundOfBlocks(self,theCompound):
(IsValid, BCErrors) = self.BlocksOp.CheckCompoundOfBlocks(theCompound) (IsValid, BCErrors) = self.BlocksOp.CheckCompoundOfBlocks(theCompound)
if self.BlocksOp.IsDone() == 0: RaiseIfFailed("CheckCompoundOfBlocks", self.MeasuOp)
raise RuntimeError, "CheckCompoundOfBlocks : " + self.BlocksOp.GetErrorCode()
else:
if IsValid == 0: if IsValid == 0:
Descr = self.BlocksOp.PrintBCErrors(theCompound, BCErrors) Descr = self.BlocksOp.PrintBCErrors(theCompound, BCErrors)
print Descr print Descr
@ -2453,7 +2449,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_Spanner.py # Example: see GEOM_Spanner.py
def GetBlocksByParts(self,theCompound, theParts): def GetBlocksByParts(self,theCompound, theParts):
aList = self.BlocksOp.GetBlocksByParts(theCompound, theParts) aList = self.BlocksOp.GetBlocksByParts(theCompound, theParts)
RaiseIfFailed("GetBlockByParts", self.BlocksOp) RaiseIfFailed("GetBlocksByParts", self.BlocksOp)
return aList return aList
## Multi-transformate block and glue the result. ## Multi-transformate block and glue the result.
@ -2580,7 +2576,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# Example: see GEOM_TestOthers.py # Example: see GEOM_TestOthers.py
def GetObjectIDs(self,theGroup): def GetObjectIDs(self,theGroup):
ListIDs = self.GroupOp.GetObjects(theGroup) ListIDs = self.GroupOp.GetObjects(theGroup)
RaiseIfFailed("GetObjectIDs", self.GroupOp) RaiseIfFailed("GetObjects", self.GroupOp)
return ListIDs return ListIDs
## Returns a type of sub objects stored in the group ## Returns a type of sub objects stored in the group