C# Class VoxelGrid, probe

Inheritance: MonoBehaviour
Show file Open project: AVUIs/probe Class Usage Examples

Public Properties

Property Type Description
resolution int
voxelPrefab GameObject
xNeighbor VoxelGrid,

Public Methods

Method Description
Apply ( VoxelStencil, stencil ) : void
Initialize ( int resolution, float size ) : void

Private Methods

Method Description
AddPentagon ( Vector3 a, Vector3 b, Vector3 c, Vector3 d, Vector3 e ) : void
AddQuad ( Vector3 a, Vector3 b, Vector3 c, Vector3 d ) : void
AddTriangle ( Vector3 a, Vector3 b, Vector3 c ) : void
CreateVoxel ( int i, int x, int y ) : void
Refresh ( ) : void
SetVoxelColors ( ) : void
Triangulate ( ) : void
TriangulateCell ( Voxel, a, Voxel, b, Voxel, c, Voxel, d ) : void
TriangulateCellRows ( ) : void
TriangulateGapCell ( int i ) : void
TriangulateGapRow ( ) : void

Method Details

Apply() public method

public Apply ( VoxelStencil, stencil ) : void
stencil VoxelStencil,
return void

Initialize() public method

public Initialize ( int resolution, float size ) : void
resolution int
size float
return void

Property Details

resolution public property

public int resolution
return int

voxelPrefab public property

public GameObject voxelPrefab
return GameObject

xNeighbor public property

public VoxelGrid, xNeighbor
return VoxelGrid,