MeshLib C Docs
Loading...
Searching...
No Matches
MRTriangleIntersection.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_IntersectionPrecomputes_double MR_IntersectionPrecomputes_double; // Defined in `#include <MRCMesh/MRIntersectionPrecomputes.h>`.
12typedef struct MR_IntersectionPrecomputes_float MR_IntersectionPrecomputes_float; // Defined in `#include <MRCMesh/MRIntersectionPrecomputes.h>`.
13typedef struct MR_TriPointf MR_TriPointf; // Defined in `#include <MRCMesh/MRTriPoint.h>`.
14typedef struct MR_Vector3d MR_Vector3d; // Defined in `#include <MRCMesh/MRVector3.h>`.
15typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
16typedef struct MR_std_optional_MR_TriIntersectResult MR_std_optional_MR_TriIntersectResult; // Defined in `#include <MRCMisc/std_optional_MR_TriIntersectResult.h>`.
17
18
21
22// barycentric representation
27
28// barycentric representation
33
34// barycentric representation
39
40// distance from ray origin to p in dir length units
45
46// distance from ray origin to p in dir length units
50
51// distance from ray origin to p in dir length units
56
61
64
67
71
74
77
83
91
99
107
115
123
131
132#ifdef __cplusplus
133} // extern "C"
134#endif
struct MR_IntersectionPrecomputes_float MR_IntersectionPrecomputes_float
Definition MRIntersectionPrecomputes.h:17
struct MR_IntersectionPrecomputes_double MR_IntersectionPrecomputes_double
Definition MRIntersectionPrecomputes.h:22
struct MR_TriPointf MR_TriPointf
Definition MRMeshTriPoint.h:17
MRC_API MR_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect_const_MR_Vector3f_ref_MR_Vector3f(const MR_Vector3f *oriA, const MR_Vector3f *oriB, const MR_Vector3f *oriC, const MR_Vector3f *dir)
MRC_API MR_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect_const_MR_Vector3d_ref_MR_Vector3d(const MR_Vector3d *oriA, const MR_Vector3d *oriB, const MR_Vector3d *oriC, const MR_Vector3d *dir)
struct MR_TriIntersectResult MR_TriIntersectResult
Generated from class MR::TriIntersectResult.
Definition MRTriangleIntersection.h:20
MRC_API MR_TriIntersectResult * MR_TriIntersectResult_AssignFromAnother(MR_TriIntersectResult *_this, const MR_TriIntersectResult *_other)
MRC_API MR_TriIntersectResult * MR_TriIntersectResult_ConstructFromAnother(const MR_TriIntersectResult *_other)
MRC_API void MR_TriIntersectResult_DestroyArray(const MR_TriIntersectResult *_this)
Destroys a heap-allocated array of MR_TriIntersectResult. Does nothing if the pointer is null.
MRC_API const float * MR_TriIntersectResult_Get_t(const MR_TriIntersectResult *_this)
MRC_API MR_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect__float(const MR_Vector3f *oriA, const MR_Vector3f *oriB, const MR_Vector3f *oriC, const MR_IntersectionPrecomputes_float *prec)
MRC_API MR_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect_const_MR_Vector3f_ref_MR_IntersectionPrecomputes_float(const MR_Vector3f *oriA, const MR_Vector3f *oriB, const MR_Vector3f *oriC, const MR_IntersectionPrecomputes_float *prec)
MRC_API MR_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect_const_MR_Vector3d_ref_MR_IntersectionPrecomputes_double(const MR_Vector3d *oriA, const MR_Vector3d *oriB, const MR_Vector3d *oriC, const MR_IntersectionPrecomputes_double *prec)
struct MR_std_optional_MR_TriIntersectResult MR_std_optional_MR_TriIntersectResult
Definition MRTriangleIntersection.h:16
MRC_API void MR_TriIntersectResult_Set_bary(MR_TriIntersectResult *_this, const MR_TriPointf *value)
MRC_API void MR_TriIntersectResult_Destroy(const MR_TriIntersectResult *_this)
Destroys a heap-allocated instance of MR_TriIntersectResult. Does nothing if the pointer is null.
MRC_API float * MR_TriIntersectResult_GetMutable_t(MR_TriIntersectResult *_this)
MRC_API const MR_TriIntersectResult * MR_TriIntersectResult_OffsetPtr(const MR_TriIntersectResult *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_TriPointf * MR_TriIntersectResult_GetMutable_bary(MR_TriIntersectResult *_this)
MRC_API MR_TriIntersectResult * MR_TriIntersectResult_Construct(float U, float V, float dist)
MRC_API void MR_TriIntersectResult_Set_t(MR_TriIntersectResult *_this, float value)
MRC_API const MR_TriPointf * MR_TriIntersectResult_Get_bary(const MR_TriIntersectResult *_this)
MRC_API MR_TriIntersectResult * MR_TriIntersectResult_OffsetMutablePtr(MR_TriIntersectResult *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_std_optional_MR_TriIntersectResult * MR_rayTriangleIntersect__double(const MR_Vector3d *oriA, const MR_Vector3d *oriB, const MR_Vector3d *oriC, const MR_IntersectionPrecomputes_double *prec)
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:60
Definition MRVector3.h:51