MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::InsideMeshRule Struct Reference
Inheritance diagram for meshlib::InsideMeshRule:

Static Public Attributes

static const meshlib::InsideMeshRule OddCrossings
static const meshlib::InsideMeshRule PositiveWinding

Detailed Description

how makeInsideMeshVolume decides whether a voxel is inside

Generated from enum MR::InsideMeshRule. The constants are associated constants of this type.

Member Data Documentation

◆ OddCrossings

const meshlib::InsideMeshRule meshlib::InsideMeshRule::OddCrossings
static

the surface is crossed an odd number of times on the way from the voxel to infinity, triangle orientation is ignored: enclosed cavities stay empty, nested layers alternate inside and outside, and overlapping parts of a self-intersecting surface cancel each other

◆ PositiveWinding

const meshlib::InsideMeshRule meshlib::InsideMeshRule::PositiveWinding
static

the winding number of the surface around the voxel is positive (for a mesh with outward normals): overlapping parts of a self-intersecting surface are united, a cavity stays empty if its triangles look inside it


The documentation for this struct was generated from the following file: