File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/compas_rhino/conversions Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828* Based all gltf data classes on ` BaseGLTFDataClass `
2929* Fixed ` Color.__get___ ` AttributeError.
3030* Fixed ` cylinder_to_rhino ` conversion to match ` compas.geometry.Cylinder ` location.
31+ * Changed identification of cylinder brep face to non-zero in ` compas_rhino.conversions.cylinder.Cylinder ` .
3132* Changed linter to ` black ` .
3233* Automatically trigger ` invoke format ` during ` invoke release ` .
3334* Fixed bug in ` intersections.intersection_circle_circle_xy ` where the Circle's Plane was accessed instead of the centre.
Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ def geometry(self, geometry):
4646 faces = geometry .Faces
4747 geometry = None
4848 for face in faces :
49- if face .IsCylinder ():
49+ # being too strict about what is considered a cylinder
50+ # results in cylinders created by Rhino itself
51+ # to not be recognized...
52+ if face .IsCylinder (0.001 ):
5053 result , geometry = face .TryGetFiniteCylinder (0.001 )
5154 if result :
5255 break
You can’t perform that action at this time.
0 commit comments