MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.meshbuilder.VertInfo Class Reference
Inheritance diagram for meshlib.meshbuilder.VertInfo:

Public Member Functions

 VertInfo (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VertInfo ()
 VertInfo (meshlib.meshbuilder.VertInfo _other)
meshlib.meshbuilder.VertInfo assignFromAnother (meshlib.meshbuilder.VertInfo _other)
boolean hasRepeatedVerts ()
int numRepeatedVerts ()
int maxVertRepetitions ()
int numOpenChains ()
int numClosedChains ()
int numChains ()
boolean duplicationNeeded ()
boolean areTwinChains (int numTris)
void setNumChains (int openChains, int closedChains)
void setNumRepeatedVerts (int repeatedVerts, int maxVertRepetitions)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static int maxNumOpenChains ()
static int maxNumClosedChains ()
static int maxNumRepeatedVerts ()
static int maxMaxVertRepetitions ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

classification of the triangles around one vertex, packed in 32 bits; it stores 1-bit flag (hasRepeatedVerts) and either 31-bit numRepeatedVerts (if the flag is on), or 16-bit numOpenChains and 15-bit numClosedChains (if the flag is off) Generated from class MR::MeshBuilder::VertInfo.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ VertInfo() [1/3]

meshlib.meshbuilder.VertInfo.VertInfo ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ VertInfo() [2/3]

meshlib.meshbuilder.VertInfo.VertInfo ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshBuilder_VertInfo_DefaultConstruct().

◆ VertInfo() [3/3]

meshlib.meshbuilder.VertInfo.VertInfo ( meshlib.meshbuilder.VertInfo _other)

Generated from constructor MR::MeshBuilder::VertInfo::VertInfo. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MeshBuilder_VertInfo_ConstructFromAnother().

Member Function Documentation

◆ areTwinChains()

boolean meshlib.meshbuilder.VertInfo.areTwinChains ( int numTris)

tests for the case when every triangle around central vertex is present twice, if the chains are closed, the copy triangles have always same or always opposite orientation, if the chains are open, the copy triangles have always same orientation, so every neighbour vertex is repeated Generated from method MR::MeshBuilder::VertInfo::areTwinChains.

Calls MR_MeshBuilder_VertInfo_areTwinChains().

◆ assignFromAnother()

meshlib.meshbuilder.VertInfo meshlib.meshbuilder.VertInfo.assignFromAnother ( meshlib.meshbuilder.VertInfo _other)

Generated from method MR::MeshBuilder::VertInfo::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MeshBuilder_VertInfo_AssignFromAnother().

◆ duplicationNeeded()

boolean meshlib.meshbuilder.VertInfo.duplicationNeeded ( )

true if the triangles around the vertex do not form a configuration MeshBuilder accepts as is (a single chain or ring, no triangles at all, or two open chains), so the vertex must be duplicated Generated from method MR::MeshBuilder::VertInfo::duplicationNeeded.

Calls MR_MeshBuilder_VertInfo_duplicationNeeded().

◆ hasRepeatedVerts()

boolean meshlib.meshbuilder.VertInfo.hasRepeatedVerts ( )

true if some neighbor vertex is present in more than one triangle-pair around the vertex Generated from method MR::MeshBuilder::VertInfo::hasRepeatedVerts.

Calls MR_MeshBuilder_VertInfo_hasRepeatedVerts().

◆ maxMaxVertRepetitions()

int meshlib.meshbuilder.VertInfo.maxMaxVertRepetitions ( )
static

Returns a pointer to a member variable of class MR::MeshBuilder::VertInfo named maxMaxVertRepetitions.

Calls MR_MeshBuilder_VertInfo_Get_maxMaxVertRepetitions().

◆ maxNumClosedChains()

int meshlib.meshbuilder.VertInfo.maxNumClosedChains ( )
static

Returns a pointer to a member variable of class MR::MeshBuilder::VertInfo named maxNumClosedChains.

Calls MR_MeshBuilder_VertInfo_Get_maxNumClosedChains().

◆ maxNumOpenChains()

int meshlib.meshbuilder.VertInfo.maxNumOpenChains ( )
static

maximal values storable in the counters Returns a pointer to a member variable of class MR::MeshBuilder::VertInfo named maxNumOpenChains.

Calls MR_MeshBuilder_VertInfo_Get_maxNumOpenChains().

◆ maxNumRepeatedVerts()

int meshlib.meshbuilder.VertInfo.maxNumRepeatedVerts ( )
static

Returns a pointer to a member variable of class MR::MeshBuilder::VertInfo named maxNumRepeatedVerts.

Calls MR_MeshBuilder_VertInfo_Get_maxNumRepeatedVerts().

◆ maxVertRepetitions()

int meshlib.meshbuilder.VertInfo.maxVertRepetitions ( )

the maximum number of a neighbor vertex repetitions; 0 if !hasRepeatedVerts() Generated from method MR::MeshBuilder::VertInfo::maxVertRepetitions.

Calls MR_MeshBuilder_VertInfo_maxVertRepetitions().

◆ numChains()

int meshlib.meshbuilder.VertInfo.numChains ( )

the total number of open and closed chains of connected triangles around the vertex; 0 if hasRepeatedVerts() Generated from method MR::MeshBuilder::VertInfo::numChains.

Calls MR_MeshBuilder_VertInfo_numChains().

◆ numClosedChains()

int meshlib.meshbuilder.VertInfo.numClosedChains ( )

the number of closed chains (rings) of connected triangles around the vertex; 0 if hasRepeatedVerts() Generated from method MR::MeshBuilder::VertInfo::numClosedChains.

Calls MR_MeshBuilder_VertInfo_numClosedChains().

◆ numOpenChains()

int meshlib.meshbuilder.VertInfo.numOpenChains ( )

the number of open chains of connected triangles around the vertex; 0 if hasRepeatedVerts() Generated from method MR::MeshBuilder::VertInfo::numOpenChains.

Calls MR_MeshBuilder_VertInfo_numOpenChains().

◆ numRepeatedVerts()

int meshlib.meshbuilder.VertInfo.numRepeatedVerts ( )

the total number of neighbor vertex repetitions; 0 if !hasRepeatedVerts() Generated from method MR::MeshBuilder::VertInfo::numRepeatedVerts.

Calls MR_MeshBuilder_VertInfo_numRepeatedVerts().

◆ setNumChains()

void meshlib.meshbuilder.VertInfo.setNumChains ( int openChains,
int closedChains )

Generated from method MR::MeshBuilder::VertInfo::setNumChains.

Calls MR_MeshBuilder_VertInfo_setNumChains().

◆ setNumRepeatedVerts()

void meshlib.meshbuilder.VertInfo.setNumRepeatedVerts ( int repeatedVerts,
int maxVertRepetitions )

Generated from method MR::MeshBuilder::VertInfo::setNumRepeatedVerts.

Calls MR_MeshBuilder_VertInfo_setNumRepeatedVerts().


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