Skip to content

Commit 3943bf9

Browse files
committed
changelog
1 parent 8d6f800 commit 3943bf9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Made `linewidth` working again through `GeometryShader`.
15+
1416
### Removed
1517

1618

scripts/example.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from compas.datastructures import Mesh
44
from compas.geometry import Box
55
from compas.geometry import Frame
6+
from random import random
67
from compas_viewer.viewer import Viewer
78

89
viewer = Viewer(show_grid=True)
@@ -17,9 +18,13 @@
1718
for j in range(M):
1819
viewer.scene.add(
1920
Box(0.5, 0.5, 0.5, Frame([i, j, 0], [1, 0, 0], [0, 1, 0])),
20-
linecolor=Color.white(),
21+
linecolor=Color.from_i(random()),
2122
facecolor=Color(i / N, j / M, 0.0),
2223
name=f"Box_{i}_{j}",
24+
linewidth=3 * random(),
25+
show_points=True,
26+
pointcolor=Color.from_i(random()),
27+
pointsize=10
2328
)
2429

2530
viewer.show()

0 commit comments

Comments
 (0)