Skip to content

Commit

Permalink
Merge pull request #22 from compas-dev/draw_mesh
Browse files Browse the repository at this point in the history
adapted import to draw_mesh to newly removed utilities module
  • Loading branch information
chenkasirer authored Oct 2, 2024
2 parents 13cff6a + 416757f commit d4992e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +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 latest changes in `compas_ghpython`.

### Removed

Expand Down
4 changes: 2 additions & 2 deletions src/compas_robots/ghpython/scene/robotmodelobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d4992e3

Please sign in to comment.