Browse Source

Add two simple examples

main
raffitz 4 years ago
parent
commit
981b7c403d
Signed by: raffitz
GPG Key ID: BB3596BD0A31252D
  1. 1
      .gitignore
  2. 9
      examples/circle.solid
  3. 9
      examples/torus1.solid

1
.gitignore vendored

@ -1 +1,2 @@ @@ -1 +1,2 @@
/target
*/*.png

9
examples/circle.solid

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
# Circle with radius s
define @-s 0 - s
@-s <= x <= s
@-s <= y <= s
@-s <= z <= s
r <= s

9
examples/torus1.solid

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
# Circle with radius s
define @-s 0 - s
5*@-s <= x <= 5*s
5*@-s <= y <= 5*s
@-s <= z <= s
(ρ - 3*s)^2 + z^2 <= s^2
Loading…
Cancel
Save