MeshLib C Docs
Loading...
Searching...
No Matches
MRPly.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_FaceColors MR_FaceColors; // Defined in `#include <MRCMesh/MRVector.h>`.
14typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
15typedef struct MR_TriCornerUVCoords MR_TriCornerUVCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
16typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
17typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
18typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
19typedef struct MR_expected_MR_VertCoords_std_string MR_expected_MR_VertCoords_std_string; // Defined in `#include <MRCMisc/expected_MR_VertCoords_std_string.h>`.
20typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
21typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
22typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
23typedef struct MR_std_optional_MR_Edges MR_std_optional_MR_Edges; // Defined in `#include <MRCMisc/std_optional_MR_Edges.h>`.
24typedef struct MR_std_optional_MR_Triangulation MR_std_optional_MR_Triangulation; // Defined in `#include <MRCMisc/std_optional_MR_Triangulation.h>`.
25
26
31
37
42
48
54
59
65
71
76
82
88
93
99
105
110
116
122
127
133
139
144
150
156
161
167
173
178MRC_API void MR_PlyLoadParams_Set_dir(MR_PlyLoadParams *_this, const char *value, const char *value_end);
179
185
191
196
202
208
213
219
223
228
232MRC_API MR_PlyLoadParams *MR_PlyLoadParams_ConstructFrom(MR_std_optional_MR_Triangulation *tris, MR_std_optional_MR_Edges *edges, MR_VertColors *colors, MR_FaceColors *faceColors, MR_VertCoords2 *uvCoords, MR_TriCornerUVCoords *triCornerUvCoords, MR_VertCoords *normals, MR_MeshTexture *texture, const char *dir, const char *dir_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, bool telemetrySignal);
233
236
239
243
246
249
254
260
261#ifdef __cplusplus
262} // extern "C"
263#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_VertCoords MR_VertCoords
Definition MRAABBTreePoints.h:21
struct MR_FaceColors MR_FaceColors
Definition MRChangeColoringActions.h:13
struct MR_VertColors MR_VertColors
Definition MRCtm.h:22
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:18
struct MR_VertCoords2 MR_VertCoords2
Definition MRCtm.h:23
struct MR_std_istream MR_std_istream
Definition MRCtm.h:28
struct MR_std_optional_MR_Edges MR_std_optional_MR_Edges
Definition MRMeshLoadSettings.h:20
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRPly.h:20
struct MR_expected_MR_VertCoords_std_string MR_expected_MR_VertCoords_std_string
Definition MRPly.h:19
MRC_API MR_std_optional_MR_Triangulation *const * MR_PlyLoadParams_Get_tris(const MR_PlyLoadParams *_this)
MRC_API MR_VertCoords2 ** MR_PlyLoadParams_GetMutable_uvCoords(MR_PlyLoadParams *_this)
MRC_API MR_std_filesystem_path * MR_PlyLoadParams_GetMutable_dir(MR_PlyLoadParams *_this)
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_DefaultConstruct(void)
MRC_API MR_MeshTexture *const * MR_PlyLoadParams_Get_texture(const MR_PlyLoadParams *_this)
MRC_API MR_std_optional_MR_Edges *const * MR_PlyLoadParams_Get_edges(const MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_normals(MR_PlyLoadParams *_this, MR_VertCoords *value)
MRC_API void MR_PlyLoadParams_Set_callback(MR_PlyLoadParams *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_VertCoords ** MR_PlyLoadParams_GetMutable_normals(MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_colors(MR_PlyLoadParams *_this, MR_VertColors *value)
MRC_API MR_VertColors *const * MR_PlyLoadParams_Get_colors(const MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_triCornerUvCoords(MR_PlyLoadParams *_this, MR_TriCornerUVCoords *value)
MRC_API const MR_PlyLoadParams * MR_PlyLoadParams_OffsetPtr(const MR_PlyLoadParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_filesystem_path * MR_PlyLoadParams_Get_dir(const MR_PlyLoadParams *_this)
MRC_API MR_std_function_bool_from_float * MR_PlyLoadParams_GetMutable_callback(MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_dir(MR_PlyLoadParams *_this, const char *value, const char *value_end)
MRC_API void MR_PlyLoadParams_Destroy(const MR_PlyLoadParams *_this)
Destroys a heap-allocated instance of MR_PlyLoadParams. Does nothing if the pointer is null.
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_OffsetMutablePtr(MR_PlyLoadParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_TriCornerUVCoords ** MR_PlyLoadParams_GetMutable_triCornerUvCoords(MR_PlyLoadParams *_this)
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_AssignFromAnother(MR_PlyLoadParams *_this, MR_PassBy _other_pass_by, MR_PlyLoadParams *_other)
MRC_API void MR_PlyLoadParams_Set_texture(MR_PlyLoadParams *_this, MR_MeshTexture *value)
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_ConstructFrom(MR_std_optional_MR_Triangulation *tris, MR_std_optional_MR_Edges *edges, MR_VertColors *colors, MR_FaceColors *faceColors, MR_VertCoords2 *uvCoords, MR_TriCornerUVCoords *triCornerUvCoords, MR_VertCoords *normals, MR_MeshTexture *texture, const char *dir, const char *dir_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, bool telemetrySignal)
MRC_API MR_std_optional_MR_Triangulation ** MR_PlyLoadParams_GetMutable_tris(MR_PlyLoadParams *_this)
MRC_API MR_VertColors ** MR_PlyLoadParams_GetMutable_colors(MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_faceColors(MR_PlyLoadParams *_this, MR_FaceColors *value)
MRC_API MR_expected_MR_VertCoords_std_string * MR_loadPly_std_istream_ref_MR_PlyLoadParams(MR_std_istream *in, const MR_PlyLoadParams *params)
MRC_API const MR_std_function_bool_from_float * MR_PlyLoadParams_Get_callback(const MR_PlyLoadParams *_this)
MRC_API MR_std_optional_MR_Edges ** MR_PlyLoadParams_GetMutable_edges(MR_PlyLoadParams *_this)
MRC_API MR_FaceColors ** MR_PlyLoadParams_GetMutable_faceColors(MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_uvCoords(MR_PlyLoadParams *_this, MR_VertCoords2 *value)
struct MR_PlyLoadParams MR_PlyLoadParams
Definition MRPly.h:30
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_DefaultConstructArray(size_t num_elems)
struct MR_std_optional_MR_Triangulation MR_std_optional_MR_Triangulation
Definition MRPly.h:24
MRC_API void MR_PlyLoadParams_DestroyArray(const MR_PlyLoadParams *_this)
Destroys a heap-allocated array of MR_PlyLoadParams. Does nothing if the pointer is null.
MRC_API const bool * MR_PlyLoadParams_Get_telemetrySignal(const MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_edges(MR_PlyLoadParams *_this, MR_std_optional_MR_Edges *value)
MRC_API MR_TriCornerUVCoords *const * MR_PlyLoadParams_Get_triCornerUvCoords(const MR_PlyLoadParams *_this)
struct MR_TriCornerUVCoords MR_TriCornerUVCoords
Definition MRPly.h:15
MRC_API MR_MeshTexture ** MR_PlyLoadParams_GetMutable_texture(MR_PlyLoadParams *_this)
MRC_API MR_FaceColors *const * MR_PlyLoadParams_Get_faceColors(const MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_tris(MR_PlyLoadParams *_this, MR_std_optional_MR_Triangulation *value)
MRC_API void MR_PlyLoadParams_Set_telemetrySignal(MR_PlyLoadParams *_this, bool value)
MRC_API MR_VertCoords *const * MR_PlyLoadParams_Get_normals(const MR_PlyLoadParams *_this)
MRC_API bool * MR_PlyLoadParams_GetMutable_telemetrySignal(MR_PlyLoadParams *_this)
MRC_API MR_VertCoords2 *const * MR_PlyLoadParams_Get_uvCoords(const MR_PlyLoadParams *_this)
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PlyLoadParams *_other)
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11