Defines "SegmentLengthAroundVertex" hypothesis.
04759 :
04760 import types
04761 store_geom = self.geom
04762 if type(vertex) is types.IntType:
04763 if vertex == 0 or vertex == 1:
04764 vertex = self.mesh.geompyD.ExtractShapes(self.geom, geompyDC.ShapeType["VERTEX"],True)[vertex]
04765 self.geom = vertex
04766 pass
04767 pass
04768 else:
04769 self.geom = vertex
04770 pass
04771
04772 if self.geom is None:
04773 raise RuntimeError, "Attemp to create SegmentAroundVertex_0D algoritm on None shape"
04774 AssureGeomPublished( self.mesh, self.geom )
04775 name = GetName(self.geom)
04776
04777 algo = self.FindAlgorithm("SegmentAroundVertex_0D", self.mesh.smeshpyD)
04778 if algo is None:
04779 algo = self.mesh.smeshpyD.CreateHypothesis("SegmentAroundVertex_0D", "libStdMeshersEngine.so")
04780 pass
04781 status = self.mesh.mesh.AddHypothesis(self.geom, algo)
04782 TreatHypoStatus(status, "SegmentAroundVertex_0D", name, True)
04783
04784 hyp = self.Hypothesis("SegmentLengthAroundVertex", [length], UseExisting=UseExisting,
04785 CompareMethod=self.CompareLengthNearVertex)
04786 self.geom = store_geom
04787 hyp.SetLength( length )
04788 return hyp