MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPly.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
5#include "MRExpected.h"
6#include <iostream>
7#include <filesystem>
8#include <optional>
9
10namespace MR
11{
14
15
18{
19 std::optional<Triangulation>* tris = nullptr;
20 std::optional<Edges>* edges = nullptr;
21 VertColors* colors = nullptr;
22 FaceColors* faceColors = nullptr;
23 VertUVCoords* uvCoords = nullptr;
24 TriCornerUVCoords* triCornerUvCoords = nullptr;
25 VertNormals* normals = nullptr;
26 MeshTexture* texture = nullptr;
27
28 std::filesystem::path dir;
29 ProgressCallback callback;
30 bool telemetrySignal = true;
31};
32
33[[nodiscard]] MRMESH_API Expected<VertCoords> loadPly( std::istream& in, const PlyLoadParams& params );
34
35}
MeshTexture * texture
optional load artifact: texture image
Definition MRPly.h:26
VertNormals * normals
optional load artifact: per-vertex normals
Definition MRPly.h:25
TriCornerUVCoords * triCornerUvCoords
optional load artifact: per-corner uv-coordinates for each triangle
Definition MRPly.h:24
std::filesystem::path dir
directory to load texture files from
Definition MRPly.h:28
tl::expected< T, E > Expected
Definition MRExpected.h:31
bool telemetrySignal
permit telemetry signal about loading
Definition MRPly.h:30
VertColors * colors
optional load artifact: per-vertex color map
Definition MRPly.h:21
std::optional< Triangulation > * tris
optional load artifact: mesh triangles
Definition MRPly.h:19
VertUVCoords * uvCoords
optional load artifact: per-vertex uv-coordinates
Definition MRPly.h:23
FaceColors * faceColors
optional load artifact: per-face color map
Definition MRPly.h:22
std::optional< Edges > * edges
optional load artifact: polyline edges
Definition MRPly.h:20
ProgressCallback callback
callback for set progress and stop process
Definition MRPly.h:29
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Expected< Mesh > loadPly(const std::filesystem::path &file, const MeshLoadSettings &settings={})
loads mesh from file in .PLY format;
Definition MRMeshTexture.h:13
optional load artifacts and other setting for PLY file loading
Definition MRPly.h:18