@@ -204,7 +204,7 @@ def add_point(self, point):
204204 """
205205
206206 self .points .append (point )
207- return len (self .points - 1 )
207+ return len (self .points ) - 1
208208
209209 def add_facet (self , facet ):
210210 """Adds a facet to the geometry and returns the added facet id.
@@ -216,7 +216,7 @@ def add_facet(self, facet):
216216 """
217217
218218 self .facets .append (facet )
219- return len (self .facets - 1 )
219+ return len (self .facets ) - 1
220220
221221 def add_hole (self , hole ):
222222 """Adds a hole location to the geometry and returns the added hole id.
@@ -228,7 +228,7 @@ def add_hole(self, hole):
228228 """
229229
230230 self .holes .append (hole )
231- return len (self .holes - 1 )
231+ return len (self .holes ) - 1
232232
233233 def add_control_point (self , control_point ):
234234 """Adds a control point to the geometry and returns the added control
@@ -241,7 +241,7 @@ def add_control_point(self, control_point):
241241 """
242242
243243 self .control_points .append (control_point )
244- return len (self .control_points - 1 )
244+ return len (self .control_points ) - 1
245245
246246 def clean_geometry (self , verbose = False ):
247247 """Peforms a full clean on the geometry.
0 commit comments