Skip to content

raisim::rscene::TerrainFoliageLayer ​

struct · #include <raisim/Rscene.hpp>

A foliage layer scattered over a terrain by a viewer (terrain_foliage_layer). The density map and the seed decide the instances; a raisin::RayraiWindow showing the scene scatters them.

Public attributes ​

id ​

cpp
std::string id

name ​

cpp
std::string name

enabled ​

cpp
bool enabled

shape ​

cpp
Shape shape

Primitive drawn per instance (not Ground). A Mesh layer without meshPath draws boxes.

meshPath ​

cpp
std::string meshPath

Mesh file or .rasset descriptor.

size ​

cpp
Vec3 size

Base size of an instance.

colorA ​

cpp
Color colorA

Colors blended per instance.

colorB ​

cpp
Color colorB

density ​

cpp
std::vector<double> density

One density in [0, 1] per terrain sample.

densityPerSquareMeter ​

cpp
double densityPerSquareMeter

Instances per square metre at density 1, and the instance limit.

maxInstances ​

cpp
std::size_t maxInstances

minScale ​

cpp
double minScale

Random scale range and rotation spreads (deg).

maxScale ​

cpp
double maxScale

randomYawDegrees ​

cpp
double randomYawDegrees

randomPitchDegrees ​

cpp
double randomPitchDegrees

randomRollDegrees ​

cpp
double randomRollDegrees

alignToNormal ​

cpp
bool alignToNormal

minHeight ​

cpp
double minHeight

Height (m) and slope (deg) ranges where instances are placed.

maxHeight ​

cpp
double maxHeight

minSlopeDegrees ​

cpp
double minSlopeDegrees

maxSlopeDegrees ​

cpp
double maxSlopeDegrees

castShadows ​

cpp
bool castShadows

detectable ​

cpp
bool detectable

automaticMeshLod ​

cpp
bool automaticMeshLod

maxRenderedInstances ​

cpp
std::size_t maxRenderedInstances

renderedInstanceStride ​

cpp
std::size_t renderedInstanceStride

projectedLod ​

cpp
bool projectedLod

projectedLodMinRadiusPixels ​

cpp
double projectedLodMinRadiusPixels

projectedLodMaxStride ​

cpp
std::size_t projectedLodMaxStride

doubleBufferedInstanceUploads ​

cpp
bool doubleBufferedInstanceUploads

sortTransparentInstances ​

cpp
bool sortTransparentInstances

windStrength ​

cpp
double windStrength

windRootHeight ​

cpp
double windRootHeight

windTipHeight ​

cpp
double windTipHeight

windStiffness ​

cpp
double windStiffness

windFlutterWeight ​

cpp
double windFlutterWeight

seed ​

cpp
std::uint32_t seed

RaiSim — physics for robotics and AI.