MeshLib C Docs
Loading...
Searching...
No Matches
MRBestFitQuadric.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_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
13
14
19
23
28
31
34
38
41
44
49
55MRC_API void MR_QuadricApprox_addPoint(MR_QuadricApprox *_this, const MR_Vector3d *point, const double *weight);
56
57#ifdef __cplusplus
58} // extern "C"
59#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_ConstructFromAnother(MR_PassBy _other_pass_by, MR_QuadricApprox *_other)
MRC_API MR_QuadricApprox * MR_QuadricApprox_OffsetMutablePtr(MR_QuadricApprox *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
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_AssignFromAnother(MR_QuadricApprox *_this, MR_PassBy _other_pass_by, 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_DefaultConstruct(void)
MRC_API const MR_QuadricApprox * MR_QuadricApprox_OffsetPtr(const MR_QuadricApprox *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:60