|
Mercator
|
Terrain modifier that defines a crater. More...
#include <TerrainMod.h>
Public Member Functions | |
| CraterTerrainMod (float level, const Shape< 2 > &s) | |
| Constructor. | |
| virtual void | apply (float &point, int x, int y) const |
| virtual TerrainMod * | clone () const |
| void | setShape (float level, const Shape< 2 > &s) |
Protected Attributes | |
| float | m_level |
| The height level of the crater center. | |
Private Member Functions | |
| CraterTerrainMod (CraterTerrainMod &) | |
| Copy constructor. | |
Terrain modifier that defines a crater.
This modifier creates an area where a sphere shaped volume has been subtracted from the terrain surface to create a spherical crater.
| Mercator::CraterTerrainMod::CraterTerrainMod | ( | float | level, |
| const Shape< 2 > & | s | ||
| ) | [inline] |
Constructor.
| s | Sphere that defines the shape of the crater. |
1.7.5