17 #ifndef AGXCOLLIDE_VORONOIGENERATOR_H
18 #define AGXCOLLIDE_VORONOIGENERATOR_H
111 m_resolution = resolution;
#define AGXPHYSICS_EXPORT
VoronoiDiagramData generateVoronoiDiagramInShape(const agxCollide::Shape *shape, agx::UInt numPoints)
Generate the 3D Voronoi diagram in a shape from a set of specified points generated inside the specif...
VoronoiGenerator()
Default constructor.
agx::Vec3Vector generateEquidistantPointsInBound(agx::Real distance, agx::Real boundHalfVec, unsigned int seed)
void setResolution(agx::Real resolution)
Set resolution for plane tessellation in Voronoi diagram of basic primitives such as Spheres,...
agx::Real getResolution() const
Get resolution for plane tessellation in Voronoi diagram of basic primitives such as Spheres,...
VoronoiDiagramData generateVoronoiDiagramInBound(const agx::Bound3 &bound, const agx::UInt numPoints)
Generate the 3D Voronoi diagram inside a 3 dimensional bound from a specified point,...
VoronoiCell generateVoronoiPolyhedra(unsigned int seed=0, agx::Real pointDistance=0.75, agx::Real boundSize=5)
Create a polyhedra from a randomly generated Voronoi Diagram by using the method described in: https:...
virtual ~VoronoiGenerator()
VoronoiDiagramData generateVoronoiDiagramInBound(const agx::Bound3 &bound, const agx::Vec3Vector &voronoiPoints)
Generate the 3D Voronoi diagram inside a 3 dimensional bound from a specified point,...
VoronoiDiagramData generateVoronoiDiagramInShape(const agxCollide::Shape *shape, const agx::Vec3Vector &voronoiPoints)
Generate the 3D Voronoi diagram in a shape from a set of specified points, generated in the LOCAL coo...
agx::Vector< VoronoiCell > VoronoiDiagramData
Base class providing referencing counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGX_DECLARE_POINTER_TYPES(SpaceListener)
agx::Vec3Vector voronoiCellVertices