mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 10:20:37 +05:00
Improve comments
This commit is contained in:
parent
5ec880d561
commit
e24d326fce
@ -109,7 +109,7 @@ class StdMeshersDC_Segment(Mesh_Algorithm):
|
||||
# @param n for the number of segments that cut an edge
|
||||
# @param s for the scale factor (optional)
|
||||
# @param reversedEdges is a list of edges to mesh using reversed orientation.
|
||||
# A list item can also be a tuple (edge 1st_vertex_of_edge)
|
||||
# A list item can also be a tuple (edge, 1st_vertex_of_edge)
|
||||
# @param UseExisting if ==true - searches for an existing hypothesis created with
|
||||
# the same parameters, else (default) - create a new one
|
||||
# @return an instance of StdMeshers_NumberOfSegments hypothesis
|
||||
@ -154,7 +154,7 @@ class StdMeshersDC_Segment(Mesh_Algorithm):
|
||||
# @param start defines the length of the first segment
|
||||
# @param end defines the length of the last segment
|
||||
# @param reversedEdges is a list of edges to mesh using reversed orientation.
|
||||
# A list item can also be a tuple (edge 1st_vertex_of_edge)
|
||||
# A list item can also be a tuple (edge, 1st_vertex_of_edge)
|
||||
# @param UseExisting if ==true - searches for an existing hypothesis created with
|
||||
# the same parameters, else (default) - creates a new one
|
||||
# @return an instance of StdMeshers_Arithmetic1D hypothesis
|
||||
@ -184,7 +184,7 @@ class StdMeshersDC_Segment(Mesh_Algorithm):
|
||||
# @param points defines the list of parameters on curve
|
||||
# @param nbSegs defines the list of numbers of segments
|
||||
# @param reversedEdges is a list of edges to mesh using reversed orientation.
|
||||
# A list item can also be a tuple (edge 1st_vertex_of_edge)
|
||||
# A list item can also be a tuple (edge, 1st_vertex_of_edge)
|
||||
# @param UseExisting if ==true - searches for an existing hypothesis created with
|
||||
# the same parameters, else (default) - creates a new one
|
||||
# @return an instance of StdMeshers_Arithmetic1D hypothesis
|
||||
@ -210,7 +210,7 @@ class StdMeshersDC_Segment(Mesh_Algorithm):
|
||||
# @param start defines the length of the first segment
|
||||
# @param end defines the length of the last segment
|
||||
# @param reversedEdges is a list of edges to mesh using reversed orientation.
|
||||
# A list item can also be a tuple (edge 1st_vertex_of_edge)
|
||||
# A list item can also be a tuple (edge, 1st_vertex_of_edge)
|
||||
# @param UseExisting if ==true - searches for an existing hypothesis created with
|
||||
# the same parameters, else (default) - creates a new one
|
||||
# @return an instance of StdMeshers_StartEndLength hypothesis
|
||||
|
@ -4293,7 +4293,7 @@ class Mesh_Algorithm:
|
||||
hyp.SetIgnoreFaces(ignoreFaces)
|
||||
return hyp
|
||||
|
||||
## Transform a list of ether edges or tuples (edge 1st_vertex_of_edge)
|
||||
## Transform a list of ether edges or tuples (edge, 1st_vertex_of_edge)
|
||||
# into a list acceptable to SetReversedEdges() of some 1D hypotheses
|
||||
# @ingroup l3_hypos_1dhyps
|
||||
def ReversedEdgeIndices(self, reverseList):
|
||||
@ -4314,19 +4314,19 @@ class Mesh_Algorithm:
|
||||
v = i[1]
|
||||
if not isinstance( e, geompyDC.GEOM._objref_GEOM_Object ) or \
|
||||
not isinstance( v, geompyDC.GEOM._objref_GEOM_Object ):
|
||||
raise TypeError, "A list item must be a tuple (edge 1st_vertex_of_edge)"
|
||||
raise TypeError, "A list item must be a tuple (edge, 1st_vertex_of_edge)"
|
||||
if v.GetShapeType() == geompyDC.GEOM.EDGE and \
|
||||
e.GetShapeType() == geompyDC.GEOM.VERTEX:
|
||||
v,e = e,v
|
||||
if e.GetShapeType() != geompyDC.GEOM.EDGE or \
|
||||
v.GetShapeType() != geompyDC.GEOM.VERTEX:
|
||||
raise TypeError, "A list item must be a tuple (edge 1st_vertex_of_edge)"
|
||||
raise TypeError, "A list item must be a tuple (edge, 1st_vertex_of_edge)"
|
||||
vFirst = FirstVertexOnCurve( e )
|
||||
tol = geompy.Tolerance( vFirst )[-1]
|
||||
if geompy.MinDistance( v, vFirst ) > 1.5*tol:
|
||||
resList.append( geompy.GetSubShapeID(self.mesh.geom, e ))
|
||||
else:
|
||||
raise TypeError, "Item must be either an edge or tuple (edge 1st_vertex_of_edge)"
|
||||
raise TypeError, "Item must be either an edge or tuple (edge, 1st_vertex_of_edge)"
|
||||
return resList
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user