From a6e0aed0b0cb39173a4221b9622eb4e1d7e6fa4e Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Mon, 30 Sep 2024 10:29:18 +0200 Subject: [PATCH 1/2] adapted import to draw_mesh to newly removed utilities module --- CHANGELOG.md | 2 ++ src/compas_robots/ghpython/scene/robotmodelobject.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7c2f040..79ee95d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +* Adapted import inside `RobotModelObject` to lastes changes in `compas_ghpython`. + ### Removed diff --git a/src/compas_robots/ghpython/scene/robotmodelobject.py b/src/compas_robots/ghpython/scene/robotmodelobject.py index 3c427f6b..ec371807 100644 --- a/src/compas_robots/ghpython/scene/robotmodelobject.py +++ b/src/compas_robots/ghpython/scene/robotmodelobject.py @@ -2,7 +2,7 @@ from __future__ import division from __future__ import print_function -import compas_ghpython +from compas_ghpython.drawing import draw_mesh from compas_ghpython.scene import GHSceneObject from compas_rhino.conversions import transformation_to_rhino @@ -46,7 +46,7 @@ def create_geometry(self, geometry, name=None, color=None): color = color.rgba255 if color else None vertices, faces = geometry.to_vertices_and_faces(triangulated=False) - mesh = compas_ghpython.draw_mesh(vertices, faces, color=color) + mesh = draw_mesh(vertices, faces, color=color) # Try to fix invalid meshes if not mesh.IsValid: From 416757ffe1f1de5e391214d4e2532aa41654487d Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Wed, 2 Oct 2024 15:43:41 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Gonzalo Casas --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49101355..733f10e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * Fixed no scene object registered for `RobotModel` in context `Rhino`. -* Adapted import inside `RobotModelObject` to lastes changes in `compas_ghpython`. +* Adapted import inside `RobotModelObject` to latest changes in `compas_ghpython`. ### Removed