MeshLib C Docs
Loading...
Searching...
No Matches
MRNormalsToPoints.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_FaceNormals MR_FaceNormals; // Defined in `#include <MRCMesh/MRVector.h>`.
13typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
14typedef struct MR_VertCoords MR_VertCoords; // Defined in `#include <MRCMesh/MRVector.h>`.
15
16
21
22// pImpl
25
29
34
37
40
44
47
50
55
63MRC_API void MR_NormalsToPoints_prepare(MR_NormalsToPoints *_this, const MR_MeshTopology *topology, const float *guideWeight);
64
76
82MRC_API void MR_NormalsToPoints_run_4(MR_NormalsToPoints *_this, const MR_VertCoords *guide, const MR_FaceNormals *normals, MR_VertCoords *points, float maxInitialDistSq);
83
86
89
94
100MRC_API void MR_NormalsToPoints_ISolver_run(MR_NormalsToPoints_ISolver *_this, const MR_VertCoords *guide, const MR_FaceNormals *normals, MR_VertCoords *points, float maxInitialDistSq);
101
104
107
108#ifdef __cplusplus
109} // extern "C"
110#endif
struct MR_MeshTopology MR_MeshTopology
Definition MR2DContoursTriangulation.h:16
struct MR_VertCoords MR_VertCoords
Definition MRAABBTreePoints.h:22
struct MR_FaceNormals MR_FaceNormals
Definition MRMeshNormals.h:12
MRC_API void MR_NormalsToPoints_run_4(MR_NormalsToPoints *_this, const MR_VertCoords *guide, const MR_FaceNormals *normals, MR_VertCoords *points, float maxInitialDistSq)
MRC_API void MR_NormalsToPoints_ISolver_DestroyArray(const MR_NormalsToPoints_ISolver *_this)
Destroys a heap-allocated array of MR_NormalsToPoints_ISolver. Does nothing if the pointer is null.
MRC_API const MR_NormalsToPoints * MR_NormalsToPoints_OffsetPtr(const MR_NormalsToPoints *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_NormalsToPoints * MR_NormalsToPoints_ConstructFromAnother(MR_PassBy _other_pass_by, MR_NormalsToPoints *_other)
struct MR_NormalsToPoints MR_NormalsToPoints
Definition MRNormalsToPoints.h:20
MRC_API const MR_NormalsToPoints_ISolver * MR_NormalsToPoints_ISolver_OffsetPtr(const MR_NormalsToPoints_ISolver *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_NormalsToPoints * MR_NormalsToPoints_DefaultConstruct(void)
MRC_API MR_NormalsToPoints * MR_NormalsToPoints_DefaultConstructArray(size_t num_elems)
MRC_API void MR_NormalsToPoints_run_3(MR_NormalsToPoints *_this, const MR_VertCoords *guide, const MR_FaceNormals *normals, MR_VertCoords *points)
MRC_API MR_NormalsToPoints * MR_NormalsToPoints_OffsetMutablePtr(MR_NormalsToPoints *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_NormalsToPoints * MR_NormalsToPoints_AssignFromAnother(MR_NormalsToPoints *_this, MR_PassBy _other_pass_by, MR_NormalsToPoints *_other)
MRC_API void MR_NormalsToPoints_ISolver_Destroy(const MR_NormalsToPoints_ISolver *_this)
Destroys a heap-allocated instance of MR_NormalsToPoints_ISolver. Does nothing if the pointer is null...
MRC_API void MR_NormalsToPoints_ISolver_prepare(MR_NormalsToPoints_ISolver *_this, const MR_MeshTopology *topology, float guideWeight)
MRC_API void MR_NormalsToPoints_prepare(MR_NormalsToPoints *_this, const MR_MeshTopology *topology, const float *guideWeight)
MRC_API void MR_NormalsToPoints_DestroyArray(const MR_NormalsToPoints *_this)
Destroys a heap-allocated array of MR_NormalsToPoints. Does nothing if the pointer is null.
MRC_API MR_NormalsToPoints_ISolver * MR_NormalsToPoints_ISolver_OffsetMutablePtr(MR_NormalsToPoints_ISolver *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_NormalsToPoints_ISolver MR_NormalsToPoints_ISolver
Generated from class MR::NormalsToPoints::ISolver.
Definition MRNormalsToPoints.h:24
MRC_API void MR_NormalsToPoints_ISolver_run(MR_NormalsToPoints_ISolver *_this, const MR_VertCoords *guide, const MR_FaceNormals *normals, MR_VertCoords *points, float maxInitialDistSq)
MRC_API void MR_NormalsToPoints_Destroy(const MR_NormalsToPoints *_this)
Destroys a heap-allocated instance of MR_NormalsToPoints. Does nothing if the pointer is null.
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11