|
| MyPlanetShapeProvider (Vector3 translation, float radius, MyPlanetGeneratorDefinition definition) |
|
void | Close () |
|
void | PrepareCache () |
|
unsafe float | GetValueForPositionCacheless (int face, ref Vector2 texcoord, out Vector3 localNormal) |
|
float | SignedDistanceWithSample (float lodVoxelSize, float distance, float value) |
|
void | ProjectToSurface (Vector3 localPos, out Vector3 surface) |
|
double | GetDistanceToSurfaceWithCache (Vector3 localPos) |
|
double | GetDistanceToSurfaceCacheless (Vector3 localPos) |
|
unsafe float | GetValueForPositionWithCache (int face, ref Vector2 texcoord, out Vector3 localNormal) |
|
float | AltitudeToRatio (float altitude) |
|
ContainmentType | IntersectBoundingBox (ref BoundingBox box, float lodLevel) |
|
bool | IntersectLineFace (ref LineD ll, int face, out double startOffset, out double endOffset) |
|
unsafe bool | IntersectLine (ref LineD ll, out double startOffset, out double endOffset) |
|
unsafe void | GetBounds (Vector3 *localPoints, int pointCount, out float minHeight, out float maxHeight) |
| Get the minimum and maximum ranges of terrain height in the area determined by the provided points. More...
|
|
unsafe void | GetBounds (ref BoundingBox box) |
|
Definition at line 17 of file MyPlanetShapeProvider.cs.
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.AltitudeToRatio |
( |
float |
altitude | ) |
|
|
inline |
void Sandbox.Engine.Voxels.MyPlanetShapeProvider.Close |
( |
| ) |
|
|
inline |
unsafe void Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetBounds |
( |
Vector3 * |
localPoints, |
|
|
int |
pointCount, |
|
|
out float |
minHeight, |
|
|
out float |
maxHeight |
|
) |
| |
|
inline |
Get the minimum and maximum ranges of terrain height in the area determined by the provided points.
- Parameters
-
localPoints | List of points to query |
pointCount | Number of points |
minHeight | The calculated minimum possible height of terrain |
maxHeight | The calculated maximum possible height of terrain |
Definition at line 1212 of file MyPlanetShapeProvider.cs.
unsafe void Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetBounds |
( |
ref BoundingBox |
box | ) |
|
|
inline |
Takes the x and y bounds of the box and queries the heightmap for the minimum and maximum height in the box.
The values are returned in the query box itself as the Z bounds.
This only works if all vertices of the box are in the same face.
Definition at line 1251 of file MyPlanetShapeProvider.cs.
double Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetDistanceToSurfaceCacheless |
( |
Vector3 |
localPos | ) |
|
|
inline |
Get the height for a position using the coefficient cache. Calculated position is for LOD0.
Definition at line 671 of file MyPlanetShapeProvider.cs.
double Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetDistanceToSurfaceWithCache |
( |
Vector3 |
localPos | ) |
|
|
inline |
Get the height for a position using the coefficient cache. Calculated position is for LOD0.
Definition at line 647 of file MyPlanetShapeProvider.cs.
static string Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetKnownLodSizes |
( |
| ) |
|
|
inlinestatic |
static float Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetTau |
( |
| ) |
|
|
inlinestatic |
unsafe float Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetValueForPositionCacheless |
( |
int |
face, |
|
|
ref Vector2 |
texcoord, |
|
|
out Vector3 |
localNormal |
|
) |
| |
|
inline |
Gets the elevation for a position.
Does not use the cache, does not consider details.
Definition at line 587 of file MyPlanetShapeProvider.cs.
unsafe float Sandbox.Engine.Voxels.MyPlanetShapeProvider.GetValueForPositionWithCache |
( |
int |
face, |
|
|
ref Vector2 |
texcoord, |
|
|
out Vector3 |
localNormal |
|
) |
| |
|
inline |
Get the height for a position using the coefficient cache. Calculated position is for LOD0.
Definition at line 701 of file MyPlanetShapeProvider.cs.
unsafe ContainmentType Sandbox.Engine.Voxels.MyPlanetShapeProvider.IntersectBoundingBoxInternal |
( |
ref BoundingBox |
box, |
|
|
float |
lodLevel |
|
) |
| |
|
inlineprotected |
unsafe bool Sandbox.Engine.Voxels.MyPlanetShapeProvider.IntersectLine |
( |
ref LineD |
ll, |
|
|
out double |
startOffset, |
|
|
out double |
endOffset |
|
) |
| |
|
inline |
bool Sandbox.Engine.Voxels.MyPlanetShapeProvider.IntersectLineFace |
( |
ref LineD |
ll, |
|
|
int |
face, |
|
|
out double |
startOffset, |
|
|
out double |
endOffset |
|
) |
| |
|
inline |
void Sandbox.Engine.Voxels.MyPlanetShapeProvider.PrepareCache |
( |
| ) |
|
|
inline |
The cache does not store in it's cells which map does one cell belong to, so before using it we have to invalidate all entries.
Maybe at some point we can come up with a more elegant solution for multiple planets.
Definition at line 387 of file MyPlanetShapeProvider.cs.
void Sandbox.Engine.Voxels.MyPlanetShapeProvider.ProjectToSurface |
( |
Vector3 |
localPos, |
|
|
out Vector3 |
surface |
|
) |
| |
|
inline |
static void Sandbox.Engine.Voxels.MyPlanetShapeProvider.SetTau |
( |
float |
tau | ) |
|
|
inlinestatic |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.SignedDistanceWithSample |
( |
float |
lodVoxelSize, |
|
|
float |
distance, |
|
|
float |
value |
|
) |
| |
|
inline |
bool Sandbox.Engine.Voxels.MyPlanetShapeProvider.Closed |
|
get |
string Sandbox.Engine.Voxels.MyPlanetShapeProvider.FormatedUnculledHistory |
|
staticget |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.InnerRadius |
|
get |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.MaxHillHeight |
|
get |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.MinHillHeight |
|
get |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.OuterRadius |
|
get |
float Sandbox.Engine.Voxels.MyPlanetShapeProvider.Radius |
|
get |
The documentation for this class was generated from the following file: