MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectMeshData.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRColor.h"
4#include "MRMeshFwd.h"
5#include "MRVector.h"
6#include "MRVector2.h"
7#include "MRBitSet.h"
8
9namespace MR
10{
13
14
17{
18 std::shared_ptr<Mesh> mesh;
19
21 FaceBitSet selectedFaces;
22 UndirectedEdgeBitSet selectedEdges;
23
24 UndirectedEdgeBitSet creases;
25
27 VertColors vertColors;
28 FaceColors faceColors;
29
31 VertUVCoords uvCoordinates;
32 TexturePerFace texturePerFace;
33
35 [[nodiscard]] MRMESH_API ObjectMeshData clone() const;
36
38 [[nodiscard]] MRMESH_API size_t heapBytes() const;
39};
40
42[[nodiscard]] MRMESH_API UndirectedEdgeBitSet edgesBetweenDifferentColors( const MeshTopology & topology, const FaceColors & colors );
43
44}
Definition MRMeshTopology.h:22
FaceColors faceColors
Definition MRObjectMeshData.h:28
FaceBitSet selectedFaces
selection
Definition MRObjectMeshData.h:21
UndirectedEdgeBitSet creases
Definition MRObjectMeshData.h:24
MRMESH_API size_t heapBytes() const
returns the amount of memory this object occupies on heap
MRMESH_API UndirectedEdgeBitSet edgesBetweenDifferentColors(const MeshTopology &topology, const FaceColors &colors)
return all edges separating faces with different colors
VertUVCoords uvCoordinates
textures
Definition MRObjectMeshData.h:31
UndirectedEdgeBitSet selectedEdges
Definition MRObjectMeshData.h:22
std::shared_ptr< Mesh > mesh
Definition MRObjectMeshData.h:18
VertColors vertColors
colors
Definition MRObjectMeshData.h:27
MRMESH_API ObjectMeshData clone() const
returns copy of this object with mesh cloned
TexturePerFace texturePerFace
Definition MRObjectMeshData.h:32
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:17