MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstPartMapping Class Reference
Inheritance diagram for mrmeshpy.ConstPartMapping:

Public Member Functions

 __init__ (self, *args, **kwargs)
MapOrHashMap_UndirectedEdgeId_EdgeId src2tgtEdges (self)
MapOrHashMap_FaceId_FaceId src2tgtFaces (self)
MapOrHashMap_VertId_VertId src2tgtVerts (self)
MapOrHashMap_UndirectedEdgeId_EdgeId tgt2srcEdges (self)
MapOrHashMap_FaceId_FaceId tgt2srcFaces (self)
MapOrHashMap_VertId_VertId tgt2srcVerts (self)

Static Protected Attributes

typing _offsetof_src2tgtEdges = 16
typing _offsetof_src2tgtFaces = 0
typing _offsetof_src2tgtVerts = 8
typing _offsetof_tgt2srcEdges = 40
typing _offsetof_tgt2srcFaces = 24
typing _offsetof_tgt2srcVerts = 32

Detailed Description

Generated from:  MR::PartMapping

mapping among elements of source mesh, from which a part is taken, and target mesh

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstPartMapping.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstPartMapping) -> None

2. __init__(self: meshlib.mrmeshpy.ConstPartMapping, arg0: meshlib.mrmeshpy.ConstPartMapping) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstPartMapping, src2tgtFaces: meshlib.mrmeshpy.MapOrHashMap_FaceId_FaceId, src2tgtVerts: meshlib.mrmeshpy.MapOrHashMap_VertId_VertId, src2tgtEdges: meshlib.mrmeshpy.MapOrHashMap_UndirectedEdgeId_EdgeId, tgt2srcFaces: meshlib.mrmeshpy.MapOrHashMap_FaceId_FaceId, tgt2srcVerts: meshlib.mrmeshpy.MapOrHashMap_VertId_VertId, tgt2srcEdges: meshlib.mrmeshpy.MapOrHashMap_UndirectedEdgeId_EdgeId) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstPartMapping, : meshlib.mrmeshpy.ConstPartMapping) -> None

Member Function Documentation

◆ src2tgtEdges()

MapOrHashMap_UndirectedEdgeId_EdgeId mrmeshpy.ConstPartMapping.src2tgtEdges ( self)

◆ src2tgtFaces()

MapOrHashMap_FaceId_FaceId mrmeshpy.ConstPartMapping.src2tgtFaces ( self)
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

Reimplemented in mrmeshpy.PartMapping, and mrmeshpy.PartMapping.

◆ src2tgtVerts()

MapOrHashMap_VertId_VertId mrmeshpy.ConstPartMapping.src2tgtVerts ( self)

◆ tgt2srcEdges()

MapOrHashMap_UndirectedEdgeId_EdgeId mrmeshpy.ConstPartMapping.tgt2srcEdges ( self)

◆ tgt2srcFaces()

MapOrHashMap_FaceId_FaceId mrmeshpy.ConstPartMapping.tgt2srcFaces ( self)
target.id -> source.id
dense vectors are better by speed and memory when target mesh was empty before copying

Reimplemented in mrmeshpy.PartMapping, and mrmeshpy.PartMapping.

◆ tgt2srcVerts()

MapOrHashMap_VertId_VertId mrmeshpy.ConstPartMapping.tgt2srcVerts ( self)

Member Data Documentation

◆ _offsetof_src2tgtEdges

typing mrmeshpy.ConstPartMapping._offsetof_src2tgtEdges = 16
staticprotected

◆ _offsetof_src2tgtFaces

typing mrmeshpy.ConstPartMapping._offsetof_src2tgtFaces = 0
staticprotected

◆ _offsetof_src2tgtVerts

typing mrmeshpy.ConstPartMapping._offsetof_src2tgtVerts = 8
staticprotected

◆ _offsetof_tgt2srcEdges

typing mrmeshpy.ConstPartMapping._offsetof_tgt2srcEdges = 40
staticprotected

◆ _offsetof_tgt2srcFaces

typing mrmeshpy.ConstPartMapping._offsetof_tgt2srcFaces = 24
staticprotected

◆ _offsetof_tgt2srcVerts

typing mrmeshpy.ConstPartMapping._offsetof_tgt2srcVerts = 32
staticprotected

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