Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* Changed the RhinoCode command requirements to `compas_rv >=0.10.0`.

### Added

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# RhinoVAULT

> [!NOTE]
> The current version of RhinoVAULT on the Rhino Yak package server is `0.5.34.9081`.
> The current version of RhinoVAULT can be downloaded through the Rhino Yak package.
> Note that this is still a pre-release!

![RhinoVAULT](compas-RV.jpg)
Expand Down
2 changes: 1 addition & 1 deletion commands/RV.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import pathlib

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_dem_blocks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore
from compas_dem.models import BlockModel
Expand Down
2 changes: 1 addition & 1 deletion commands/RV_envelope.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_force.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_force_modify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_force_solve.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_form.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_form_modify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_loads.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_pattern.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_pattern_boundaries.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1


import rhinoscriptsyntax as rs # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion commands/RV_pattern_modify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_pattern_relax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_pattern_supports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_scene_clear.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

from compas_rv.session import RVSession

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_scene_redraw.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_session_export.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import pathlib

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_session_open.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import pathlib

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_session_redo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

from compas_rv.session import RVSession

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_session_save.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import pathlib

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_session_undo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

from compas_rv.session import RVSession

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore
from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion commands/RV_thrust_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

from compas_rui.forms.meshinfo import MeshInfoForm
from compas_rv.session import RVSession
Expand Down
2 changes: 1 addition & 1 deletion commands/RV_thrust_modify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import rhinoscriptsyntax as rs # type: ignore

Expand Down
2 changes: 1 addition & 1 deletion commands/RV_tna_horizontal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1


import rhinoscriptsyntax as rs # type: ignore # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion commands/RV_tna_vertical.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1


import rhinoscriptsyntax as rs # type: ignore
Expand Down
17 changes: 8 additions & 9 deletions commands/RV_tno_analysis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! python3
# venv: brg-csd
# r: compas_rv>=0.9.5
# r: compas_rv>=0.10.1

import numpy as np
import rhinoscriptsyntax as rs # type: ignore
Expand All @@ -11,6 +11,7 @@
from compas_rv.session import RVSession
from compas_rv.solvers import update_force_from_form
from compas_tna.envelope import MeshEnvelope
from compas_tna.envelope import ParametricEnvelope

OBJECTIVES = [
"MinimumThrust",
Expand All @@ -22,12 +23,13 @@
]


def get_optimisation_options(objective):
def get_optimisation_options(objective, envelope):
constraint_options = [
("Funicular", True),
("Envelope", objective != "Bestfit"),
("ReactionDirections", False),
]
if isinstance(envelope, ParametricEnvelope):
constraint_options.append(("ReactionDirections", False))
constraint_options = rs.CheckListBox(constraint_options, "Validate the constraints of the optimisation.", "TNO Constraints")
if constraint_options is None:
return
Expand Down Expand Up @@ -265,12 +267,7 @@ def RunCommand():
if not objective:
return

solver = rs.GetString("Solver", session.settings.tno.solver, ["SLSQP", "IPOPT"])
if not solver:
return
session.settings.tno.solver = solver

options = get_optimisation_options(objective)
options = get_optimisation_options(objective, envelope)
if not options:
return
constraints, variables = options
Expand All @@ -286,6 +283,8 @@ def RunCommand():
try:
# Apply the envelope bounds and use the loads prepared on the FormDiagram.
envelope.apply_bounds_to_formdiagram(formobject.diagram)
if "reac_bounds" in constraints:
analysis.apply_reaction_bounds()

if abs(sum(formobject.diagram.vertices_attribute("pz"))) < 0.001:
return session.warn("There are no loads applied to the FormDiagram. Use RV_loads before running TNO analysis.")
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
compas >=2.13
compas_cgal >=0.9.1
compas_cgal >=0.9.2
compas_dem >=0.3.3
compas_libigl >=0.7.4
compas_rui >=0.5.1
compas_session >=0.5.5
compas_skeleton
compas_tna >=0.5
compas_tna >=0.8.0
compas_tno >=0.4.0
compas_triangle >=1.2.1
tessagon
Loading