MeshLib Documentation
Loading...
Searching...
No Matches
MRProjectMeshAttributes.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3#include <MRMesh/MRMeshFwd.h>
4#include "MRMesh/MRVector.h"
5
6#include <optional>
7
8namespace MR
9{
10
12{
13 VertUVCoords uvCoords;
14 VertColors colorMap;
15
16 TexturePerFace texturePerFace;
17 FaceColors faceColors;
18};
19
22[[nodiscard]] MRVIEWER_API std::optional<MeshAttributes> projectMeshAttributes(
23 const ObjectMesh& oldMeshObj,
24 const MeshPart& newMeshPart,
25 ProgressCallback cb = {} );
26
28MRVIEWER_API void emplaceMeshAttributes(
29 std::shared_ptr<ObjectMesh> objectMesh,
30 MeshAttributes&& newAttribute );
31
32}
Definition MRObjectMesh.h:11
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API void emplaceMeshAttributes(std::shared_ptr< ObjectMesh > objectMesh, MeshAttributes &&newAttribute)
set new mesh attributes and saving the history of changing mesh attributes
MRVIEWER_API std::optional< MeshAttributes > projectMeshAttributes(const ObjectMesh &oldMeshObj, const MeshPart &newMeshPart, ProgressCallback cb={})
Definition MRProjectMeshAttributes.h:12
VertColors colorMap
Definition MRProjectMeshAttributes.h:14
FaceColors faceColors
Definition MRProjectMeshAttributes.h:17
VertUVCoords uvCoords
Definition MRProjectMeshAttributes.h:13
TexturePerFace texturePerFace
Definition MRProjectMeshAttributes.h:16