15 template <
typename InputType,
typename ComputeType,
typename RationalType>
36 std::array<InputType, 3>& bary)
const;
43 template <
typename InputType,
typename ComputeType,
typename RationalType>
51 template <
typename InputType,
typename ComputeType,
typename RationalType>
58 template <
typename InputType,
typename ComputeType,
typename RationalType>
65 template <
typename InputType,
typename ComputeType,
typename RationalType>
73 template <
typename InputType,
typename ComputeType,
typename RationalType>
80 template <
typename InputType,
typename ComputeType,
typename RationalType>
87 template <
typename InputType,
typename ComputeType,
typename RationalType>
92 return mDelaunay->GetContainingTriangle(P, info);
95 template <
typename InputType,
typename ComputeType,
typename RationalType>
106 for (
int i = 0; i < 3; ++i)
109 for (
int j = 0; j < 2; ++j)
111 vertices[i][j] = (InputType)V[j];
120 template <
typename InputType,
typename ComputeType,
typename RationalType>
124 return mDelaunay->GetIndices(t, indices);
127 template <
typename InputType,
typename ComputeType,
typename RationalType>
131 return mDelaunay->GetAdjacencies(t, indices);
134 template <
typename InputType,
typename ComputeType,
typename RationalType>
137 std::array<InputType, 3>& bary)
const 145 std::array<Vector2<RationalType>, 3> rtV;
146 for (
int i = 0; i < 3; ++i)
149 for (
int j = 0; j < 2; ++j)
151 rtV[i][j] = (RationalType)V[j];
155 RationalType rtBary[3];
158 for (
int i = 0; i < 3; ++i)
160 bary[i] = (InputType)rtBary[i];
Vector2< InputType > const * GetVertices() const
bool GetBarycentrics(int t, Vector2< InputType > const &P, std::array< InputType, 3 > &bary) const
int const * GetAdjacencies() const
int GetContainingTriangle(Vector2< InputType > const &P) const
int GetNumTriangles() const
Vector2< Real > const * GetVertices() const
GLsizei GLenum const void * indices
Delaunay2Mesh(Delaunay2< InputType, ComputeType > const &delaunay)
bool ComputeBarycentrics(Vector2< Real > const &p, Vector2< Real > const &v0, Vector2< Real > const &v1, Vector2< Real > const &v2, Real bary[3], Real epsilon=(Real) 0)
Delaunay2< InputType, ComputeType > const * mDelaunay
int GetNumVertices() const
int const * GetIndices() const