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

Public Member Functions

 SeparationPointStorage (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SeparationPointStorage ()
 SeparationPointStorage (meshlib.SeparationPointStorage _other)
meshlib.SeparationPointStorage assignFromAnother (meshlib.SeparationPointStorage _other)
void resize (long blockCount, long blockSize)
meshlib.SeparationPointStorage_Block getBlock (long blockIndex)
int makeUniqueVids ()
meshlib.std_array_MR_VertId_3 findSeparationPointSet (long voxelId)
meshlib.Triangulation getTriangulation (meshlib.Vector_MR_VoxelId_MR_FaceId outVoxelPerFaceMap)
void getPoints (meshlib.VertCoords points)
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 ()

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

storage for points on voxel edges used in Marching Cubes algorithms Generated from class MR::SeparationPointStorage.

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

Constructor & Destructor Documentation

◆ SeparationPointStorage() [1/3]

meshlib.SeparationPointStorage.SeparationPointStorage ( 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.

◆ SeparationPointStorage() [2/3]

meshlib.SeparationPointStorage.SeparationPointStorage ( )

Constructs an empty (default-constructed) instance.

Calls MR_SeparationPointStorage_DefaultConstruct().

◆ SeparationPointStorage() [3/3]

meshlib.SeparationPointStorage.SeparationPointStorage ( meshlib.SeparationPointStorage _other)

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

Calls MR_SeparationPointStorage_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SeparationPointStorage meshlib.SeparationPointStorage.assignFromAnother ( meshlib.SeparationPointStorage _other)

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

Calls MR_SeparationPointStorage_AssignFromAnother().

◆ findSeparationPointSet()

meshlib.std_array_MR_VertId_3 meshlib.SeparationPointStorage.findSeparationPointSet ( long voxelId)

finds the set (locating the block) by voxel id Generated from method MR::SeparationPointStorage::findSeparationPointSet.

Calls MR_SeparationPointStorage_findSeparationPointSet().

◆ getBlock()

meshlib.SeparationPointStorage_Block meshlib.SeparationPointStorage.getBlock ( long blockIndex)

get block for filling in the thread responsible for it Generated from method MR::SeparationPointStorage::getBlock.

Calls MR_SeparationPointStorage_getBlock().

◆ getPoints()

void meshlib.SeparationPointStorage.getPoints ( meshlib.VertCoords points)

obtains coordinates of all stored points Generated from method MR::SeparationPointStorage::getPoints.

Calls MR_SeparationPointStorage_getPoints().

◆ getTriangulation()

meshlib.Triangulation meshlib.SeparationPointStorage.getTriangulation ( meshlib.Vector_MR_VoxelId_MR_FaceId outVoxelPerFaceMap)

combines triangulations from every block into one and returns it Generated from method MR::SeparationPointStorage::getTriangulation.

Calls MR_SeparationPointStorage_getTriangulation().

◆ makeUniqueVids()

int meshlib.SeparationPointStorage.makeUniqueVids ( )

shifts vertex ids in each block (after they are filled) to make them unique; returns the total number of valid points in the storage Generated from method MR::SeparationPointStorage::makeUniqueVids.

Calls MR_SeparationPointStorage_makeUniqueVids().

◆ resize()

void meshlib.SeparationPointStorage.resize ( long blockCount,
long blockSize )

prepares storage for given number of blocks, each containing given size of voxels Generated from method MR::SeparationPointStorage::resize.

Calls MR_SeparationPointStorage_resize().


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