Skip to content

Commit 35f3d64

Browse files
committed
sphere orientation fix
1 parent d0aeed3 commit 35f3d64

File tree

1 file changed

+4
-1
lines changed
  • src/compas_rhino/geometry/brep

1 file changed

+4
-1
lines changed

src/compas_rhino/geometry/brep/face.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ def _make_cylinder_surface(surface_data, u_domain, v_domain, frame):
182182
def _make_sphere_surface(surface_data, u_domain, v_domain, frame):
183183
sphere = Sphere.from_data(surface_data)
184184
sphere = sphere_to_rhino(sphere)
185-
sphere.EquatorialPlane = frame_to_rhino_plane(frame)
185+
# seems Sphere => RevSurface conversion modifies the orientation of the sphere
186+
# setting the plane here is overriden by this modification and surface ends up oriented differntly than
187+
# original.
188+
# sphere.EquatorialPlane = frame_to_rhino_plane(frame)
186189
surface = RevSurface.CreateFromSphere(sphere)
187190
surface.SetDomain(0, Interval(*u_domain))
188191
surface.SetDomain(1, Interval(*v_domain))

0 commit comments

Comments
 (0)