C# Class SEToolbox.Support.Modelling

Exibir arquivo Open project: midspace/SEToolbox

Public Methods

Method Description
CountCubic ( CubeType cubic ) : int>.Dictionary
CrawlExterior ( CubeType cubic ) : void
GetCubeOrientation ( CubeType type ) : VRage.Game.SerializableBlockOrientation
PreviewModelVolmetic ( string modelFile, System.Windows.Media.Media3D.Model3D &model ) : System.Windows.Media.Media3D.Rect3D
ReadModelVolmetic ( string modelFile, double scaleMultiplyier, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType ) : CubeType[][][]
ReadModelVolmetic ( string modelFile, double scaleMultiplyier, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType, double>.Action resetProgress, System.Action incrementProgress ) : CubeType[][][]
ReadModelVolmetic ( string modelFile, double scaleMultiplyierX, double scaleMultiplyierY, double scaleMultiplyierZ, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType, double>.Action resetProgress, System.Action incrementProgress ) : CubeType[][][]

Volumes are calculated across axis where they are whole numbers (rounded to 0 decimal places).

ReadModelVolmeticAlt ( string modelFile, double voxelUnitSize ) : CubeType[][][]

Private Methods

Method Description
BuildStructureFromCubic ( MyObjectBuilder_CubeGrid entity, CubeType cubic, bool fillObject, SubtypeId blockType, SubtypeId slopeBlockType, SubtypeId cornerBlockType, SubtypeId inverseCornerBlockType ) : void
CalculateAddedCorners ( CubeType cubic, System.Action incrementProgress ) : void
CalculateAddedInverseCorners ( CubeType cubic, System.Action incrementProgress ) : void
CalculateAddedSlopes ( CubeType cubic, System.Action incrementProgress ) : void
CalculateSubtractedCorners ( CubeType cubic ) : void
CalculateSubtractedInverseCorners ( CubeType cubic ) : void
CalculateSubtractedSlopes ( CubeType cubic ) : void
CheckAdjacentCubic ( CubeType ccubic, int x, int y, int z, int xCount, int yCount, int zCount, int xDelta, int yDelta, int zDelta, CubeType cubeType ) : bool
CheckAdjacentCubic1 ( CubeType ccubic, int x, int y, int z, int xCount, int yCount, int zCount, int xDelta, int yDelta, int zDelta, CubeType cubeType ) : bool
CheckAdjacentCubic2 ( CubeType ccubic, int x, int y, int z, int xCount, int yCount, int zCount, int xDelta1, int yDelta1, int zDelta1, CubeType cubeType1, int xDelta2, int yDelta2, int zDelta2, CubeType cubeType2 ) : bool
CheckAdjacentCubic3 ( CubeType ccubic, int x, int y, int z, int xCount, int yCount, int zCount, int xDelta1, int yDelta1, int zDelta1, CubeType cubeType1, int xDelta2, int yDelta2, int zDelta2, CubeType cubeType2, int xDelta3, int yDelta3, int zDelta3, CubeType cubeType3 ) : bool
IsValidRange ( int x, int y, int z, int xCount, int yCount, int zCount, int xDelta, int yDelta, int zDelta ) : bool
TestCreateSlopedDiagonalPlane ( ) : CubeType[][][]
TestCreateSplayedDiagonalPlane ( ) : CubeType[][][]
TestCreateStaggeredStar ( ) : CubeType[][][]
TestCreateTrayShape ( ) : CubeType[][][]

Method Details

CountCubic() public static method

public static CountCubic ( CubeType cubic ) : int>.Dictionary
cubic CubeType
return int>.Dictionary

CrawlExterior() public static method

public static CrawlExterior ( CubeType cubic ) : void
cubic CubeType
return void

GetCubeOrientation() public static method

public static GetCubeOrientation ( CubeType type ) : VRage.Game.SerializableBlockOrientation
type CubeType
return VRage.Game.SerializableBlockOrientation

PreviewModelVolmetic() public static method

public static PreviewModelVolmetic ( string modelFile, System.Windows.Media.Media3D.Model3D &model ) : System.Windows.Media.Media3D.Rect3D
modelFile string
model System.Windows.Media.Media3D.Model3D
return System.Windows.Media.Media3D.Rect3D

ReadModelVolmetic() public static method

public static ReadModelVolmetic ( string modelFile, double scaleMultiplyier, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType ) : CubeType[][][]
modelFile string
scaleMultiplyier double
transform System.Windows.Media.Media3D.Transform3D
traceType ModelTraceVoxel
return CubeType[][][]

ReadModelVolmetic() public static method

public static ReadModelVolmetic ( string modelFile, double scaleMultiplyier, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType, double>.Action resetProgress, System.Action incrementProgress ) : CubeType[][][]
modelFile string
scaleMultiplyier double
transform System.Windows.Media.Media3D.Transform3D
traceType ModelTraceVoxel
resetProgress double>.Action
incrementProgress System.Action
return CubeType[][][]

ReadModelVolmetic() public static method

Volumes are calculated across axis where they are whole numbers (rounded to 0 decimal places).
public static ReadModelVolmetic ( string modelFile, double scaleMultiplyierX, double scaleMultiplyierY, double scaleMultiplyierZ, System.Windows.Media.Media3D.Transform3D transform, ModelTraceVoxel traceType, double>.Action resetProgress, System.Action incrementProgress ) : CubeType[][][]
modelFile string
scaleMultiplyierX double
scaleMultiplyierY double
scaleMultiplyierZ double
transform System.Windows.Media.Media3D.Transform3D
traceType ModelTraceVoxel
resetProgress double>.Action
incrementProgress System.Action
return CubeType[][][]

ReadModelVolmeticAlt() public static method

public static ReadModelVolmeticAlt ( string modelFile, double voxelUnitSize ) : CubeType[][][]
modelFile string
voxelUnitSize double
return CubeType[][][]