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

Public Member Functions

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

Static Public Member Functions

static InsideMeshRule of (int value)

Public Attributes

final int value

Static Public Attributes

static final InsideMeshRule OddCrossings = new InsideMeshRule(0)
static final InsideMeshRule PositiveWinding = new InsideMeshRule(1)

Detailed Description

how makeInsideMeshVolume decides whether a voxel is inside

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

◆ InsideMeshRule()

meshlib.InsideMeshRule.InsideMeshRule ( int value)

Member Function Documentation

◆ equals()

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

◆ hashCode()

int meshlib.InsideMeshRule.hashCode ( )

◆ of()

InsideMeshRule meshlib.InsideMeshRule.of ( int value)
static

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

◆ toString()

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

Member Data Documentation

◆ OddCrossings

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

final InsideMeshRule meshlib.InsideMeshRule.PositiveWinding = new InsideMeshRule(1)
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

◆ value

final int meshlib.InsideMeshRule.value

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