Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
chrono::vehicle::RigidTerrain::Patch Class Referenceabstract
Description
Definition of a patch in a rigid terrain model.
#include <RigidTerrain.h>
Public Member Functions | |
| void | SetColor (const ChColor &color) |
| Set visualization color. More... | |
| void | SetTexture (const std::string &tex_file, float tex_scale_x=1, float tex_scale_y=1) |
| Set texture properties. More... | |
| std::shared_ptr< ChBody > | GetGroundBody () const |
| Return a handle to the ground body. | |
Protected Member Functions | |
| virtual bool | FindPoint (const ChVector<> &loc, double &height, ChVector<> &normal) const =0 |
| virtual void | ExportMeshPovray (const std::string &out_dir, bool smoothed=false) |
| virtual void | ExportMeshWavefront (const std::string &out_dir) |
Protected Attributes | |
| PatchType | m_type |
| type of this patch | |
| std::shared_ptr< ChBody > | m_body |
| associated body | |
| float | m_friction |
| coefficient of friction | |
| double | m_radius |
| bounding sphere radius | |
Friends | |
| class | RigidTerrain |
Member Function Documentation
◆ SetColor()
| void chrono::vehicle::RigidTerrain::Patch::SetColor | ( | const ChColor & | color | ) |
Set visualization color.
- Parameters
-
[in] color color of the visualization material
◆ SetTexture()
| void chrono::vehicle::RigidTerrain::Patch::SetTexture | ( | const std::string & | tex_file, |
| float | tex_scale_x = 1, |
||
| float | tex_scale_y = 1 |
||
| ) |
Set texture properties.
- Parameters
-
[in] tex_file texture filename [in] tex_scale_x texture scale in X [in] tex_scale_y texture scale in Y
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_vehicle/terrain/RigidTerrain.h
- /builds/uwsbel/chrono/src/chrono_vehicle/terrain/RigidTerrain.cpp