FuncViz examples
Generalized bitree/quadtree/octree library
Loading...
Searching...
No Matches
ear_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_surface.cpp; however, instead of extracting a surface from a quad tessellation of a hexahedrona we extract the surface from a tessellation of a pyramids. Why use pyramids instead of hexahedrona? In the example implicit_surface.cpp all of the underlying cells are the same size, and thus no gaps occur in the extracted level set (the surface). In this example we have cells that vary a great deal in size.

This example demonstrates scratch made cell predicates, and uses them to increse sample resolution on parts of the surface that are particularly difficlut to extract.

This surface is defined by the zeros of the following polynomial

\[ x^2-y^2*z^2+z^3 \]

Definition in file ear_surface.cpp.