Skip to content
Syoyo Fujita edited this page Jul 15, 2016 · 5 revisions

Custom geometry and intersection

You can support custom geometry and intersection by providing codes with C++ template.

See TriangleMesh, TriangleSAHPred, TriangleIntersection and TriangleIntersector class in nanort.h, and

  • examples/particle_primitive for sphere example.
  • examples/curves_primitive for bezier curves example(approximate curve by multiple lines at ray tracing phase).
  • examples/cylinder_primitive for cylinder example.
Clone this wiki locally