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{
11
13struct ObjectMeshData
14{
15 std::shared_ptr<Mesh> mesh;
16
17 // selection
18 FaceBitSet selectedFaces;
19 UndirectedEdgeBitSet selectedEdges;
20
21 UndirectedEdgeBitSet creases;
22
23 // colors
24 VertColors vertColors;
25 FaceColors faceColors;
26
27 // textures
28 VertUVCoords uvCoordinates;
29 TexturePerFace texturePerFace;
30
32 [[nodiscard]] MRMESH_API ObjectMeshData clone() const;
33
35 [[nodiscard]] MRMESH_API size_t heapBytes() const;
36};
37
39[[nodiscard]] MRMESH_API UndirectedEdgeBitSet edgesBetweenDifferentColors( const MeshTopology & topology, const FaceColors & colors );
40
41} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMesh/MRMeshTopology.h:19
new unsafe MR.FaceColors faceColors
unsafe ObjectMeshData()
Definition MRCameraOrientationPlugin.h:8
MRMESH_API UndirectedEdgeBitSet edgesBetweenDifferentColors(const MeshTopology &topology, const FaceColors &colors)
return all edges separating faces with different colors