MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshTriPoint.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRId.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_EdgePoint MR_EdgePoint; // Defined in `#include <MRCMesh/MREdgePoint.h>`.
14typedef struct MR_EdgePointd MR_EdgePointd; // Defined in `#include <MRCMesh/MREdgePoint.h>`.
15typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
16typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
17typedef struct MR_NoInit MR_NoInit; // Defined in `#include <MRCMesh/MRMeshFwd.h>`.
18typedef struct MR_TriPointd MR_TriPointd; // Defined in `#include <MRCMesh/MRTriPoint.h>`.
19typedef struct MR_TriPointf MR_TriPointf; // Defined in `#include <MRCMesh/MRTriPoint.h>`.
20typedef struct MR_VertScalars MR_VertScalars; // Defined in `#include <MRCMesh/MRVector.h>`.
21typedef struct MR_std_array_MR_WeightedVertex_3 MR_std_array_MR_WeightedVertex_3; // Defined in `#include <MRCMisc/std_array_MR_WeightedVertex_3.h>`.
22typedef struct MR_std_array_MR_WeightedVertexd_3 MR_std_array_MR_WeightedVertexd_3; // Defined in `#include <MRCMisc/std_array_MR_WeightedVertexd_3.h>`.
23
24
32typedef struct MR_MeshTriPoint MR_MeshTriPoint;
33
42
46
50
57
64
71
81
92
102
106
111
115
119
125
131
138
144
151
154
157
161
169
175
180
188
194MRC_API bool MR_MeshTriPoint_isBd(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region);
195
201
206
213
220
227
233MRC_API float MR_MeshTriPoint_interpolate(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology, const MR_VertScalars *field);
234
240
246
253
260
267
277
288
298
302
307
311
315
321
327
334
340
347
350
353
357
365
371
376
384
390MRC_API bool MR_MeshTriPointd_isBd(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region);
391
397
402
409
416
423
429MRC_API double MR_MeshTriPointd_interpolate(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology, const MR_VertScalars *field);
430
436
442
448
454
460
466
471
477
481
486
492
496
500
506
509
512
520
526
532
538
544
549
555
559
564
570
574
578
584
587
590
598
605
612
620
628
640
652
658
659#ifdef __cplusplus
660} // extern "C"
661#endif
struct MR_NoInit MR_NoInit
Definition MRAABBTreeNode.h:14
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_VertScalars MR_VertScalars
Definition MRAggregateFlow.h:17
struct MR_MeshTriPoint MR_MeshTriPoint
Definition MRAggregateFlow.h:13
struct MR_MeshTopology MR_MeshTopology
Definition MRCameraPointsTriangulation.h:14
struct MR_EdgePoint MR_EdgePoint
Definition MREdgePoint.h:23
struct MR_EdgePointd MR_EdgePointd
Definition MREdgePoint.h:28
MRC_API const MR_MeshTriPointd * MR_MeshTriPointd_OffsetPtr(const MR_MeshTriPointd *ptr, ptrdiff_t i)
MRC_API bool MR_same_float_MR_MeshTriPoint(const MR_MeshTopology *topology, const MR_MeshTriPoint *lhs, const MR_MeshTriPoint *rhs)
MRC_API bool MR_MeshTriPointd_inVertex_0(const MR_MeshTriPointd *_this)
MRC_API float * MR_WeightedVertex_GetMutable_weight(MR_WeightedVertex *_this)
MRC_API bool MR_MeshTriPoint_ConvertTo_bool(const MR_MeshTriPoint *_this)
MRC_API bool MR_not_equal_MR_MeshTriPointd(const MR_MeshTriPointd *_this, const MR_MeshTriPointd *rhs)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_Construct_2_MR_MeshTopology(const MR_MeshTopology *topology, MR_VertId v)
MRC_API bool MR_fromSameTriangle_double_MR_MeshTriPointd_ref(const MR_MeshTopology *topology, MR_MeshTriPointd *a, MR_MeshTriPointd *b)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_Construct_2_MR_EdgeId(MR_EdgeId e, const MR_TriPointd *bary)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_DefaultConstruct(void)
MRC_API void MR_MeshTriPoint_Destroy(const MR_MeshTriPoint *_this)
Destroys a heap-allocated instance of MR_MeshTriPoint. Does nothing if the pointer is null.
MRC_API MR_WeightedVertex * MR_WeightedVertex_OffsetMutablePtr(MR_WeightedVertex *ptr, ptrdiff_t i)
struct MR_TriPointd MR_TriPointd
encodes a point inside a triangle using barycentric coordinates
Definition MRMeshTriPoint.h:18
struct MR_std_array_MR_WeightedVertexd_3 MR_std_array_MR_WeightedVertexd_3
Definition MRMeshTriPoint.h:22
MRC_API const MR_VertId * MR_WeightedVertex_Get_v(const MR_WeightedVertex *_this)
MRC_API bool MR_MeshTriPointd_ConvertTo_bool(const MR_MeshTriPointd *_this)
MRC_API bool MR_MeshTriPointd_valid(const MR_MeshTriPointd *_this)
MRC_API bool MR_same_double_MR_MeshTriPointd(const MR_MeshTopology *topology, const MR_MeshTriPointd *lhs, const MR_MeshTriPointd *rhs)
MRC_API MR_TriPointd * MR_MeshTriPointd_GetMutable_bary(MR_MeshTriPointd *_this)
MRC_API void MR_WeightedVertex_Set_v(MR_WeightedVertex *_this, MR_VertId value)
MRC_API void MR_MeshTriPointd_Set_bary(MR_MeshTriPointd *_this, const MR_TriPointd *value)
MRC_API const MR_EdgeId * MR_MeshTriPoint_Get_e(const MR_MeshTriPoint *_this)
MRC_API bool MR_MeshTriPoint_fromTriangle(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology, MR_FaceId f)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_ConstructFromAnother(const MR_MeshTriPointd *_other)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_AssignFromAnother(MR_MeshTriPointd *_this, const MR_MeshTriPointd *_other)
MRC_API void MR_WeightedVertex_DestroyArray(const MR_WeightedVertex *_this)
Destroys a heap-allocated array of MR_WeightedVertex. Does nothing if the pointer is null.
MRC_API bool MR_MeshTriPoint_valid(const MR_MeshTriPoint *_this)
MRC_API double MR_MeshTriPointd_interpolate(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology, const MR_VertScalars *field)
MRC_API void MR_MeshTriPoint_Set_e(MR_MeshTriPoint *_this, MR_EdgeId value)
MRC_API MR_EdgePoint * MR_MeshTriPoint_onEdge(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_AssignFromAnother(MR_WeightedVertexd *_this, const MR_WeightedVertexd *_other)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_OffsetMutablePtr(MR_MeshTriPoint *ptr, ptrdiff_t i)
MRC_API bool MR_equal_MR_MeshTriPointd(const MR_MeshTriPointd *_this, const MR_MeshTriPointd *rhs)
MRC_API const MR_MeshTriPoint * MR_MeshTriPoint_OffsetPtr(const MR_MeshTriPoint *ptr, ptrdiff_t i)
MRC_API bool MR_fromSameTriangle_float_MR_MeshTriPoint_ref(const MR_MeshTopology *topology, MR_MeshTriPoint *a, MR_MeshTriPoint *b)
MRC_API const MR_WeightedVertexd * MR_WeightedVertexd_OffsetPtr(const MR_WeightedVertexd *ptr, ptrdiff_t i)
MRC_API MR_WeightedVertex * MR_WeightedVertex_ConstructFrom(MR_VertId v, float weight)
MRC_API MR_VertId MR_MeshTriPoint_inVertex_1(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_DefaultConstruct(void)
MRC_API const MR_VertId * MR_WeightedVertexd_Get_v(const MR_WeightedVertexd *_this)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_AssignFromAnother(MR_MeshTriPoint *_this, const MR_MeshTriPoint *_other)
MRC_API MR_WeightedVertex * MR_WeightedVertex_DefaultConstruct(void)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_canonical(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology)
MRC_API const float * MR_WeightedVertex_Get_weight(const MR_WeightedVertex *_this)
MRC_API MR_VertId MR_MeshTriPointd_inVertex_1(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_OffsetMutablePtr(MR_WeightedVertexd *ptr, ptrdiff_t i)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_DefaultConstructArray(size_t num_elems)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_Construct_2_MR_MeshTopology(const MR_MeshTopology *topology, MR_VertId v)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_ConstructFromAnother(const MR_MeshTriPoint *_other)
MRC_API MR_EdgePointd * MR_MeshTriPointd_onEdge(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_canonical(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_DefaultConstructArray(size_t num_elems)
MRC_API void MR_WeightedVertexd_DestroyArray(const MR_WeightedVertexd *_this)
Destroys a heap-allocated array of MR_WeightedVertexd. Does nothing if the pointer is null.
MRC_API MR_std_array_MR_WeightedVertex_3 * MR_MeshTriPoint_getWeightedVerts(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology)
MRC_API const double * MR_WeightedVertexd_Get_weight(const MR_WeightedVertexd *_this)
MRC_API const MR_WeightedVertex * MR_WeightedVertex_OffsetPtr(const MR_WeightedVertex *ptr, ptrdiff_t i)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_Construct_1_MR_EdgePoint(const MR_EdgePoint *ep)
struct MR_WeightedVertex MR_WeightedVertex
Definition MRMeshTriPoint.h:45
struct MR_WeightedVertexd MR_WeightedVertexd
Definition MRMeshTriPoint.h:49
MRC_API MR_VertId * MR_WeightedVertex_GetMutable_v(MR_WeightedVertex *_this)
MRC_API bool MR_not_equal_MR_MeshTriPoint(const MR_MeshTriPoint *_this, const MR_MeshTriPoint *rhs)
MRC_API bool MR_fromSameTriangle_double_MR_MeshTriPointd_rvalue_ref(const MR_MeshTopology *topology, MR_MeshTriPointd *a, MR_MeshTriPointd *b)
MRC_API void MR_WeightedVertex_Set_weight(MR_WeightedVertex *_this, float value)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_DefaultConstruct(void)
MRC_API void MR_WeightedVertex_Destroy(const MR_WeightedVertex *_this)
Destroys a heap-allocated instance of MR_WeightedVertex. Does nothing if the pointer is null.
struct MR_TriPointf MR_TriPointf
encodes a point inside a triangle using barycentric coordinates
Definition MRMeshTriPoint.h:19
MRC_API MR_EdgeId * MR_MeshTriPointd_GetMutable_e(MR_MeshTriPointd *_this)
MRC_API bool MR_MeshTriPoint_inVertex_0(const MR_MeshTriPoint *_this)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_Construct_1_MR_NoInit(const MR_NoInit *_1)
MRC_API MR_WeightedVertex * MR_WeightedVertex_DefaultConstructArray(size_t num_elems)
MRC_API MR_EdgeId * MR_MeshTriPoint_GetMutable_e(MR_MeshTriPoint *_this)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_lnext(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology)
MRC_API float MR_MeshTriPoint_interpolate(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology, const MR_VertScalars *field)
MRC_API const MR_EdgeId * MR_MeshTriPointd_Get_e(const MR_MeshTriPointd *_this)
MRC_API MR_MeshTriPoint * MR_getVertexAsMeshTriPoint(const MR_MeshTopology *topology, MR_EdgeId e, MR_VertId v)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_Construct_1_MR_EdgePointd(const MR_EdgePointd *ep)
MRC_API MR_std_array_MR_WeightedVertexd_3 * MR_MeshTriPointd_getWeightedVerts(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_DefaultConstructArray(size_t num_elems)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_ConstructFromAnother(const MR_WeightedVertexd *_other)
MRC_API void MR_MeshTriPointd_Set_e(MR_MeshTriPointd *_this, MR_EdgeId value)
MRC_API MR_TriPointf * MR_MeshTriPoint_GetMutable_bary(MR_MeshTriPoint *_this)
struct MR_std_array_MR_WeightedVertex_3 MR_std_array_MR_WeightedVertex_3
Definition MRMeshTriPoint.h:21
MRC_API void MR_WeightedVertexd_Set_v(MR_WeightedVertexd *_this, MR_VertId value)
MRC_API bool MR_MeshTriPointd_isBd(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region)
struct MR_MeshTriPointd MR_MeshTriPointd
Definition MRMeshTriPoint.h:41
MRC_API void MR_MeshTriPointd_Destroy(const MR_MeshTriPointd *_this)
Destroys a heap-allocated instance of MR_MeshTriPointd. Does nothing if the pointer is null.
MRC_API void MR_MeshTriPoint_Set_bary(MR_MeshTriPoint *_this, const MR_TriPointf *value)
MRC_API bool MR_fromSameTriangle_float_MR_MeshTriPoint_rvalue_ref(const MR_MeshTopology *topology, MR_MeshTriPoint *a, MR_MeshTriPoint *b)
MRC_API MR_MeshTriPoint * MR_MeshTriPoint_Construct_2_MR_EdgeId(MR_EdgeId e, const MR_TriPointf *bary)
MRC_API MR_WeightedVertex * MR_WeightedVertex_AssignFromAnother(MR_WeightedVertex *_this, const MR_WeightedVertex *_other)
MRC_API bool MR_equal_MR_MeshTriPoint(const MR_MeshTriPoint *_this, const MR_MeshTriPoint *rhs)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_Construct_1_MR_NoInit(const MR_NoInit *_1)
MRC_API void MR_WeightedVertexd_Set_weight(MR_WeightedVertexd *_this, double value)
MRC_API bool MR_MeshTriPoint_isBd(const MR_MeshTriPoint *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region)
MRC_API MR_WeightedVertexd * MR_WeightedVertexd_ConstructFrom(MR_VertId v, double weight)
MRC_API void MR_WeightedVertexd_Destroy(const MR_WeightedVertexd *_this)
Destroys a heap-allocated instance of MR_WeightedVertexd. Does nothing if the pointer is null.
MRC_API void MR_MeshTriPointd_DestroyArray(const MR_MeshTriPointd *_this)
Destroys a heap-allocated array of MR_MeshTriPointd. Does nothing if the pointer is null.
MRC_API MR_WeightedVertex * MR_WeightedVertex_ConstructFromAnother(const MR_WeightedVertex *_other)
MRC_API const MR_TriPointd * MR_MeshTriPointd_Get_bary(const MR_MeshTriPointd *_this)
MRC_API double * MR_WeightedVertexd_GetMutable_weight(MR_WeightedVertexd *_this)
MRC_API MR_VertId * MR_WeightedVertexd_GetMutable_v(MR_WeightedVertexd *_this)
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_lnext(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology)
MRC_API void MR_MeshTriPoint_DestroyArray(const MR_MeshTriPoint *_this)
Destroys a heap-allocated array of MR_MeshTriPoint. Does nothing if the pointer is null.
MRC_API MR_MeshTriPointd * MR_MeshTriPointd_OffsetMutablePtr(MR_MeshTriPointd *ptr, ptrdiff_t i)
MRC_API bool MR_MeshTriPointd_fromTriangle(const MR_MeshTriPointd *_this, const MR_MeshTopology *topology, MR_FaceId f)
MRC_API const MR_TriPointf * MR_MeshTriPoint_Get_bary(const MR_MeshTriPoint *_this)
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRId.h:154
Definition MRId.h:31
Definition MRId.h:41