Skip to content

Commit b542f56

Browse files
WIP update links for files.
1 parent b959227 commit b542f56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gitbook/next-steps/materialization.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44

55
<figure><img src="../.gitbook/assets/materialization_model_photo.png" alt=""><figcaption></figcaption></figure>
66

7-
The aim of this tutorial is to convert RhinoVault data into solid geometry to facilitate the creation of simple physical models. Most often, this step is used for teaching purposes when models or small prototypes are built. The tutorial uses the Rhino ScriptEditor Python interface to extract data from a RhinoVault session file. Multiple mesh-based operations are then used to transform the geometry into solid blocks with shear keys and indices. Run the code below sequentially one-by-one because each step is serialized into a JSON file that is used as a starting point in the consecutive step.
7+
The aim of this tutorial is to convert RhinoVault session (JSON file with scene data-structure) into solid geometry to facilitate the creation of simple physical models. Most often, this step is used for teaching purposes when models or small prototypes are built. The tutorial uses the Rhino ScriptEditor Python interface to extract data from a RhinoVault session file. Multiple mesh-based operations are then used to transform the geometry into solid blocks with shear keys and indices. Run the code below sequentially one-by-one because each step is serialized into a JSON file that is used as a starting point in the consecutive step.
88

9-
{% file src="../../.gitbook/assets/rhinovault_session.json" %}
9+
{% file src="../.gitbook/assets/rhinovault_session.json" %}
1010

1111
## RhinoVault Session
1212

13-
The session file is a JSON file of compas.scene with the following items: `Pattern`, `FormDiagram`, `ThrustDiagram`, `ForceDiagram`. It also stores general settings for drawing and thrust-network-analysis. We will use two attributes: `Pattern` and `ThrustDiagram` for mesh transformation into solid blocks.
13+
The session file is a JSON file of compas.scene with the following items: `Pattern`, `FormDiagram`, `ThrustDiagram`, `ForceDiagram`. It also stores general settings for drawing and thrust-network-analysis. We will use two attributes: `Pattern` and `ThrustDiagram` for mesh transformation into solid blocks. The `scene` is used both for storing and visualising COMPAS items (geometry & datastructures).
1414

15-
There first three comments is specific to Python in Rhino indication a) `python3` language is used, b) code is written `brg-csd` environment, and c) `compas_rv` library must be installable from the python package index (PyPI).
15+
There first three comments are specific to Python in Rhino indication a) `python3` indicates the language is used, b) code is written in `brg-csd` environment, and c) `compas_rv` is library requirement that must be installable from the python package index (PyPI).
1616

17-
The `scene` is used both for storing and visualising COMPAS items (geometry & datastructures).
1817

1918
<figure><img src="../.gitbook/assets/materialization_pattern.png" alt=""><figcaption></figcaption></figure>
2019

@@ -31,7 +30,7 @@ from compas.scene import Scene
3130
# =============================================================================
3231
# Load data
3332
# =============================================================================
34-
IFILE = pathlib.Path(__file__).parent.parent / "data" / "shell_final.json"
33+
IFILE = pathlib.Path(__file__).parent.parent / "data" / "rhinovault_session.json"
3534
rv_session = compas.json_load(IFILE)
3635
rv_scene: Scene = rv_session["scene"]
3736
pattern = rv_scene.find_by_name("Pattern").mesh
@@ -44,3 +43,4 @@ scene.clear_context()
4443
scene.add(rv_scene.find_by_name("Pattern").mesh)
4544
scene.draw()
4645

46+
## RhinoVault Session

0 commit comments

Comments
 (0)