MeshLib Java Docs
Loading...
Searching...
No Matches

Public Member Functions

 SignDetectionMode (int value)
boolean equals (java.lang.Object other)
int hashCode ()
java.lang.String toString ()

Static Public Member Functions

static SignDetectionMode of (int value)

Public Attributes

final int value

Static Public Attributes

static final SignDetectionMode Unsigned = new SignDetectionMode(0)
static final SignDetectionMode OpenVDB = new SignDetectionMode(1)
static final SignDetectionMode ProjectionNormal = new SignDetectionMode(2)
static final SignDetectionMode OddCrossings = new SignDetectionMode(3)
static final SignDetectionMode WindingRule = new SignDetectionMode(3)
static final SignDetectionMode HoleWindingRule = new SignDetectionMode(4)

Detailed Description

how to determine the sign of distances from a mesh

The constants are static fields of this class. value holds the underlying value, so this can also hold values that aren't named constants.

Constructor & Destructor Documentation

◆ SignDetectionMode()

meshlib.SignDetectionMode.SignDetectionMode ( int value)

Member Function Documentation

◆ equals()

boolean meshlib.SignDetectionMode.equals ( java.lang.Object other)

◆ hashCode()

int meshlib.SignDetectionMode.hashCode ( )

◆ of()

SignDetectionMode meshlib.SignDetectionMode.of ( int value)
static

Returns the named constant with this value, or a new instance if there's none.

◆ toString()

java.lang.String meshlib.SignDetectionMode.toString ( )

Member Data Documentation

◆ HoleWindingRule

final SignDetectionMode meshlib.SignDetectionMode.HoleWindingRule = new SignDetectionMode(4)
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

final SignDetectionMode meshlib.SignDetectionMode.OddCrossings = new SignDetectionMode(3)
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

final SignDetectionMode meshlib.SignDetectionMode.OpenVDB = new SignDetectionMode(1)
static

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

◆ ProjectionNormal

final SignDetectionMode meshlib.SignDetectionMode.ProjectionNormal = new SignDetectionMode(2)
static

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

◆ Unsigned

final SignDetectionMode meshlib.SignDetectionMode.Unsigned = new SignDetectionMode(0)
static

unsigned distance, useful for bidirectional Shell offset

◆ value

final int meshlib.SignDetectionMode.value

◆ WindingRule

final SignDetectionMode meshlib.SignDetectionMode.WindingRule = new SignDetectionMode(3)
static

< old name of OddCrossings


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