Space Engineers
Public Member Functions | Public Attributes | List of all members
Sandbox.Engine.Voxels.MyShapeBox Class Reference
Inheritance diagram for Sandbox.Engine.Voxels.MyShapeBox:
VRage.Game.ModAPI.IMyVoxelShapeBox 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 SendPaintRequest (MyVoxelBase voxel, byte newMaterialIndex)
 
override void SendCutOutRequest (MyVoxelBase voxel)
 
override void SendFillRequest (MyVoxelBase voxel, byte newMaterialIndex)
 
- Public Member Functions inherited from Sandbox.Engine.Voxels.MyShape
virtual void SendDrillCutOutRequest (MyVoxelBase voxel, bool damage=false)
 

Public Attributes

BoundingBoxD Boundaries
 

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.IMyVoxelShapeBox
BoundingBoxD Boundaries [get, set]
 Boundaries are in local space, you need to use transform property to rotate/translate shape More...
 
- 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 72 of file MyVoxelGenerator.cs.

Member Function Documentation

override float Sandbox.Engine.Voxels.MyShapeBox.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 88 of file MyVoxelGenerator.cs.

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

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 76 of file MyVoxelGenerator.cs.

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

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 81 of file MyVoxelGenerator.cs.

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

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 109 of file MyVoxelGenerator.cs.

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

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 114 of file MyVoxelGenerator.cs.

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

Implements Sandbox.Engine.Voxels.MyShape.

Definition at line 104 of file MyVoxelGenerator.cs.

Member Data Documentation

BoundingBoxD Sandbox.Engine.Voxels.MyShapeBox.Boundaries

Definition at line 74 of file MyVoxelGenerator.cs.


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