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

Parametric surface with defects. More...

Go to the source code of this file.

Detailed Description

Parametric surface with defects.

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


This example illustrates some of the things that can go wrong when generating parametric surfaces. We dump two version of the tessellation – one with quads and one with triangles. This allows us to better illustrate how some defects show up.

  • Quads that are not plainer. Look closely at the rectangular tessellation, and note the "rectangles" appear to be broken in across the diagonal – at least that's how they appear in most tools including Paraview & meshlab.
  • At the poles, the rectangular cells of the tree map to three distinct points instead of four. This means for the rectangular tessellation, the rectangles at the poles are degenerate! Then converting from tree to cell complex, these quads are removed because they are degenerate. This is not an issue for the triangular tessellation (FANS).
  • The v=0 edge meets up with the v=1 edge.
    Because we have chk_point_unique set to true for the cell complex object, the duplicate points are "welded" together when the points are added. This results in a seamless edge.

Definition in file parametric_surface_with_defects.cpp.