MeshLib C Docs
Loading...
Searching...
No Matches
MRCalcDims.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Box3f MR_Box3f; // Defined in `#include <MRCMesh/MRBox.h>`.
13
14
18
23
27
32
37
41
46
50
55
59
62
65
70
73
76
82
88
89#ifdef __cplusplus
90} // extern "C"
91#endif
MRC_API void MR_OriginAndDimensions_DestroyArray(const MR_OriginAndDimensions *_this)
Destroys a heap-allocated array of MR_OriginAndDimensions. Does nothing if the pointer is null.
MRC_API void MR_OriginAndDimensions_Set_dimensions(MR_OriginAndDimensions *_this, MR_Vector3i value)
MRC_API void MR_OriginAndDimensions_Set_origin(MR_OriginAndDimensions *_this, MR_Vector3f value)
MRC_API MR_Vector3i * MR_OriginAndDimensions_GetMutable_dimensions(MR_OriginAndDimensions *_this)
MRC_API void MR_OriginAndDimensions_Destroy(const MR_OriginAndDimensions *_this)
Destroys a heap-allocated instance of MR_OriginAndDimensions. Does nothing if the pointer is null.
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_DefaultConstruct(void)
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_ConstructFromAnother(const MR_OriginAndDimensions *_other)
struct MR_OriginAndDimensions MR_OriginAndDimensions
Definition MRCalcDims.h:17
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_AssignFromAnother(MR_OriginAndDimensions *_this, const MR_OriginAndDimensions *_other)
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_OffsetMutablePtr(MR_OriginAndDimensions *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_Vector3f * MR_OriginAndDimensions_Get_origin(const MR_OriginAndDimensions *_this)
MRC_API MR_OriginAndDimensions * MR_calcOriginAndDimensions(const MR_Box3f *box, float voxelSize)
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_DefaultConstructArray(size_t num_elems)
MRC_API const MR_OriginAndDimensions * MR_OriginAndDimensions_OffsetPtr(const MR_OriginAndDimensions *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_Vector3i * MR_OriginAndDimensions_Get_dimensions(const MR_OriginAndDimensions *_this)
MRC_API MR_Vector3f * MR_OriginAndDimensions_GetMutable_origin(MR_OriginAndDimensions *_this)
MRC_API MR_OriginAndDimensions * MR_OriginAndDimensions_ConstructFrom(MR_Vector3f origin, MR_Vector3i dimensions)
#define MRC_API
Definition exports.h:11
Definition MRBox.h:109
Definition MRVector3.h:51
Definition MRVector3.h:33