MeshLib C Docs
Loading...
Searching...
No Matches
MREdgePoint.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_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
14typedef struct MR_MeshTopology MR_MeshTopology; // Defined in `#include <MRCMesh/MRMeshTopology.h>`.
15typedef struct MR_PolylineTopology MR_PolylineTopology; // Defined in `#include <MRCMesh/MRPolylineTopology.h>`.
16typedef struct MR_SegmPointd MR_SegmPointd; // Defined in `#include <MRCMesh/MRSegmPoint.h>`.
17typedef struct MR_SegmPointf MR_SegmPointf; // Defined in `#include <MRCMesh/MRSegmPoint.h>`.
18
19
24
29
34
39
44
50
56
62
69
77
84
88
93
97
101
107
112
119
126
129
132
136
144
150
156
162
168
173
178
184MRC_API bool MR_EdgePoint_isBd(const MR_EdgePoint *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region);
185
190
196
202
208
214
220
226
233
241
248
252
257
261
265
271
276
283
290
293
296
300
308
314
320
326
332
337
342
348MRC_API bool MR_EdgePointd_isBd(const MR_EdgePointd *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region);
349
354
360
366
372
379
386
393
400
408
415
422
430
437
441
446
450
454
460
466MRC_API MR_EdgeSegment *MR_EdgeSegment_Construct(MR_EdgeId e, const float *a, const float *b);
467
470
473
481
487
493
498
503
508
514
521
528
535
542
550
557
564
572
579
583
588
592
596
602
608MRC_API MR_EdgeSegmentd *MR_EdgeSegmentd_Construct(MR_EdgeId e, const double *a, const double *b);
609
612
615
623
629
635
640
645
650
656
662MRC_API bool MR_same_float_MR_EdgePoint(const MR_MeshTopology *topology, const MR_EdgePoint *lhs, const MR_EdgePoint *rhs);
663
670
676
683
689
695
702
708
712
717
721
725
731
739
742
745
753
759
765
773MRC_API bool MR_fromSameTriangle_float_MR_EdgePoint_ref(const MR_MeshTopology *topology, MR_EdgePoint *a, MR_EdgePoint *b);
774
782MRC_API bool MR_fromSameTriangle_double_MR_EdgePointd_ref(const MR_MeshTopology *topology, MR_EdgePointd *a, MR_EdgePointd *b);
783
795MRC_API bool MR_fromSameTriangle_float_MR_EdgePoint_rvalue_ref(const MR_MeshTopology *topology, MR_EdgePoint *a, MR_EdgePoint *b);
796
808MRC_API bool MR_fromSameTriangle_double_MR_EdgePointd_rvalue_ref(const MR_MeshTopology *topology, MR_EdgePointd *a, MR_EdgePointd *b);
809
810#ifdef __cplusplus
811} // extern "C"
812#endif
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_MeshTopology MR_MeshTopology
Definition MRCameraPointsTriangulation.h:14
MRC_API MR_EdgePoint * MR_EdgeSegment_edgePointB(const MR_EdgeSegment *_this)
struct MR_PolylineTopology MR_PolylineTopology
Definition MREdgePoint.h:15
MRC_API const MR_SegmPointd * MR_EdgeSegmentd_Get_b(const MR_EdgeSegmentd *_this)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_AssignFromAnother(MR_EdgeSegmentd *_this, const MR_EdgeSegmentd *_other)
MRC_API void MR_EdgeSegment_Set_b(MR_EdgeSegment *_this, const MR_SegmPointf *value)
MRC_API MR_EdgePointPair * MR_EdgePointPair_Construct(const MR_EdgePoint *ia, const MR_EdgePoint *ib)
MRC_API void MR_EdgePointd_DestroyArray(const MR_EdgePointd *_this)
Destroys a heap-allocated array of MR_EdgePointd. Does nothing if the pointer is null.
struct MR_EdgeSegment MR_EdgeSegment
Definition MREdgePoint.h:33
MRC_API void MR_EdgePointd_Set_a(MR_EdgePointd *_this, const MR_SegmPointd *value)
MRC_API bool MR_not_equal_MR_EdgePoint(const MR_EdgePoint *_this, const MR_EdgePoint *rhs)
MRC_API MR_EdgePoint * MR_EdgePoint_DefaultConstruct(void)
MRC_API bool MR_not_equal_MR_EdgePointPair(const MR_EdgePointPair *_this, const MR_EdgePointPair *rhs)
MRC_API MR_EdgePointd * MR_EdgePointd_ConstructFromAnother(const MR_EdgePointd *_other)
MRC_API const MR_EdgePoint * MR_EdgePointPair_Get_b(const MR_EdgePointPair *_this)
MRC_API MR_EdgeId * MR_EdgePoint_GetMutable_e(MR_EdgePoint *_this)
MRC_API MR_EdgePointPair * MR_EdgePointPair_DefaultConstructArray(size_t num_elems)
MRC_API const MR_SegmPointf * MR_EdgeSegment_Get_a(const MR_EdgeSegment *_this)
MRC_API MR_VertId MR_EdgePoint_inVertex_1_MR_PolylineTopology(const MR_EdgePoint *_this, const MR_PolylineTopology *topology)
MRC_API MR_EdgePoint * MR_EdgePoint_sym(const MR_EdgePoint *_this)
MRC_API MR_EdgePoint * MR_EdgeSegment_edgePointA(const MR_EdgeSegment *_this)
MRC_API const MR_SegmPointf * MR_EdgeSegment_Get_b(const MR_EdgeSegment *_this)
MRC_API void MR_EdgeSegmentd_Destroy(const MR_EdgeSegmentd *_this)
Destroys a heap-allocated instance of MR_EdgeSegmentd. Does nothing if the pointer is null.
MRC_API void MR_EdgeSegmentd_DestroyArray(const MR_EdgeSegmentd *_this)
Destroys a heap-allocated array of MR_EdgeSegmentd. Does nothing if the pointer is null.
MRC_API MR_EdgePoint * MR_EdgePoint_DefaultConstructArray(size_t num_elems)
MRC_API const MR_EdgePointPair * MR_EdgePointPair_OffsetPtr(const MR_EdgePointPair *ptr, ptrdiff_t i)
MRC_API const MR_EdgePoint * MR_EdgePoint_OffsetPtr(const MR_EdgePoint *ptr, ptrdiff_t i)
MRC_API MR_EdgePoint * MR_EdgePoint_ConstructFromAnother(const MR_EdgePoint *_other)
MRC_API MR_EdgePointd * MR_EdgePointd_OffsetMutablePtr(MR_EdgePointd *ptr, ptrdiff_t i)
MRC_API void MR_EdgeSegmentd_Set_a(MR_EdgeSegmentd *_this, const MR_SegmPointd *value)
MRC_API MR_SegmPointd * MR_EdgeSegmentd_GetMutable_a(MR_EdgeSegmentd *_this)
MRC_API MR_SegmPointf * MR_EdgeSegment_GetMutable_b(MR_EdgeSegment *_this)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_DefaultConstructArray(size_t num_elems)
MRC_API MR_VertId MR_EdgePoint_inVertex_1_MR_MeshTopology(const MR_EdgePoint *_this, const MR_MeshTopology *topology)
MRC_API MR_EdgePointPair * MR_EdgePointPair_ConstructFromAnother(const MR_EdgePointPair *_other)
MRC_API void MR_EdgePointd_Set_e(MR_EdgePointd *_this, MR_EdgeId value)
MRC_API MR_EdgeSegment * MR_EdgeSegment_OffsetMutablePtr(MR_EdgeSegment *ptr, ptrdiff_t i)
MRC_API MR_EdgePoint * MR_EdgePointPair_GetMutable_b(MR_EdgePointPair *_this)
MRC_API const MR_EdgeId * MR_EdgeSegmentd_Get_e(const MR_EdgeSegmentd *_this)
MRC_API MR_EdgePointd * MR_EdgePointd_Construct_MR_EdgeId(MR_EdgeId e, double a)
MRC_API MR_EdgePointd * MR_EdgePointd_DefaultConstruct(void)
MRC_API void MR_EdgePointd_Destroy(const MR_EdgePointd *_this)
Destroys a heap-allocated instance of MR_EdgePointd. Does nothing if the pointer is null.
struct MR_EdgePoint MR_EdgePoint
Definition MREdgePoint.h:23
MRC_API const MR_EdgePoint * MR_EdgePointPair_Get_a(const MR_EdgePointPair *_this)
MRC_API bool MR_EdgeSegment_valid(const MR_EdgeSegment *_this)
MRC_API bool MR_same_double_MR_EdgePointd(const MR_MeshTopology *topology, const MR_EdgePointd *lhs, const MR_EdgePointd *rhs)
MRC_API MR_VertId MR_EdgePoint_getClosestVertex_MR_PolylineTopology(const MR_EdgePoint *_this, const MR_PolylineTopology *topology)
MRC_API bool MR_equal_MR_EdgeSegment(const MR_EdgeSegment *_this, const MR_EdgeSegment *rhs)
MRC_API void MR_EdgePointPair_Set_b(MR_EdgePointPair *_this, const MR_EdgePoint *value)
MRC_API void MR_EdgeSegmentd_Set_e(MR_EdgeSegmentd *_this, MR_EdgeId value)
MRC_API bool MR_equal_MR_EdgeSegmentd(const MR_EdgeSegmentd *_this, const MR_EdgeSegmentd *rhs)
MRC_API bool MR_not_equal_MR_EdgeSegmentd(const MR_EdgeSegmentd *_this, const MR_EdgeSegmentd *rhs)
MRC_API MR_EdgePointd * MR_EdgePointd_AssignFromAnother(MR_EdgePointd *_this, const MR_EdgePointd *_other)
MRC_API const MR_EdgeSegment * MR_EdgeSegment_OffsetPtr(const MR_EdgeSegment *ptr, ptrdiff_t i)
MRC_API void MR_EdgePoint_DestroyArray(const MR_EdgePoint *_this)
Destroys a heap-allocated array of MR_EdgePoint. Does nothing if the pointer is null.
MRC_API MR_VertId MR_EdgePointd_inVertex_1_MR_PolylineTopology(const MR_EdgePointd *_this, const MR_PolylineTopology *topology)
MRC_API bool MR_equal_MR_EdgePoint(const MR_EdgePoint *_this, const MR_EdgePoint *rhs)
MRC_API bool MR_EdgePointd_ConvertTo_bool(const MR_EdgePointd *_this)
MRC_API MR_EdgeId * MR_EdgeSegmentd_GetMutable_e(MR_EdgeSegmentd *_this)
MRC_API MR_EdgeSegment * MR_EdgeSegment_Construct(MR_EdgeId e, const float *a, const float *b)
MRC_API MR_EdgePoint * MR_EdgePoint_OffsetMutablePtr(MR_EdgePoint *ptr, ptrdiff_t i)
MRC_API MR_VertId MR_EdgePointd_getClosestVertex_MR_PolylineTopology(const MR_EdgePointd *_this, const MR_PolylineTopology *topology)
MRC_API MR_EdgePointd * MR_EdgePointd_DefaultConstructArray(size_t num_elems)
MRC_API bool MR_not_equal_MR_EdgeSegment(const MR_EdgeSegment *_this, const MR_EdgeSegment *rhs)
MRC_API MR_EdgePointd * MR_EdgeSegmentd_edgePointA(const MR_EdgeSegmentd *_this)
MRC_API MR_EdgeId * MR_EdgePointd_GetMutable_e(MR_EdgePointd *_this)
MRC_API bool MR_EdgePoint_isBd(const MR_EdgePoint *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region)
MRC_API MR_EdgePointd * MR_EdgePointd_Construct_MR_MeshTopology(const MR_MeshTopology *topology, MR_VertId v)
MRC_API MR_EdgeId * MR_EdgeSegment_GetMutable_e(MR_EdgeSegment *_this)
MRC_API void MR_EdgePointPair_Set_a(MR_EdgePointPair *_this, const MR_EdgePoint *value)
MRC_API const MR_SegmPointf * MR_EdgePoint_Get_a(const MR_EdgePoint *_this)
MRC_API void MR_EdgePoint_Set_a(MR_EdgePoint *_this, const MR_SegmPointf *value)
MRC_API void MR_EdgePoint_Destroy(const MR_EdgePoint *_this)
Destroys a heap-allocated instance of MR_EdgePoint. Does nothing if the pointer is null.
MRC_API MR_EdgeSegment * MR_EdgeSegment_sym(const MR_EdgeSegment *_this)
struct MR_SegmPointf MR_SegmPointf
encodes a point inside a line segment using relative distance in [0,1] Generated from class MR::SegmP...
Definition MREdgePoint.h:17
MRC_API MR_EdgePointPair * MR_EdgePointPair_OffsetMutablePtr(MR_EdgePointPair *ptr, ptrdiff_t i)
MRC_API bool MR_equal_MR_EdgePointd(const MR_EdgePointd *_this, const MR_EdgePointd *rhs)
MRC_API void MR_EdgeSegment_Set_e(MR_EdgeSegment *_this, MR_EdgeId value)
MRC_API const MR_EdgeId * MR_EdgePointd_Get_e(const MR_EdgePointd *_this)
MRC_API void MR_EdgeSegment_DestroyArray(const MR_EdgeSegment *_this)
Destroys a heap-allocated array of MR_EdgeSegment. Does nothing if the pointer is null.
struct MR_EdgePointPair MR_EdgePointPair
Definition MREdgePoint.h:43
MRC_API bool MR_EdgePoint_valid(const MR_EdgePoint *_this)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_ConstructFromAnother(const MR_EdgeSegmentd *_other)
MRC_API MR_EdgePoint * MR_EdgePoint_Construct_MR_PolylineTopology(const MR_PolylineTopology *topology, MR_VertId v)
MRC_API const MR_EdgeId * MR_EdgePoint_Get_e(const MR_EdgePoint *_this)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_OffsetMutablePtr(MR_EdgeSegmentd *ptr, ptrdiff_t i)
MRC_API const MR_SegmPointd * MR_EdgePointd_Get_a(const MR_EdgePointd *_this)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_DefaultConstruct(void)
MRC_API MR_EdgePoint * MR_EdgePointPair_GetMutable_a(MR_EdgePointPair *_this)
struct MR_EdgeSegmentd MR_EdgeSegmentd
Definition MREdgePoint.h:38
MRC_API MR_SegmPointd * MR_EdgeSegmentd_GetMutable_b(MR_EdgeSegmentd *_this)
struct MR_SegmPointd MR_SegmPointd
encodes a point inside a line segment using relative distance in [0,1] Generated from class MR::SegmP...
Definition MREdgePoint.h:16
MRC_API MR_EdgePoint * MR_EdgePoint_Construct_MR_MeshTopology(const MR_MeshTopology *topology, MR_VertId v)
MRC_API const MR_EdgeId * MR_EdgeSegment_Get_e(const MR_EdgeSegment *_this)
MRC_API void MR_EdgeSegment_Destroy(const MR_EdgeSegment *_this)
Destroys a heap-allocated instance of MR_EdgeSegment. Does nothing if the pointer is null.
MRC_API MR_EdgePoint * MR_EdgePoint_AssignFromAnother(MR_EdgePoint *_this, const MR_EdgePoint *_other)
MRC_API const MR_EdgePointd * MR_EdgePointd_OffsetPtr(const MR_EdgePointd *ptr, ptrdiff_t i)
MRC_API MR_EdgePointd * MR_EdgePointd_sym(const MR_EdgePointd *_this)
MRC_API MR_EdgeSegment * MR_EdgeSegment_DefaultConstructArray(size_t num_elems)
MRC_API void MR_EdgePointd_moveToClosestVertex(MR_EdgePointd *_this)
MRC_API MR_VertId MR_EdgePointd_inVertex_1_MR_MeshTopology(const MR_EdgePointd *_this, const MR_MeshTopology *topology)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_Construct(MR_EdgeId e, const double *a, const double *b)
MRC_API MR_EdgePointd * MR_EdgePointd_Construct_MR_PolylineTopology(const MR_PolylineTopology *topology, MR_VertId v)
MRC_API MR_VertId MR_EdgePointd_getClosestVertex_MR_MeshTopology(const MR_EdgePointd *_this, const MR_MeshTopology *topology)
MRC_API void MR_EdgeSegmentd_Set_b(MR_EdgeSegmentd *_this, const MR_SegmPointd *value)
MRC_API MR_EdgeSegment * MR_EdgeSegment_DefaultConstruct(void)
MRC_API MR_EdgeSegmentd * MR_EdgeSegmentd_sym(const MR_EdgeSegmentd *_this)
MRC_API void MR_EdgeSegment_Set_a(MR_EdgeSegment *_this, const MR_SegmPointf *value)
MRC_API MR_EdgePointd * MR_EdgeSegmentd_edgePointB(const MR_EdgeSegmentd *_this)
MRC_API MR_SegmPointf * MR_EdgePoint_GetMutable_a(MR_EdgePoint *_this)
MRC_API bool MR_not_equal_MR_EdgePointd(const MR_EdgePointd *_this, const MR_EdgePointd *rhs)
MRC_API bool MR_EdgeSegmentd_valid(const MR_EdgeSegmentd *_this)
MRC_API void MR_EdgePoint_moveToClosestVertex(MR_EdgePoint *_this)
MRC_API void MR_EdgePointPair_Destroy(const MR_EdgePointPair *_this)
Destroys a heap-allocated instance of MR_EdgePointPair. Does nothing if the pointer is null.
MRC_API MR_SegmPointd * MR_EdgePointd_GetMutable_a(MR_EdgePointd *_this)
MRC_API MR_SegmPointf * MR_EdgeSegment_GetMutable_a(MR_EdgeSegment *_this)
MRC_API const MR_SegmPointd * MR_EdgeSegmentd_Get_a(const MR_EdgeSegmentd *_this)
MRC_API bool MR_EdgePointd_valid(const MR_EdgePointd *_this)
MRC_API bool MR_EdgePoint_ConvertTo_bool(const MR_EdgePoint *_this)
MRC_API bool MR_same_float_MR_EdgePoint(const MR_MeshTopology *topology, const MR_EdgePoint *lhs, const MR_EdgePoint *rhs)
MRC_API void MR_EdgePointPair_DestroyArray(const MR_EdgePointPair *_this)
Destroys a heap-allocated array of MR_EdgePointPair. Does nothing if the pointer is null.
MRC_API bool MR_EdgePointd_inVertex_0(const MR_EdgePointd *_this)
MRC_API MR_EdgeSegment * MR_EdgeSegment_AssignFromAnother(MR_EdgeSegment *_this, const MR_EdgeSegment *_other)
MRC_API MR_EdgePoint * MR_EdgePoint_Construct_MR_EdgeId(MR_EdgeId e, float a)
MRC_API MR_VertId MR_EdgePoint_getClosestVertex_MR_MeshTopology(const MR_EdgePoint *_this, const MR_MeshTopology *topology)
MRC_API void MR_EdgePoint_Set_e(MR_EdgePoint *_this, MR_EdgeId value)
struct MR_EdgePointd MR_EdgePointd
Definition MREdgePoint.h:28
MRC_API MR_EdgePointPair * MR_EdgePointPair_DefaultConstruct(void)
MRC_API bool MR_EdgePoint_inVertex_0(const MR_EdgePoint *_this)
MRC_API MR_EdgeSegment * MR_EdgeSegment_ConstructFromAnother(const MR_EdgeSegment *_other)
MRC_API const MR_EdgeSegmentd * MR_EdgeSegmentd_OffsetPtr(const MR_EdgeSegmentd *ptr, ptrdiff_t i)
MRC_API bool MR_EdgePointd_isBd(const MR_EdgePointd *_this, const MR_MeshTopology *topology, const MR_FaceBitSet *region)
MRC_API MR_EdgePointPair * MR_EdgePointPair_AssignFromAnother(MR_EdgePointPair *_this, const MR_EdgePointPair *_other)
MRC_API bool MR_equal_MR_EdgePointPair(const MR_EdgePointPair *_this, const MR_EdgePointPair *rhs)
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRId.h:154
Definition MRId.h:41