Skip to content

Commit 60eed22

Browse files
committed
add tessagon
1 parent 0aeb396 commit 60eed22

27 files changed

+37
-28
lines changed

commands/RV.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import pathlib
66

commands/RV_dem_blocks.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66
from compas_dem.models import BlockModel
77
from compas_libigl.mapping import TESSAGON_TYPES
88

9+
import compas_rhino.layers
910
from compas.datastructures import Mesh
11+
from compas.scene import Scene
1012
from compas_rv.session import RVSession
1113

1214

@@ -42,10 +44,16 @@ def RunCommand():
4244
# Scene
4345
# =============================================================================
4446

47+
compas_rhino.layers.clear_layer("RV::DEM")
48+
49+
scene = Scene()
50+
4551
for block in model.blocks():
46-
session.scene.add(block.modelgeometry)
52+
scene.add(block.modelgeometry, layer="RV::DEM", disjoint=True)
53+
54+
scene.draw()
4755

48-
session.scene.redraw()
56+
del scene
4957

5058
# =============================================================================
5159
# Autosave

commands/RV_force.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_force_modify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_force_solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_form_modify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_form_solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_pattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55
import rhinoscriptsyntax as rs # type: ignore
66

commands/RV_pattern_boundaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.2
3+
# r: compas_rv>=0.9.2, tessagon
44

55

66
import rhinoscriptsyntax as rs # type: ignore

0 commit comments

Comments
 (0)