MeshLib C Docs
Loading...
Searching...
No Matches
MRVoxelsLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.h>
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_expected_MR_FloatGrid_std_string MR_expected_MR_FloatGrid_std_string; // Defined in `#include <MRCMisc/expected_MR_FloatGrid_std_string.h>`.
16typedef struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjects_std_string.h>`.
17typedef struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string; // Defined in `#include <MRCMisc/expected_MR_VdbVolume_std_string.h>`.
18typedef struct MR_expected_MR_VoxelsLoad_RawParameters_std_string MR_expected_MR_VoxelsLoad_RawParameters_std_string; // Defined in `#include <MRCMisc/expected_MR_VoxelsLoad_RawParameters_std_string.h>`.
19typedef struct MR_expected_std_vector_MR_FloatGrid_std_string MR_expected_std_vector_MR_FloatGrid_std_string; // Defined in `#include <MRCMisc/expected_std_vector_MR_FloatGrid_std_string.h>`.
20typedef struct MR_expected_std_vector_MR_VdbVolume_std_string MR_expected_std_vector_MR_VdbVolume_std_string; // Defined in `#include <MRCMisc/expected_std_vector_MR_VdbVolume_std_string.h>`.
21typedef struct MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string; // Defined in `#include <MRCMisc/expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string.h>`.
22typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
23typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
24typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
25
26
30
31// Determines iso-surface orientation
33{
34 // consider values less than iso as outer area
36 // consider values less than iso as inner area
39
43
49
55
61
67
73
79
86
92
99
105
111
117
121
126
134
138
142
148
151
154
162
171
181
190
200
208
215MRC_API MR_expected_MR_VdbVolume_std_string *MR_VoxelsLoad_fromRaw_2(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb);
216
224
232
239
246
254
262
270
278
284
290MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_dir(MR_VoxelsLoad_LoadingTiffSettings *_this, const char *value, const char *value_end);
291
297
303
309
315
321
327
333
339
345
351
355
360
369MRC_API MR_VoxelsLoad_LoadingTiffSettings *MR_VoxelsLoad_LoadingTiffSettings_ConstructFrom(const char *dir, const char *dir_end, MR_Vector3f voxelSize, MR_VoxelsLoad_GridType gridType, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb);
370
374
378
383
386
389
396
402
408MRC_API MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string *MR_makeObjectVoxelsFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback);
409
415MRC_API MR_expected_MR_LoadedObjects_std_string *MR_makeObjectFromVoxelsFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *callback);
416
417#ifdef __cplusplus
418} // extern "C"
419#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_istream MR_std_istream
Definition MRCtm.h:28
struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string
Definition MRE57.h:17
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRPly.h:20
struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string
Definition MRPolylineToVoxels.h:20
struct MR_expected_MR_FloatGrid_std_string MR_expected_MR_FloatGrid_std_string
Definition MRPolylineToVoxels.h:17
MR_ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:15
MRC_API const MR_Vector3f * MR_VoxelsLoad_LoadingTiffSettings_Get_voxelSize(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_cb(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromAnySupportedFormat(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_DefaultConstruct(void)
MRC_API MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string * MR_makeObjectVoxelsFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_std_filesystem_path * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_dir(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Destroy(const MR_VoxelsLoad_LoadingTiffSettings *_this)
Destroys a heap-allocated instance of MR_VoxelsLoad_LoadingTiffSettings. Does nothing if the pointer ...
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_VoxelsLoad_LoadingTiffSettings *_other)
struct MR_expected_std_vector_MR_FloatGrid_std_string MR_expected_std_vector_MR_FloatGrid_std_string
Definition MRVoxelsLoad.h:19
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_AssignFromAnother(MR_VoxelsLoad_RawParameters *_this, const MR_VoxelsLoad_RawParameters *_other)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_gridType(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_VoxelsLoad_GridType value)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_3_std_istream(MR_std_istream *in, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API const MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_OffsetPtr(const MR_VoxelsLoad_RawParameters *ptr, ptrdiff_t i)
MRC_API const MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_OffsetPtr(const MR_VoxelsLoad_LoadingTiffSettings *ptr, ptrdiff_t i)
MRC_API const MR_VoxelsLoad_GridType * MR_VoxelsLoad_LoadingTiffSettings_Get_gridType(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_OffsetMutablePtr(MR_VoxelsLoad_RawParameters *ptr, ptrdiff_t i)
MRC_API MR_expected_MR_VoxelsLoad_RawParameters_std_string * MR_VoxelsLoad_findRawParameters(MR_std_filesystem_path *file)
MRC_API const MR_Vector3f * MR_VoxelsLoad_RawParameters_Get_voxelSize(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_MR_LoadedObjects_std_string * MR_makeObjectFromVoxelsFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *callback)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromGav_std_filesystem_path(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API const bool * MR_VoxelsLoad_RawParameters_Get_gridLevelSet(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_Vector3f * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_voxelSize(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_expected_std_vector_MR_VdbVolume_std_string * MR_VoxelsLoad_fromVdb(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
struct MR_expected_MR_VoxelsLoad_RawParameters_std_string MR_expected_MR_VoxelsLoad_RawParameters_std_string
Definition MRVoxelsLoad.h:18
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_ConstructFromAnother(const MR_VoxelsLoad_RawParameters *_other)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_DefaultConstructArray(size_t num_elems)
MRC_API const MR_Vector3i * MR_VoxelsLoad_RawParameters_Get_dimensions(const MR_VoxelsLoad_RawParameters *_this)
MRC_API const MR_std_function_bool_from_float * MR_VoxelsLoad_LoadingTiffSettings_Get_cb(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_2(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_VoxelsLoad_GridType * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_gridType(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_DestroyArray(const MR_VoxelsLoad_LoadingTiffSettings *_this)
Destroys a heap-allocated array of MR_VoxelsLoad_LoadingTiffSettings. Does nothing if the pointer is ...
MRC_API void MR_VoxelsLoad_RawParameters_Set_dimensions(MR_VoxelsLoad_RawParameters *_this, MR_Vector3i value)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_ConstructFrom(MR_Vector3i dimensions, MR_Vector3f voxelSize, bool gridLevelSet, MR_ScalarType scalarType)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_DefaultConstructArray(size_t num_elems)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromVdb_std_istream(MR_std_istream *in, const MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_loadTiffDir(const MR_VoxelsLoad_LoadingTiffSettings *settings)
MRC_API MR_Vector3f * MR_VoxelsLoad_RawParameters_GetMutable_voxelSize(MR_VoxelsLoad_RawParameters *_this)
MRC_API const MR_ScalarType * MR_VoxelsLoad_RawParameters_Get_scalarType(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_AssignFromAnother(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_PassBy _other_pass_by, MR_VoxelsLoad_LoadingTiffSettings *_other)
MRC_API const MR_std_filesystem_path * MR_VoxelsLoad_LoadingTiffSettings_Get_dir(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_ConstructFrom(const char *dir, const char *dir_end, MR_Vector3f voxelSize, MR_VoxelsLoad_GridType gridType, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_3_std_filesystem_path(const char *file, const char *file_end, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_3_std_filesystem_path(const char *file, const char *file_end, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API bool * MR_VoxelsLoad_RawParameters_GetMutable_gridLevelSet(MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_std_vector_MR_VdbVolume_std_string * MR_VoxelsLoad_fromAnySupportedFormat(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_RawParameters_Set_gridLevelSet(MR_VoxelsLoad_RawParameters *_this, bool value)
struct MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string
Definition MRVoxelsLoad.h:21
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_dir(MR_VoxelsLoad_LoadingTiffSettings *_this, const char *value, const char *value_end)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_DefaultConstruct(void)
MR_VoxelsLoad_GridType
Definition MRVoxelsLoad.h:33
@ MR_VoxelsLoad_GridType_LevelSet
Definition MRVoxelsLoad.h:37
@ MR_VoxelsLoad_GridType_DenseGrid
Definition MRVoxelsLoad.h:35
MRC_API MR_std_function_bool_from_float * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_cb(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_RawParameters_DestroyArray(const MR_VoxelsLoad_RawParameters *_this)
Destroys a heap-allocated array of MR_VoxelsLoad_RawParameters. Does nothing if the pointer is null.
struct MR_expected_std_vector_MR_VdbVolume_std_string MR_expected_std_vector_MR_VdbVolume_std_string
Definition MRVoxelsLoad.h:20
MRC_API void MR_VoxelsLoad_RawParameters_Set_voxelSize(MR_VoxelsLoad_RawParameters *_this, MR_Vector3f value)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_2(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_RawParameters_Destroy(const MR_VoxelsLoad_RawParameters *_this)
Destroys a heap-allocated instance of MR_VoxelsLoad_RawParameters. Does nothing if the pointer is nul...
struct MR_VoxelsLoad_LoadingTiffSettings MR_VoxelsLoad_LoadingTiffSettings
Definition MRVoxelsLoad.h:42
MRC_API void MR_VoxelsLoad_RawParameters_Set_scalarType(MR_VoxelsLoad_RawParameters *_this, MR_ScalarType value)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromGav_std_istream(MR_std_istream *in, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_voxelSize(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_Vector3f value)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_3_std_istream(MR_std_istream *in, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
struct MR_VoxelsLoad_RawParameters MR_VoxelsLoad_RawParameters
Definition MRVoxelsLoad.h:29
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_OffsetMutablePtr(MR_VoxelsLoad_LoadingTiffSettings *ptr, ptrdiff_t i)
MRC_API MR_ScalarType * MR_VoxelsLoad_RawParameters_GetMutable_scalarType(MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromVdb_std_filesystem_path(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_Vector3i * MR_VoxelsLoad_RawParameters_GetMutable_dimensions(MR_VoxelsLoad_RawParameters *_this)
Generated from class MR::Vector3f.
Definition MRVector3.h:47
Generated from class MR::Vector3i.
Definition MRVector3.h:63