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

Static Public Attributes

static const meshlib::SignDetectionMode Unsigned
 unsigned distance, useful for bidirectional Shell offset
static const meshlib::SignDetectionMode OpenVDB
 sign detection from OpenVDB library, which is good and fast if input geometry is closed
static const meshlib::SignDetectionMode ProjectionNormal
 the sign is determined based on pseudonormal in closest mesh point (unsafe in case of self-intersections)
static const meshlib::SignDetectionMode OddCrossings
static const meshlib::SignDetectionMode WindingRule
 < old name of OddCrossings
static const meshlib::SignDetectionMode HoleWindingRule

Detailed Description

how to determine the sign of distances from a mesh

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

Member Data Documentation

◆ HoleWindingRule

const meshlib::SignDetectionMode meshlib::SignDetectionMode::HoleWindingRule
static

computes robust winding number generalization with support of holes and self-intersections in mesh, it is the slowest sign detection mode, but it CAN be accelerated with CUDA if this mode activated e.g. in OffsetParameters.fwn

◆ OddCrossings

const meshlib::SignDetectionMode meshlib::SignDetectionMode::OddCrossings
static

a point is inside if the surface is crossed an odd number of times on the way from the point to infinity, triangle orientation is ignored (as InsideMeshRule::OddCrossings in makeInsideMeshVolume); for meshes with holes, the result depends on the ray direction (+X); signedDistanceToMesh casts a ray from every point, while the volume functions (e.g. meshToDistanceVolume) cast one ray per row of voxels, which is much faster; this mode does NOT have CUDA acceleration at this moment

◆ OpenVDB

const meshlib::SignDetectionMode meshlib::SignDetectionMode::OpenVDB
static

sign detection from OpenVDB library, which is good and fast if input geometry is closed

◆ ProjectionNormal

const meshlib::SignDetectionMode meshlib::SignDetectionMode::ProjectionNormal
static

the sign is determined based on pseudonormal in closest mesh point (unsafe in case of self-intersections)

◆ Unsigned

const meshlib::SignDetectionMode meshlib::SignDetectionMode::Unsigned
static

unsigned distance, useful for bidirectional Shell offset

◆ WindingRule

const meshlib::SignDetectionMode meshlib::SignDetectionMode::WindingRule
static

< old name of OddCrossings


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