MeshLib
 
Loading...
Searching...
No Matches
MRDotNet/MRMeshTriPoint.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
5
8public value struct TriPoint
9{
11 float a;
13 float b;
16};
17
24public ref struct MeshTriPoint
25{
26public:
29 MR::DotNet::EdgeId e;
34 MR::DotNet::TriPoint bary;
35
36internal:
38private:
39 MR::MeshTriPoint* mtp_;
40};
41
43
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
Definition MRMesh/MRMeshTriPoint.h:23
Definition MRDotNet/MRMeshTriPoint.h:25
~MeshTriPoint()
left face of this edge is considered
MR::DotNet::TriPoint bary
Definition MRDotNet/MRMeshTriPoint.h:34
MR::DotNet::EdgeId e
Definition MRDotNet/MRMeshTriPoint.h:29
Definition MRDotNet/MRMeshTriPoint.h:9
float a
< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
Definition MRDotNet/MRMeshTriPoint.h:11
float b
Definition MRDotNet/MRMeshTriPoint.h:13
Vector3f Interpolate(Vector3f^ p0, Vector3f^ p1, Vector3f^ p2)
given three values in three vertices, computes interpolated value at this barycentric coordinates