-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from compas-dev/fix/tag
fix tabobject
- Loading branch information
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.