C# Class SEToolbox.Interop.Asteroids.MyVoxelBuilder

Mostra file Open project: midspace/SEToolbox Class Usage Examples

Public Methods

Method Description
BuildAsteroid ( bool multiThread, Vector3I size, string material, string faceMaterial, Action func ) : MyVoxelMap

Builds an asteroid Voxel. Voxel detail will be completed by function callbacks. This allows for muti-threading, and generating content via algorithims.

BuildAsteroidCube ( bool multiThread, Vector3I min, Vector3I max, string material, string faceMaterial ) : MyVoxelMap
BuildAsteroidCube ( bool multiThread, int width, int height, int depth, string material, string faceMaterial, bool hollow = false, int shellWidth, float safeSize = 0f ) : MyVoxelMap
BuildAsteroidFromModel ( bool multiThread, string sourceVolumetricFile, string material, string faceMaterial, bool fillObject, string interiorMaterial, ModelTraceVoxel traceType, double scale, System.Windows.Media.Media3D.Transform3D transform ) : MyVoxelMap
BuildAsteroidFromModel ( bool multiThread, string sourceVolumetricFile, string material, string faceMaterial, bool fillObject, string interiorMaterial, ModelTraceVoxel traceType, double scale, Transform3D transform, double>.Action resetProgress, Action incrementProgress ) : MyVoxelMap
BuildAsteroidSphere ( bool multiThread, double radius, string material, string faceMaterial, bool hollow = false, int shellWidth ) : MyVoxelMap
ConvertAsteroid ( string loadFile, string saveFile, string defaultMaterial, string material ) : void
ProcessAsteroid ( MyVoxelMap voxelMap, bool multiThread, string material, Action func, bool readWrite = true ) : void

Processes an asteroid Voxel using function callbacks. This allows for muti-threading, and generating content via algorithims.

StripMaterial ( string loadFile, string saveFile, string defaultMaterial, string stripMaterial, string replaceFillMaterial ) : void

Method Details

BuildAsteroid() public static method

Builds an asteroid Voxel. Voxel detail will be completed by function callbacks. This allows for muti-threading, and generating content via algorithims.
public static BuildAsteroid ( bool multiThread, Vector3I size, string material, string faceMaterial, Action func ) : MyVoxelMap
multiThread bool
size Vector3I
material string
faceMaterial string
func Action
return MyVoxelMap

BuildAsteroidCube() public static method

public static BuildAsteroidCube ( bool multiThread, Vector3I min, Vector3I max, string material, string faceMaterial ) : MyVoxelMap
multiThread bool
min Vector3I
max Vector3I
material string
faceMaterial string
return MyVoxelMap

BuildAsteroidCube() public static method

public static BuildAsteroidCube ( bool multiThread, int width, int height, int depth, string material, string faceMaterial, bool hollow = false, int shellWidth, float safeSize = 0f ) : MyVoxelMap
multiThread bool
width int
height int
depth int
material string
faceMaterial string
hollow bool
shellWidth int
safeSize float
return MyVoxelMap

BuildAsteroidFromModel() public static method

public static BuildAsteroidFromModel ( bool multiThread, string sourceVolumetricFile, string material, string faceMaterial, bool fillObject, string interiorMaterial, ModelTraceVoxel traceType, double scale, System.Windows.Media.Media3D.Transform3D transform ) : MyVoxelMap
multiThread bool
sourceVolumetricFile string
material string
faceMaterial string
fillObject bool
interiorMaterial string
traceType ModelTraceVoxel
scale double
transform System.Windows.Media.Media3D.Transform3D
return MyVoxelMap

BuildAsteroidFromModel() public static method

public static BuildAsteroidFromModel ( bool multiThread, string sourceVolumetricFile, string material, string faceMaterial, bool fillObject, string interiorMaterial, ModelTraceVoxel traceType, double scale, Transform3D transform, double>.Action resetProgress, Action incrementProgress ) : MyVoxelMap
multiThread bool
sourceVolumetricFile string
material string
faceMaterial string
fillObject bool
interiorMaterial string
traceType ModelTraceVoxel
scale double
transform Transform3D
resetProgress double>.Action
incrementProgress Action
return MyVoxelMap

BuildAsteroidSphere() public static method

public static BuildAsteroidSphere ( bool multiThread, double radius, string material, string faceMaterial, bool hollow = false, int shellWidth ) : MyVoxelMap
multiThread bool
radius double
material string
faceMaterial string
hollow bool
shellWidth int
return MyVoxelMap

ConvertAsteroid() public static method

public static ConvertAsteroid ( string loadFile, string saveFile, string defaultMaterial, string material ) : void
loadFile string
saveFile string
defaultMaterial string
material string
return void

ProcessAsteroid() public static method

Processes an asteroid Voxel using function callbacks. This allows for muti-threading, and generating content via algorithims.
public static ProcessAsteroid ( MyVoxelMap voxelMap, bool multiThread, string material, Action func, bool readWrite = true ) : void
voxelMap MyVoxelMap
multiThread bool
material string
func Action
readWrite bool
return void

StripMaterial() public static method

public static StripMaterial ( string loadFile, string saveFile, string defaultMaterial, string stripMaterial, string replaceFillMaterial ) : void
loadFile string
saveFile string
defaultMaterial string
stripMaterial string
replaceFillMaterial string
return void