@@ -119,6 +119,7 @@ def __init__(self,
119119 def _bspline_surface_from_face (self , face ):
120120 """
121121 Takes a TopoDS_Face and transforms it into a Bspline_Surface.
122+
122123 :param TopoDS_Face face: the face to be converted.
123124 :return: the output Bspline surface
124125 :rtype: Geom_BSplineSurface
@@ -137,6 +138,7 @@ def _bspline_surface_from_face(self, face):
137138 def _bspline_curve_from_wire (self , wire ):
138139 """
139140 Takes a TopoDS_Wire and transforms it into a Bspline_Curve.
141+
140142 :param TopoDS_Wire wire: the wire to be converted.
141143 :return: The output Bspline curve
142144 :rtype: Geom_BSplineCurve
@@ -180,6 +182,7 @@ def _enrich_curve_knots(self, bsp_curve):
180182 """
181183 Takes a Geom_BSplineCurve and adds self.t_knots_to_add
182184 poles to it.
185+
183186 :param Geom_BSplineCurve bsp_curve: Bspline curve to be enriched.
184187 """
185188 if not isinstance (bsp_curve , Geom_BSplineCurve ):
@@ -200,6 +203,7 @@ def _enrich_surface_knots(self, bsp_surface):
200203 """
201204 Takes a Geom_Bspline_Surface and adds self.u_knots_to_add
202205 and self.v_knots_to_add knots to it in u and v direction respectively.
206+
203207 :param Geom_BSplineSurface bsp_surface: Bspline curve to be enriched.
204208 """
205209 if not isinstance (bsp_surface , Geom_BSplineSurface ):
@@ -220,6 +224,7 @@ def _enrich_surface_knots(self, bsp_surface):
220224 def _deform_bspline_curve (self , bsp_curve ):
221225 """
222226 Takes a Geom_BSplineCurve and deforms it through FFD.
227+
223228 :param Geom_BSplineCurve bsp_curve: Bspline curve to be deformed.
224229 """
225230 if not isinstance (bsp_curve , Geom_BSplineCurve ):
@@ -243,18 +248,18 @@ def _deform_bspline_curve(self, bsp_curve):
243248
244249 # the Bspline curve is now looped again to
245250 # set the poles positions to new_points
246- i = 0
247251 for pole in range (n_poles ):
248252 # gp_Point corresponding to the new pole coordinates
249- control_point = gp_Pnt (new_pts [i , 0 ],
250- new_pts [i , 1 ],
251- new_pts [i , 2 ])
253+ control_point = gp_Pnt (new_pts [pole , 0 ],
254+ new_pts [pole , 1 ],
255+ new_pts [pole , 2 ])
252256 bsp_curve .SetPole (pole + 1 , control_point )
253- i += 1
257+
254258
255259 def _deform_bspline_surface (self , bsp_surface ):
256260 """
257261 Takes a Geom_BSplineSurface and deforms it through FFD.
262+
258263 :param Geom_BSplineSurface bsp_surface: Bspline curve to be deformed.
259264 """
260265 if not isinstance (bsp_surface , Geom_BSplineSurface ):
0 commit comments