FuncViz examples
Generalized bitree/quadtree/octree library
Loading...
Searching...
No Matches
implicit_surface.cpp File Reference

Sampling for an implicit surface. More...

Go to the source code of this file.

Detailed Description

Sampling for an implicit surface.

Author
Mitch Richling http://www.mitchr.me/
Date
2024-07-14
Standards
C++23
Details


This example is very similar to implicit_curve_2d.cpp; however, instead of extracting a curve from a triangulation of a surface, this time we extract a surface from a quad tessellation of a hexahedron. In addition to what we demonstrate with implicit_curve_2d.cpp, this example also demonstrates:

  • How to use an SDF to identify cells that contain the level set
  • How to export only a subset of cells

Definition in file implicit_surface.cpp.