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{
12
14struct PlyLoadParams
15{
16 std::optional<Triangulation>* tris = nullptr;
17 std::optional<Edges>* edges = nullptr;
18 VertColors* colors = nullptr;
19 FaceColors* faceColors = nullptr;
20 VertUVCoords* uvCoords = nullptr;
21 TriCornerUVCoords* triCornerUvCoords = nullptr;
22 VertNormals* normals = nullptr;
23 MeshTexture* texture = nullptr;
24
25 std::filesystem::path dir;
26 ProgressCallback callback;
27 bool telemetrySignal = true;
28};
29
30[[nodiscard]] MRMESH_API Expected<VertCoords> loadPly( std::istream& in, const PlyLoadParams& params );
31
32} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRPly.h:15
new unsafe MR.Std.? Optional_MREdges edges
new unsafe MR.? MeshTexture texture
new unsafe MR.? TriCornerUVCoords triCornerUvCoords
new unsafe MR.Std.? Optional_MRTriangulation tris
new unsafe MR.? FaceColors faceColors
new unsafe MR.? VertCoords2 uvCoords
new unsafe MR.? VertCoords normals
new unsafe MR.? VertColors colors
new unsafe MR.Std.Filesystem.Path dir
new unsafe MR.Std.Function_BoolFuncFromFloat callback
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Expected< Mesh > loadPly(const std::filesystem::path &file, const MeshLoadSettings &settings={})
loads mesh from file in .PLY format;