File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
src/compas_rhino/geometry Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,7 @@ def data(self, value):
7575 elif type_ == "nurbs" :
7676 surface = RhinoNurbsSurface .from_data (surface )
7777 elif type_ == "torus" :
78- raise NotImplementedError (
79- "Support for torus surface is not yet implemented!"
80- )
78+ raise NotImplementedError ("Support for torus surface is not yet implemented!" )
8179 self ._surface = surface .rhino_surface
8280
8381 # ==============================================================================
@@ -121,9 +119,7 @@ def _get_surface_geometry(surface):
121119 return "cylinder" , cylinder_to_compas (cast_surface )
122120 success , cast_surface = surface .TryGetTorus ()
123121 if success :
124- raise NotImplementedError (
125- "Support for torus surface is not yet implemented!"
126- )
122+ raise NotImplementedError ("Support for torus surface is not yet implemented!" )
127123 return "nurbs" , RhinoNurbsSurface .from_rhino (surface .ToNurbsSurface ())
128124
129125 @staticmethod
Original file line number Diff line number Diff line change @@ -95,12 +95,8 @@ def from_corners(cls, corners):
9595 :class:`~compas_rhino.geometry.RhinoNurbsSurface`
9696
9797 """
98- rhino_points = [
99- Rhino .Geometry .Point3d (corner .x , corner .y , corner .z ) for corner in corners
100- ]
101- return cls .from_rhino (
102- Rhino .Geometry .NurbsSurface .CreateFromCorners (* rhino_points )
103- )
98+ rhino_points = [Rhino .Geometry .Point3d (corner .x , corner .y , corner .z ) for corner in corners ]
99+ return cls .from_rhino (Rhino .Geometry .NurbsSurface .CreateFromCorners (* rhino_points ))
104100
105101 @classmethod
106102 def from_sphere (cls , sphere ):
You can’t perform that action at this time.
0 commit comments