Skip to content

Commit 16a9d90

Browse files
committed
update requirements
1 parent 1d2d8df commit 16a9d90

27 files changed

+44
-37
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.1
3+
# r: compas_rv>=0.9.2
44

55
import pathlib
66

commands/RV_dem_blocks.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#! python3
22
# venv: brg-csd
3-
# r: compas_rv>=0.9.1
3+
# r: compas_rv>=0.9.2
44

55
import rhinoscriptsyntax as rs # type: ignore
66
from compas_dem.models import BlockModel
7+
from compas_libigl.mapping import TESSAGON_TYPES
78

89
from compas.datastructures import Mesh
910
from compas_rv.session import RVSession
@@ -19,14 +20,20 @@ def RunCommand():
1920

2021
option = rs.GetString(message="DEM Blocks From", strings=["Dual", "MeshPattern"])
2122

23+
mesh: Mesh = thrust.diagram.copy()
24+
for face in list(mesh.faces_where(_is_loaded=False)):
25+
mesh.delete_face(face)
26+
2227
if option == "Dual":
23-
mesh: Mesh = thrust.diagram.copy()
24-
for face in list(mesh.faces_where(_is_loaded=False)):
25-
mesh.delete_face(face)
26-
model = BlockModel.from_meshdual(mesh)
28+
model = BlockModel.from_triangulation_dual(mesh)
2729

2830
elif option == "MeshPattern":
29-
raise NotImplementedError
31+
option2 = rs.GetString(message="Pattern Name", strings=sorted(TESSAGON_TYPES.keys()))
32+
33+
if option2 not in TESSAGON_TYPES:
34+
raise NotImplementedError
35+
36+
model = BlockModel.from_meshpattern(mesh, option2)
3037

3138
else:
3239
raise NotImplementedError

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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
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.1
3+
# r: compas_rv>=0.9.2
44

55

66
import rhinoscriptsyntax as rs # type: ignore

0 commit comments

Comments
 (0)