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 <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
13typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
14typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
15typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
16typedef struct MR_expected_MR_VertCoords_std_string MR_expected_MR_VertCoords_std_string; // Defined in `#include <MRCMisc/expected_MR_VertCoords_std_string.h>`.
17typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
18typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
19typedef struct MR_std_optional_MR_Edges MR_std_optional_MR_Edges; // Defined in `#include <MRCMisc/std_optional_MR_Edges.h>`.
20typedef struct MR_std_optional_MR_Triangulation MR_std_optional_MR_Triangulation; // Defined in `#include <MRCMisc/std_optional_MR_Triangulation.h>`.
21
22
26
32
37
43
49
54
60
66
71
77
83
88
94
100
105
111
117
122
128
134
139
145
149
154
158
161
164
168
171
174
179
185
186#ifdef __cplusplus
187} // extern "C"
188#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:22
struct MR_VertCoords2 MR_VertCoords2
Definition MRChangeMeshAction.h:18
struct MR_std_istream MR_std_istream
Definition MRCtm.h:21
struct MR_VertColors MR_VertColors
Definition MRE57.h:16
struct MR_MeshTexture MR_MeshTexture
Definition MRImage.h:15
struct MR_std_optional_MR_Edges MR_std_optional_MR_Edges
Definition MRMeshLoadSettings.h:19
struct MR_expected_MR_VertCoords_std_string MR_expected_MR_VertCoords_std_string
Definition MRPly.h:16
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_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 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 MR_std_function_bool_from_float * MR_PlyLoadParams_GetMutable_callback(MR_PlyLoadParams *_this)
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_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_std_optional_MR_Triangulation ** MR_PlyLoadParams_GetMutable_tris(MR_PlyLoadParams *_this)
MRC_API MR_VertColors ** MR_PlyLoadParams_GetMutable_colors(MR_PlyLoadParams *_this)
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 void MR_PlyLoadParams_Set_uvCoords(MR_PlyLoadParams *_this, MR_VertCoords2 *value)
struct MR_PlyLoadParams MR_PlyLoadParams
Definition MRPly.h:25
MRC_API MR_PlyLoadParams * MR_PlyLoadParams_ConstructFrom(MR_std_optional_MR_Triangulation *tris, MR_std_optional_MR_Edges *edges, MR_VertColors *colors, MR_VertCoords2 *uvCoords, MR_VertCoords *normals, MR_MeshTexture *texture, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
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:20
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 void MR_PlyLoadParams_Set_edges(MR_PlyLoadParams *_this, MR_std_optional_MR_Edges *value)
MRC_API MR_MeshTexture ** MR_PlyLoadParams_GetMutable_texture(MR_PlyLoadParams *_this)
MRC_API void MR_PlyLoadParams_Set_tris(MR_PlyLoadParams *_this, MR_std_optional_MR_Triangulation *value)
MRC_API MR_VertCoords *const * MR_PlyLoadParams_Get_normals(const 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:19
#define MRC_API
Definition exports.h:11