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

Public Member Functions

 PartMapping (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PartMapping ()
 PartMapping (meshlib.MapOrHashMap_MR_FaceId_MR_FaceId src2tgtFaces, meshlib.MapOrHashMap_MR_VertId_MR_VertId src2tgtVerts, meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId src2tgtEdges, meshlib.MapOrHashMap_MR_FaceId_MR_FaceId tgt2srcFaces, meshlib.MapOrHashMap_MR_VertId_MR_VertId tgt2srcVerts, meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId tgt2srcEdges)
 PartMapping (meshlib.PartMapping _other)
meshlib.PartMapping assignFromAnother (meshlib.PartMapping _other)
void clear ()
java.lang.foreign.MemorySegment src2tgtFaces ()
void setSrc2tgtFaces (meshlib.MapOrHashMap_MR_FaceId_MR_FaceId value)
java.lang.foreign.MemorySegment src2tgtVerts ()
void setSrc2tgtVerts (meshlib.MapOrHashMap_MR_VertId_MR_VertId value)
java.lang.foreign.MemorySegment src2tgtEdges ()
void setSrc2tgtEdges (meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId value)
java.lang.foreign.MemorySegment tgt2srcFaces ()
void setTgt2srcFaces (meshlib.MapOrHashMap_MR_FaceId_MR_FaceId value)
java.lang.foreign.MemorySegment tgt2srcVerts ()
void setTgt2srcVerts (meshlib.MapOrHashMap_MR_VertId_MR_VertId value)
java.lang.foreign.MemorySegment tgt2srcEdges ()
void setTgt2srcEdges (meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId value)
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

mapping among elements of source mesh, from which a part is taken, and target mesh Generated from class MR::PartMapping.

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

Constructor & Destructor Documentation

◆ PartMapping() [1/4]

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

◆ PartMapping() [2/4]

meshlib.PartMapping.PartMapping ( )

Constructs an empty (default-constructed) instance.

Calls MR_PartMapping_DefaultConstruct().

◆ PartMapping() [3/4]

Constructs MR::PartMapping elementwise. The reference to the parameter src2tgtFaces might be preserved in the constructed object. The reference to the parameter src2tgtVerts might be preserved in the constructed object. The reference to the parameter src2tgtEdges might be preserved in the constructed object. The reference to the parameter tgt2srcFaces might be preserved in the constructed object. The reference to the parameter tgt2srcVerts might be preserved in the constructed object. The reference to the parameter tgt2srcEdges might be preserved in the constructed object.

Calls MR_PartMapping_ConstructFrom().

◆ PartMapping() [4/4]

meshlib.PartMapping.PartMapping ( meshlib.PartMapping _other)

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

Calls MR_PartMapping_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.PartMapping meshlib.PartMapping.assignFromAnother ( meshlib.PartMapping _other)

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

Calls MR_PartMapping_AssignFromAnother().

◆ clear()

void meshlib.PartMapping.clear ( )

clears all member maps Generated from method MR::PartMapping::clear.

Calls MR_PartMapping_clear().

◆ setSrc2tgtEdges()

void meshlib.PartMapping.setSrc2tgtEdges ( meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId value)

Modifies a member variable of class MR::PartMapping named src2tgtEdges. The reference to the parameter value might be preserved in this object in element src2tgtEdges.

Calls MR_PartMapping_Set_src2tgtEdges().

◆ setSrc2tgtFaces()

void meshlib.PartMapping.setSrc2tgtFaces ( meshlib.MapOrHashMap_MR_FaceId_MR_FaceId value)

source.id -> target.id each map here can be either dense vector or hash map, the type is set by the user and preserved by mesh copying functions; dense maps are better by speed and memory when source mesh is packed and must be copied entirely; hash maps minimize memory consumption when only a small portion of source mesh is copied Modifies a member variable of class MR::PartMapping named src2tgtFaces. The reference to the parameter value might be preserved in this object in element src2tgtFaces.

Calls MR_PartMapping_Set_src2tgtFaces().

◆ setSrc2tgtVerts()

void meshlib.PartMapping.setSrc2tgtVerts ( meshlib.MapOrHashMap_MR_VertId_MR_VertId value)

Modifies a member variable of class MR::PartMapping named src2tgtVerts. The reference to the parameter value might be preserved in this object in element src2tgtVerts.

Calls MR_PartMapping_Set_src2tgtVerts().

◆ setTgt2srcEdges()

void meshlib.PartMapping.setTgt2srcEdges ( meshlib.MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId value)

Modifies a member variable of class MR::PartMapping named tgt2srcEdges. The reference to the parameter value might be preserved in this object in element tgt2srcEdges.

Calls MR_PartMapping_Set_tgt2srcEdges().

◆ setTgt2srcFaces()

void meshlib.PartMapping.setTgt2srcFaces ( meshlib.MapOrHashMap_MR_FaceId_MR_FaceId value)

target.id -> source.id dense vectors are better by speed and memory when target mesh was empty before copying Modifies a member variable of class MR::PartMapping named tgt2srcFaces. The reference to the parameter value might be preserved in this object in element tgt2srcFaces.

Calls MR_PartMapping_Set_tgt2srcFaces().

◆ setTgt2srcVerts()

void meshlib.PartMapping.setTgt2srcVerts ( meshlib.MapOrHashMap_MR_VertId_MR_VertId value)

Modifies a member variable of class MR::PartMapping named tgt2srcVerts. The reference to the parameter value might be preserved in this object in element tgt2srcVerts.

Calls MR_PartMapping_Set_tgt2srcVerts().

◆ src2tgtEdges()

java.lang.foreign.MemorySegment meshlib.PartMapping.src2tgtEdges ( )

Returns a pointer to a member variable of class MR::PartMapping named src2tgtEdges. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_src2tgtEdges(). Some types are raw C types, see the C bindings for the details.

◆ src2tgtFaces()

java.lang.foreign.MemorySegment meshlib.PartMapping.src2tgtFaces ( )

source.id -> target.id each map here can be either dense vector or hash map, the type is set by the user and preserved by mesh copying functions; dense maps are better by speed and memory when source mesh is packed and must be copied entirely; hash maps minimize memory consumption when only a small portion of source mesh is copied Returns a pointer to a member variable of class MR::PartMapping named src2tgtFaces. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_src2tgtFaces(). Some types are raw C types, see the C bindings for the details.

◆ src2tgtVerts()

java.lang.foreign.MemorySegment meshlib.PartMapping.src2tgtVerts ( )

Returns a pointer to a member variable of class MR::PartMapping named src2tgtVerts. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_src2tgtVerts(). Some types are raw C types, see the C bindings for the details.

◆ tgt2srcEdges()

java.lang.foreign.MemorySegment meshlib.PartMapping.tgt2srcEdges ( )

Returns a pointer to a member variable of class MR::PartMapping named tgt2srcEdges. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_tgt2srcEdges(). Some types are raw C types, see the C bindings for the details.

◆ tgt2srcFaces()

java.lang.foreign.MemorySegment meshlib.PartMapping.tgt2srcFaces ( )

target.id -> source.id dense vectors are better by speed and memory when target mesh was empty before copying Returns a pointer to a member variable of class MR::PartMapping named tgt2srcFaces. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_tgt2srcFaces(). Some types are raw C types, see the C bindings for the details.

◆ tgt2srcVerts()

java.lang.foreign.MemorySegment meshlib.PartMapping.tgt2srcVerts ( )

Returns a pointer to a member variable of class MR::PartMapping named tgt2srcVerts. The reference to this object might be preserved as the return value.

Calls MR_PartMapping_Get_tgt2srcVerts(). Some types are raw C types, see the C bindings for the details.


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