10 #include <Atoms/Globals.h>
11 #include <AtomsUtils/AtomsMath.h>
12 #include <AtomsUtils/Triangle.h>
13 #include <AtomsUtils/Edge.h>
31 AtomsMath::Vector2f min;
32 AtomsMath::Vector2f max;
33 AtomsMath::Vector2f gridSize;
39 std::vector<AtomsUtils::Triangle2> triangles;
52 ATOMS_EXPORT std::vector<AtomsUtils::Triangle2>
locomotionTriangulation(
const std::vector<AtomsMath::Vector2f> & points,
const LocomotionSort xSort = LocomotionSort::kLess,
const LocomotionSort ySort = LocomotionSort::kLess,
const float eps = 1e-4);
54 ATOMS_EXPORT
bool findTriangleFromPointForLocomotion(
const AtomsMath::Vector2f& point,
const std::vector<AtomsUtils::Triangle2>& triangles, AtomsMath::Vector3f& barycentricCoords,
AtomsUtils::Triangle2& outTriangle,
const std::set<int>& skipTriangles);
Definition: LocomotionHelper.h:29
Definition: LocomotionHelper.h:36
Triangle 2D class.
Definition: Triangle.h:87
Atoms namespace.
Definition: Agent.h:29
ATOMS_EXPORT std::vector< AtomsUtils::Triangle2 > locomotionTriangulation(const std::vector< AtomsMath::Vector2f > &points, const LocomotionSort xSort=LocomotionSort::kLess, const LocomotionSort ySort=LocomotionSort::kLess, const float eps=1e-4)
Implements Bowyer-Watson algorithm to generate a Delaunay triangulation for the given positions.