Space Engineers
Public Member Functions | Public Attributes | List of all members
Sandbox.Engine.Voxels.MyShapeSphere Class Reference
Inheritance diagram for Sandbox.Engine.Voxels.MyShapeSphere:
VRage.Game.ModAPI.IMyVoxelShapeSphere Sandbox.Engine.Voxels.MyShape VRage.Game.ModAPI.IMyVoxelShape VRage.Game.ModAPI.IMyVoxelShape

Public Member Functions

override BoundingBoxD GetWorldBoundaries ()
 
override BoundingBoxD PeekWorldBoundaries (ref Vector3D targetPosition)
 
override float GetVolume (ref Vector3D voxelPosition)
 Gets volume of intersection of shape and voxel More...
 
override void SendDrillCutOutRequest (MyVoxelBase voxel, bool damage=false)
 
override void SendCutOutRequest (MyVoxelBase voxel)
 
override void SendPaintRequest (MyVoxelBase voxel, byte newMaterialIndex)
 
override void SendFillRequest (MyVoxelBase voxel, byte newMaterialIndex)
 

Public Attributes

Vector3D Center
 
float Radius
 

Additional Inherited Members

- Protected Member Functions inherited from Sandbox.Engine.Voxels.MyShape
float SignedDistanceToDensity (float signedDistance)
 
Returns
Recomputed density value from signed distance
More...
 
- Protected Attributes inherited from Sandbox.Engine.Voxels.MyShape
MatrixD m_transformation = MatrixD.Identity
 
MatrixD m_inverse = MatrixD.Identity
 
bool m_inverseIsDirty = false
 
- Properties inherited from VRage.Game.ModAPI.IMyVoxelShapeSphere
Vector3D Center [get, set]
 In World Space More...
 
float Radius [get, set]
 
- Properties inherited from VRage.Game.ModAPI.IMyVoxelShape
MatrixD Transform [get, set]
 World matrix of voxel shape More...
 
- Properties inherited from Sandbox.Engine.Voxels.MyShape
MatrixD Transformation [get, set]
 
MatrixD InverseTransformation [get]
 

Detailed Description

Definition at line 120 of file MyVoxelGenerator.cs.

Member Function Documentation

override float Sandbox.Engine.Voxels.MyShapeSphere.GetVolume ( ref Vector3D  voxelPosition)
inlinevirtual

Gets volume of intersection of shape and voxel

Parameters
voxelPositionLeft bottom point of voxel
Returns
Normalized volume of intersection

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 137 of file MyVoxelGenerator.cs.

override BoundingBoxD Sandbox.Engine.Voxels.MyShapeSphere.GetWorldBoundaries ( )
inlinevirtual

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 125 of file MyVoxelGenerator.cs.

override BoundingBoxD Sandbox.Engine.Voxels.MyShapeSphere.PeekWorldBoundaries ( ref Vector3D  targetPosition)
inlinevirtual

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 132 of file MyVoxelGenerator.cs.

override void Sandbox.Engine.Voxels.MyShapeSphere.SendCutOutRequest ( MyVoxelBase  voxel)
inlinevirtual

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 150 of file MyVoxelGenerator.cs.

override void Sandbox.Engine.Voxels.MyShapeSphere.SendDrillCutOutRequest ( MyVoxelBase  voxel,
bool  damage = false 
)
inlinevirtual

Reimplemented from Sandbox.Engine.Voxels.MyShape.

Definition at line 146 of file MyVoxelGenerator.cs.

override void Sandbox.Engine.Voxels.MyShapeSphere.SendFillRequest ( MyVoxelBase  voxel,
byte  newMaterialIndex 
)
inlinevirtual

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 160 of file MyVoxelGenerator.cs.

override void Sandbox.Engine.Voxels.MyShapeSphere.SendPaintRequest ( MyVoxelBase  voxel,
byte  newMaterialIndex 
)
inlinevirtual

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 155 of file MyVoxelGenerator.cs.

Member Data Documentation

Vector3D Sandbox.Engine.Voxels.MyShapeSphere.Center

Definition at line 122 of file MyVoxelGenerator.cs.

float Sandbox.Engine.Voxels.MyShapeSphere.Radius

Definition at line 123 of file MyVoxelGenerator.cs.


The documentation for this class was generated from the following files: