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 <optional>
8
9namespace MR
10{
11
14{
15 std::optional<Triangulation>* tris = nullptr;
16 std::optional<Edges>* edges = nullptr;
17 VertColors* colors = nullptr;
18 VertUVCoords* uvCoords = nullptr;
19 VertNormals* normals = nullptr;
20 MeshTexture* texture = nullptr;
22};
23
24[[nodiscard]] MRMESH_API Expected<VertCoords> loadPly( std::istream& in, const PlyLoadParams& params );
25
26} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:728
Definition MRCameraOrientationPlugin.h:8
MRMESH_API Expected< Mesh > loadPly(const std::filesystem::path &file, const MeshLoadSettings &settings={})
loads mesh from file in .PLY format;
tl::expected< T, E > Expected
Definition MRExpected.h:25
Definition MRMeshTexture.h:13
optional load artifacts and other setting for PLY file loading
Definition MRPly.h:14
MeshTexture * texture
optional load artifact: texture image
Definition MRPly.h:20
VertNormals * normals
optional load artifact: per-vertex normals
Definition MRPly.h:19
VertColors * colors
optional load artifact: per-vertex color map
Definition MRPly.h:17
std::optional< Triangulation > * tris
optional load artifact: mesh triangles
Definition MRPly.h:15
VertUVCoords * uvCoords
optional load artifact: per-vertex uv-coordinates
Definition MRPly.h:18
std::optional< Edges > * edges
optional load artifact: polyline edges
Definition MRPly.h:16
ProgressCallback callback
callback for set progress and stop process
Definition MRPly.h:21