MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPartMapping.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
5namespace MR
6{
7
9struct PartMapping
10{
11 // source.id -> target.id
12 // each map here can be either dense vector or hash map, the type is set by the user and preserved by mesh copying functions;
13 // dense maps are better by speed and memory when source mesh is packed and must be copied entirely;
14 // hash maps minimize memory consumption when only a small portion of source mesh is copied
15 FaceMapOrHashMap * src2tgtFaces = nullptr;
16 VertMapOrHashMap * src2tgtVerts = nullptr;
17 WholeEdgeMapOrHashMap * src2tgtEdges = nullptr;
18
19 // target.id -> source.id
20 // dense vectors are better by speed and memory when target mesh was empty before copying
21 FaceMapOrHashMap * tgt2srcFaces = nullptr;
22 VertMapOrHashMap * tgt2srcVerts = nullptr;
23 WholeEdgeMapOrHashMap * tgt2srcEdges = nullptr;
24
26 MRMESH_API void clear();
27};
28
29} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe void clear()
Definition MRCameraOrientationPlugin.h:8
WholeEdgeMapOrHashMap