MeshLib C Docs
Loading...
Searching...
No Matches
MRBestFitQuadric.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
12
13
19
23
28
31MRC_API const MR_QuadricApprox *MR_QuadricApprox_OffsetPtr(const MR_QuadricApprox *ptr, ptrdiff_t i);
32
36
42
44MRC_API void MR_QuadricApprox_Destroy(const MR_QuadricApprox *_this);
45
48
56
62MRC_API void MR_QuadricApprox_addPoint(MR_QuadricApprox *_this, const MR_Vector3d *point, const double *weight);
63
64#ifdef __cplusplus
65} // extern "C"
66#endif
MRC_API void MR_QuadricApprox_DestroyArray(const MR_QuadricApprox *_this)
Destroys a heap-allocated array of MR_QuadricApprox. Does nothing if the pointer is null.
MRC_API MR_QuadricApprox * MR_QuadricApprox_OffsetMutablePtr(MR_QuadricApprox *ptr, ptrdiff_t i)
struct MR_QuadricApprox MR_QuadricApprox
Definition MRBestFitQuadric.h:18
MRC_API void MR_QuadricApprox_Destroy(const MR_QuadricApprox *_this)
Destroys a heap-allocated instance of MR_QuadricApprox. Does nothing if the pointer is null.
MRC_API MR_QuadricApprox * MR_QuadricApprox_DefaultConstructArray(size_t num_elems)
MRC_API MR_QuadricApprox * MR_QuadricApprox_ConstructFromAnother(const MR_QuadricApprox *_other)
MRC_API void MR_QuadricApprox_addPoint(MR_QuadricApprox *_this, const MR_Vector3d *point, const double *weight)
MRC_API MR_QuadricApprox * MR_QuadricApprox_AssignFromAnother(MR_QuadricApprox *_this, const MR_QuadricApprox *_other)
MRC_API MR_QuadricApprox * MR_QuadricApprox_DefaultConstruct(void)
MRC_API const MR_QuadricApprox * MR_QuadricApprox_OffsetPtr(const MR_QuadricApprox *ptr, ptrdiff_t i)
Generated from class MR::Vector3d.
Definition MRVector3.h:55