mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 11:05:37 +05:00
PAL15148(0D Algorithm "Segments around vertex" works wrong)
This commit is contained in:
parent
868b7afd2b
commit
5a51c1c355
@ -541,13 +541,16 @@ class Mesh_Segment(Mesh_Algorithm):
|
|||||||
## Define "SegmentLengthAroundVertex" hypothesis
|
## Define "SegmentLengthAroundVertex" hypothesis
|
||||||
# @param length for the segment length
|
# @param length for the segment length
|
||||||
# @param vertex for the length localization: vertex index [0,1] | verext object
|
# @param vertex for the length localization: vertex index [0,1] | verext object
|
||||||
def LengthNearVertex(self, length, vertex):
|
def LengthNearVertex(self, length, vertex=0):
|
||||||
import types
|
import types
|
||||||
|
store_geom = self.geom
|
||||||
|
if vertex:
|
||||||
if type(vertex) is types.IntType:
|
if type(vertex) is types.IntType:
|
||||||
vertex = geompy.SubShapeAllSorted(self.geom,geompy.ShapeType["VERTEX"])[vertex]
|
vertex = geompy.SubShapeAllSorted(self.geom,geompy.ShapeType["VERTEX"])[vertex]
|
||||||
pass
|
pass
|
||||||
store_geom = self.geom
|
|
||||||
self.geom = vertex
|
self.geom = vertex
|
||||||
|
pass
|
||||||
|
hyp = self.Hypothesis("SegmentAroundVertex_0D")
|
||||||
hyp = self.Hypothesis("SegmentLengthAroundVertex")
|
hyp = self.Hypothesis("SegmentLengthAroundVertex")
|
||||||
self.geom = store_geom
|
self.geom = store_geom
|
||||||
hyp.SetLength( length )
|
hyp.SetLength( length )
|
||||||
|
Loading…
Reference in New Issue
Block a user