17 #ifndef AGXMODEL_HEIGHT_MAP_GENERATOR_H
18 #define AGXMODEL_HEIGHT_MAP_GENERATOR_H
91 const agx::Vec2& heightInter,
size_t num,
bool periodic_x =
false,
bool periodic_y =
false,
agx::Real max_Height = 0);
150 bool limitToMaxHeight=
false,
agx::Real maxHeight=0);
178 namespace MeshModifierUtils
#define AGX_DECLARE_POINTER_TYPES(type)
Triangle mesh for geometric intersection tests.
This struct holds parameters for the creation of a height texture that is a composite bump created by...
GaussianFunctionSettings()
GaussianFunctionSettings(const agx::Vec2 &size, const agx::Vec2 &widthInter, const agx::Vec2 &heightInter, size_t num, bool periodic_x=false, bool periodic_y=false, agx::Real max_Height=0)
A height map generator using a Gaussian function.
virtual ~GaussianHeightMapGenerator()
Default destructor.
GaussianFunctionSettings getSettings()
Gets the settings used in the simulation.
GaussianHeightMapGenerator()
Default constructor.
agx::RealMatrix generateHeightData()
Generates and returns height data in matrix form.
GaussianFunctionSettings m_settings
agx::RealMatrix createGaussianHeightMatrix(agx::Vec2 X_bounds, size_t X_resolution, agx::Vec2 Y_bounds, size_t Y_resolution, const agx::RealMatrix &pos, const agx::RealMatrix &spread, const agx::RealVector &litude, bool limitToMaxHeight=false, agx::Real maxHeight=0)
Creates a matrix that holds the heights of the Gaussian dimples.
void setSettings(const GaussianFunctionSettings &settings)
Sets the settings that will be used when creating the Gaussian texture.
GaussianHeightMapGenerator(const size_t &width, const size_t &height, const GaussianFunctionSettings &settings)
Constructor that takes the image width, image hegiht and settings as arguments.
void setSeed(agx::UInt seed)
Sets the seed that it used by the random number generator when creating a bump texture.
A base class used for generating textures.
virtual ~HeightMapGenerator()
Default destructor.
void setWidth(const size_t &width)
Sets the height in pixels of the produced texture.
void setHeigth(const size_t &height)
Sets the height in pixels of the produced texture.
HeightMapGenerator(const size_t &width, const size_t &height)
size_t getHeight()
Gets the height in pixels of the produced texture.
size_t getWidth()
Gets the width in pixels of the produced texture.
Base class providing referencing counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGXMODEL_EXPORT agxCollide::Trimesh * bumpCylindricalMeshAroundAnAxisFromHeightData(agxCollide::Trimesh *trimesh, agx::RealMatrix *heightData, agx::Vec3 axis, agx::Vec3 perpendicularBaseVector, agx::Real cylinderLength, agx::Vec3 cylinderCenter)
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Vector< agx::RealVector > RealMatrix