Space Engineers
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Sandbox.Engine.Voxels.MyShape Class Referenceabstract
Inheritance diagram for Sandbox.Engine.Voxels.MyShape:
VRage.Game.ModAPI.IMyVoxelShape Sandbox.Engine.Voxels.MyShapeBox Sandbox.Engine.Voxels.MyShapeCapsule Sandbox.Engine.Voxels.MyShapeEllipsoid Sandbox.Engine.Voxels.MyShapeRamp Sandbox.Engine.Voxels.MyShapeSphere

Public Member Functions

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

Protected Member Functions

float SignedDistanceToDensity (float signedDistance)
 
Returns
Recomputed density value from signed distance
More...
 

Protected Attributes

MatrixD m_transformation = MatrixD.Identity
 
MatrixD m_inverse = MatrixD.Identity
 
bool m_inverseIsDirty = false
 

Properties

MatrixD Transformation [get, set]
 
MatrixD InverseTransformation [get]
 
- Properties inherited from VRage.Game.ModAPI.IMyVoxelShape
MatrixD Transform [get, set]
 World matrix of voxel shape More...
 

Detailed Description

Definition at line 23 of file MyVoxelGenerator.cs.

Member Function Documentation

abstract float Sandbox.Engine.Voxels.MyShape.GetVolume ( ref Vector3D  voxelPosition)
pure virtual

Gets volume of intersection of shape and voxel

Parameters
voxelPositionLeft bottom point of voxel
Returns
Normalized volume of intersection

Implemented in Sandbox.Engine.Voxels.MyShapeCapsule, Sandbox.Engine.Voxels.MyShapeRamp, Sandbox.Engine.Voxels.MyShapeEllipsoid, Sandbox.Engine.Voxels.MyShapeSphere, and Sandbox.Engine.Voxels.MyShapeBox.

abstract BoundingBoxD Sandbox.Engine.Voxels.MyShape.GetWorldBoundaries ( )
pure virtual
abstract BoundingBoxD Sandbox.Engine.Voxels.MyShape.PeekWorldBoundaries ( ref Vector3D  targetPosition)
pure virtual
abstract void Sandbox.Engine.Voxels.MyShape.SendCutOutRequest ( MyVoxelBase  voxelbool)
pure virtual
virtual void Sandbox.Engine.Voxels.MyShape.SendDrillCutOutRequest ( MyVoxelBase  voxel,
bool  damage = false 
)
inlinevirtual

Reimplemented in Sandbox.Engine.Voxels.MyShapeSphere.

Definition at line 68 of file MyVoxelGenerator.cs.

abstract void Sandbox.Engine.Voxels.MyShape.SendFillRequest ( MyVoxelBase  voxel,
byte  newMaterialIndex 
)
pure virtual
abstract void Sandbox.Engine.Voxels.MyShape.SendPaintRequest ( MyVoxelBase  voxel,
byte  newMaterialIndex 
)
pure virtual
float Sandbox.Engine.Voxels.MyShape.SignedDistanceToDensity ( float  signedDistance)
inlineprotected

Returns
Recomputed density value from signed distance

Definition at line 59 of file MyVoxelGenerator.cs.

Member Data Documentation

MatrixD Sandbox.Engine.Voxels.MyShape.m_inverse = MatrixD.Identity
protected

Definition at line 26 of file MyVoxelGenerator.cs.

bool Sandbox.Engine.Voxels.MyShape.m_inverseIsDirty = false
protected

Definition at line 27 of file MyVoxelGenerator.cs.

MatrixD Sandbox.Engine.Voxels.MyShape.m_transformation = MatrixD.Identity
protected

Definition at line 25 of file MyVoxelGenerator.cs.

Property Documentation

MatrixD Sandbox.Engine.Voxels.MyShape.InverseTransformation
get

Definition at line 40 of file MyVoxelGenerator.cs.

MatrixD Sandbox.Engine.Voxels.MyShape.Transformation
getset

Definition at line 30 of file MyVoxelGenerator.cs.


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