MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTextureColors.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include <optional>
5
6namespace MR
7{
10
11
14[[nodiscard]] MRMESH_API std::optional<UVCoord> findVertexUV( const MeshTopology& topology, VertId v, const TriCornerUVCoords& triCornerUvCoords );
15
18[[nodiscard]] MRMESH_API std::optional<VertUVCoords> findVertexUVs( const MeshTopology& topology, const TriCornerUVCoords& triCornerUvCoords );
19
22[[nodiscard]] MRMESH_API Color sampleVertexColor( const Mesh& mesh, VertId v, const MeshTexture& tex, const TriCornerUVCoords& triCornerUvCoords );
23
26[[nodiscard]] MRMESH_API VertColors sampleVertexColors( const Mesh& mesh, const MeshTexture& tex, const TriCornerUVCoords& triCornerUvCoords );
27
30MRMESH_API void convertTriCornerUVs( const Mesh& mesh, TriCornerUVCoords& triCornerUvCoords, VertUVCoords& uvCoords, VertColors& colors, MeshTexture& texture );
31
32}
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
Color sampleVertexColor(const Mesh &mesh, VertId v, const MeshTexture &tex, const TriCornerUVCoords &triCornerUvCoords)
std::optional< VertUVCoords > findVertexUVs(const MeshTopology &topology, const TriCornerUVCoords &triCornerUvCoords)
void convertTriCornerUVs(const Mesh &mesh, TriCornerUVCoords &triCornerUvCoords, VertUVCoords &uvCoords, VertColors &colors, MeshTexture &texture)
std::optional< UVCoord > findVertexUV(const MeshTopology &topology, VertId v, const TriCornerUVCoords &triCornerUvCoords)
VertColors sampleVertexColors(const Mesh &mesh, const MeshTexture &tex, const TriCornerUVCoords &triCornerUvCoords)
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRColor.h:12
Definition MRMeshTexture.h:13
Definition MRMesh.h:24