Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tgSphere functionality to the YAML builder. To use: create a no…
…de with the tag of a builder. See example in src/dev/apsabelhaus/YAMLtests/stick_with_ball.
- Loading branch information
1 parent
8ef1e8e
commit 1b4dbe7
Showing
3 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This will be a test of adding tgSphere functionality to the YAML builder. | ||
|
||
nodes: | ||
# Add a random stick. | ||
center: [0, 1, 0] | ||
endpoint: [0, 11, 0] | ||
# Spheres will be created whenever a node has the tag of | ||
# a builder. So, no need to do a pair group, just place a node! | ||
endingsphere: [0, 11, 0] | ||
|
||
pair_groups: | ||
# First, just a stick. | ||
stickbox: | ||
- [center, endpoint] | ||
# Just to emphasize again: no pairs needed for spheres! | ||
|
||
# Builders. First, the box: | ||
builders: | ||
|
||
stickbox: | ||
class: tgBoxInfo | ||
parameters: | ||
density: 0.5 | ||
width: 0.5 | ||
height: 0.5 | ||
|
||
endingsphere: | ||
class: tgSphereInfo | ||
parameters: | ||
density: 0.5 | ||
radius: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters