Skip to content

Commit c64d742

Browse files
committed
remove prints
1 parent 86d9abd commit c64d742

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
* Changed supported Blender versions to latest LTS versions (3.3, 3.6, 4.2).
1515
* Fixed bug in `compas_rhino.conversions.cone_to_compas`.
1616
* Fixed bug in `compas_rhino.conversions.cylinder_to_compas`.
17+
* Fixed bug in `compas_rhino.scene.RhinoMeshObject.draw_vertexnormals` (scale not used).
18+
* Fixed bug in `compas_rhino.scene.RhinoMeshObject.draw_facenormals` (scale not used).
19+
* Changed scene object registration to stop printing messages.
1720

1821
### Removed
1922

src/compas_blender/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ def _get_default_blender_python_path(version):
200200

201201

202202
def _get_default_blender_python_path_mac(version):
203+
if version == "4.2":
204+
return "/Applications/Blender.app/Contents/Resources/{}/python/bin/python3.11".format(version)
203205
return "/Applications/Blender.app/Contents/Resources/{}/python/bin/python3.10".format(version)
204206

205207

src/compas_blender/scene/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ def register_scene_objects():
8383
register(Torus, ShapeObject, context="Blender")
8484
register(Vector, VectorObject, context="Blender")
8585
register(VolMesh, VolMeshObject, context="Blender")
86-
print("Blender Objects registered.")
86+
87+
# print("Blender Objects registered.")
8788

8889

8990
__all__ = [
9091
"BlenderSceneObject",
91-
"shapeObject",
92+
"ShapeObject",
9293
"BoxObject",
9394
"CircleObject",
9495
"CurveObject",
95-
"CylinderObject",
9696
"FrameObject",
9797
"LineObject",
9898
"MeshObject",
@@ -103,9 +103,7 @@ def register_scene_objects():
103103
"PolygonObject",
104104
"PolyhedronObject",
105105
"PolylineObject",
106-
"SphereObject",
107106
"SurfaceObject",
108-
"TorusObject",
109107
"VectorObject",
110108
"VolMeshObject",
111109
]

src/compas_ghpython/scene/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def register_scene_objects():
8686
register(Vector, VectorObject, context="Grasshopper")
8787
register(VolMesh, VolMeshObject, context="Grasshopper")
8888
register(Brep, BrepObject, context="Grasshopper")
89-
print("GH SceneObjects registered.")
89+
90+
# print("GH SceneObjects registered.")
9091

9192

9293
__all__ = [

src/compas_rhino/scene/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def register_scene_objects():
9393
register(Curve, RhinoCurveObject, context="Rhino")
9494
register(Surface, RhinoSurfaceObject, context="Rhino")
9595
register(Brep, RhinoBrepObject, context="Rhino")
96-
print("Rhino SceneObjects registered.")
96+
97+
# print("Rhino SceneObjects registered.")
9798

9899

99100
__all__ = [

src/compas_rhino/scene/meshobject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def draw_vertexnormals(self, color=None, scale=1.0, group=None):
481481

482482
point = self.mesh.vertex_point(vertex)
483483
normal = self.mesh.vertex_normal(vertex) # type: ignore
484-
line = Line.from_point_and_vector(point, normal)
484+
line = Line.from_point_and_vector(point, normal * scale)
485485

486486
geometry = line_to_rhino(line)
487487
geometry.Transform(transformation)
@@ -528,7 +528,7 @@ def draw_facenormals(self, color=None, scale=1.0, group=None):
528528

529529
point = self.mesh.face_centroid(face)
530530
normal = self.mesh.face_normal(face)
531-
line = Line.from_point_and_vector(point, normal)
531+
line = Line.from_point_and_vector(point, normal * scale)
532532

533533
geometry = line_to_rhino(line)
534534
geometry.Transform(transformation)

0 commit comments

Comments
 (0)