Skip to content

Commit ac66036

Browse files
authored
Merge pull request #184 from compas-dev/fix/tag
fix tabobject
2 parents e28d162 + 2facda8 commit ac66036

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3838
* Changed `FrameObject` to something with just 3 axes.
3939
* Restructured `SceneObjects` to accepct `item` as kwargs.
4040
* Fixed `compas_viewer.components.slider` step attribute.
41-
* Fixed `renderer.view` distorted init
41+
* Fixed `renderer.view` distorted init.
42+
* Fixed `tagobject` by adding back FreeSans.ttf.
4243

4344
### Removed
4445

scripts/group.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
from compas.geometry import Box
33
from compas.geometry import Translation
44
from compas_viewer import Viewer
5+
from compas_viewer.scene import Tag
56

67
box1 = Box.from_width_height_depth(5, 1, 1)
78
box2 = Box.from_width_height_depth(1, 5, 1)
8-
9+
t = Tag("EN", (0, 0, 0), height=50)
910
viewer = Viewer()
1011

1112
# Simple list of objects
12-
group1 = viewer.scene.add([box1, box2])
13+
group1 = viewer.scene.add([box1, box2, t])
1314

1415

1516
# with kwargs for each object

scripts/tag.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
from compas.geometry import Box
3+
from compas_viewer import Viewer
4+
from compas_viewer.scene import Tag
5+
6+
box1 = Box.from_width_height_depth(5, 1, 1)
7+
box2 = Box.from_width_height_depth(1, 5, 1)
8+
t = Tag("EN", (5, 1, 1), height=50)
9+
viewer = Viewer()
10+
11+
# Simple list of objects
12+
group1 = viewer.scene.add([box1, box2, t])
13+
viewer.show()
698 KB
Binary file not shown.

0 commit comments

Comments
 (0)