Skip to content

Commit

Permalink
Merge pull request #184 from compas-dev/fix/tag
Browse files Browse the repository at this point in the history
fix tabobject
  • Loading branch information
Licini authored Jun 26, 2024
2 parents e28d162 + 2facda8 commit ac66036
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Changed `FrameObject` to something with just 3 axes.
* Restructured `SceneObjects` to accepct `item` as kwargs.
* Fixed `compas_viewer.components.slider` step attribute.
* Fixed `renderer.view` distorted init
* Fixed `renderer.view` distorted init.
* Fixed `tagobject` by adding back FreeSans.ttf.

### Removed

Expand Down
5 changes: 3 additions & 2 deletions scripts/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
from compas.geometry import Box
from compas.geometry import Translation
from compas_viewer import Viewer
from compas_viewer.scene import Tag

box1 = Box.from_width_height_depth(5, 1, 1)
box2 = Box.from_width_height_depth(1, 5, 1)

t = Tag("EN", (0, 0, 0), height=50)
viewer = Viewer()

# Simple list of objects
group1 = viewer.scene.add([box1, box2])
group1 = viewer.scene.add([box1, box2, t])


# with kwargs for each object
Expand Down
13 changes: 13 additions & 0 deletions scripts/tag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

from compas.geometry import Box
from compas_viewer import Viewer
from compas_viewer.scene import Tag

box1 = Box.from_width_height_depth(5, 1, 1)
box2 = Box.from_width_height_depth(1, 5, 1)
t = Tag("EN", (5, 1, 1), height=50)
viewer = Viewer()

# Simple list of objects
group1 = viewer.scene.add([box1, box2, t])
viewer.show()
Binary file not shown.

0 comments on commit ac66036

Please sign in to comment.