15 template <
typename InputType,
typename ComputeType,
typename RationalType>
36 std::array<InputType, 4>& 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->GetContainingTetrahedron(P, info);
95 template <
typename InputType,
typename ComputeType,
typename RationalType>
106 for (
int i = 0; i < 4; ++i)
109 for (
int j = 0; j < 3; ++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, 4>& bary)
const 145 std::array<Vector3<RationalType>, 4> rtV;
146 for (
int i = 0; i < 4; ++i)
149 for (
int j = 0; j < 3; ++j)
151 rtV[i][j] = (RationalType)V[j];
155 RationalType rtBary[4];
158 for (
int i = 0; i < 4; ++i)
160 bary[i] = (InputType)rtBary[i];
Delaunay3< InputType, ComputeType > const * mDelaunay
bool GetBarycentrics(int t, Vector3< InputType > const &P, std::array< InputType, 4 > &bary) const
Delaunay3Mesh(Delaunay3< InputType, ComputeType > const &delaunay)
int GetContainingTetrahedron(Vector3< InputType > const &P) const
Vector3< InputType > const * GetVertices() const
Vector3< Real > const * GetVertices() const
GLsizei GLenum const void * indices
int const * GetIndices() const
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)
int GetNumTetrahedra() const
int GetNumVertices() const
int const * GetAdjacencies() const