Skip to content

Commit c3b0e28

Browse files
author
Robin Oval
committed
remove blank spaces and lines
1 parent 0653495 commit c3b0e28

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/compas_rhino/geometry/surface.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,8 @@ def kinks(self, threshold=1e-3):
243243
The list of XYZ coordinates of surface boundary kinks.
244244
245245
"""
246-
247246
kinks = []
248-
borders = self.borders(type = 0)
247+
borders = self.borders(type=0)
249248

250249
for border in borders:
251250
border = RhinoCurve(border)
@@ -337,11 +336,10 @@ def closest_point_on_boundaries(self, xyz):
337336
The XYZ coordinates of the closest point on the boundaries of the surface.
338337
339338
"""
340-
341-
borders = self.borders(type = 0)
339+
borders = self.borders(type=0)
342340
proj_dist = {tuple(proj_xyz): distance_point_point(xyz, proj_xyz) for proj_xyz in [RhinoCurve(border).closest_point(xyz) for border in borders]}
343341
delete_objects(borders)
344-
return min(proj_dist, key = proj_dist.get)
342+
return min(proj_dist, key=proj_dist.get)
345343

346344
def closest_points_on_boundaries(self, points):
347345
return [self.closest_point_on_boundaries(point) for point in points]
@@ -364,7 +362,6 @@ def map_uv0(self, xyz):
364362
The UV(0) coordinates of the mapped point.
365363
366364
"""
367-
368365
return rs.SurfaceClosestPoint(self.guid, xyz) + (0.,)
369366

370367
def remap_xyz_point(self, uv):
@@ -381,7 +378,6 @@ def remap_xyz_point(self, uv):
381378
The XYZ coordinates of the re-mapped point.
382379
383380
"""
384-
385381
return tuple(rs.EvaluateSurface(self.guid, *uv))
386382

387383
def remap_xyz_line(self, line):
@@ -398,7 +394,6 @@ def remap_xyz_line(self, line):
398394
The list of XYZ coordinates of the re-mapped line.
399395
400396
"""
401-
402397
return (self.remap_xyz_point(line[0][:2]), self.remap_xyz_point(line[1][:2]))
403398

404399
def remap_xyz_polyline(self, polyline):
@@ -415,7 +410,6 @@ def remap_xyz_polyline(self, polyline):
415410
The list of XYZ coordinates of the re-mapped polyline.
416411
417412
"""
418-
419413
return [self.remap_xyz_point(vertex[:2]) for vertex in polyline]
420414

421415
def remap_xyz_mesh(self, mesh, cls=None):
@@ -432,7 +426,6 @@ def remap_xyz_mesh(self, mesh, cls=None):
432426
The re-mapped mesh.
433427
434428
"""
435-
436429
if cls is None:
437430
cls = type(mesh)
438431

0 commit comments

Comments
 (0)