/conjure

Conjure a 3d model

Primary LanguageRustGNU Affero General Public License v3.0AGPL-3.0

Conjure

About

Conjure is a 3D Constructive Solid Geometry (CSG) language.

Rough prototype at the moment.

Conjuring

./conjure --resolution 0.5 --bound 8 examples/union.cnj

Example Conjure Lang

(union
  ; centered on origin
  (sphere 4)
  ; lower left point & upper right point
  (cube [-3 -3 -3] [3 3 3])
)

rendering of union

Benchmarking

cargo bench --bench octree_render

report at: target/criterion/report/index.html

cargo bench --bench octree_render -- --profile-time=10

flamegraphs at: target/criterion/octree_render/<depth>/profile/flamegraph.svg