From: eap Date: Wed, 11 Jul 2012 08:20:12 +0000 (+0000) Subject: Improve comments X-Git-Tag: V6_6_0a1~270 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e24d326fce8dfe3472311c4a93744e0dc3958f1a;p=modules%2Fsmesh.git Improve comments --- diff --git a/src/SMESH_SWIG/StdMeshersDC.py b/src/SMESH_SWIG/StdMeshersDC.py index 31c8b8544..af20cb4e2 100644 --- a/src/SMESH_SWIG/StdMeshersDC.py +++ b/src/SMESH_SWIG/StdMeshersDC.py @@ -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 diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 18614b8e9..c81c1434c 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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