C# Class Isosurface.AdaptiveDualContouring.OctreeNode

Show file Open project: Lin20/isosurface Class Usage Examples

Public Properties

Property Type Description
children Isosurface.AdaptiveDualContouring.OctreeNode[]
draw_info OctreeDrawInfo
position Vector3
size int
type OctreeNodeType

Public Methods

Method Description
Build ( Vector3 min, int size, float threshold, List vertices, int grid_size ) : int
ConstructLeaf ( List vertices, int grid_size ) : bool
ConstructNodes ( List vertices, int grid_size, int threaded ) : bool
GenerateVertexBuffer ( List vertices ) : void
OctreeNode ( ) : System
ProcessCell ( List indexes ) : void
ProcessEdge ( OctreeNode nodes, int direction, List indexes ) : void
ProcessFace ( OctreeNode nodes, int direction, List indexes ) : void
ProcessIndexes ( OctreeNode nodes, int direction, List indexes ) : void
Simplify ( float threshold, bool randomize = false ) : void

Method Details

Build() public method

public Build ( Vector3 min, int size, float threshold, List vertices, int grid_size ) : int
min Vector3
size int
threshold float
vertices List
grid_size int
return int

ConstructLeaf() public method

public ConstructLeaf ( List vertices, int grid_size ) : bool
vertices List
grid_size int
return bool

ConstructNodes() public method

public ConstructNodes ( List vertices, int grid_size, int threaded ) : bool
vertices List
grid_size int
threaded int
return bool

GenerateVertexBuffer() public method

public GenerateVertexBuffer ( List vertices ) : void
vertices List
return void

OctreeNode() public method

public OctreeNode ( ) : System
return System

ProcessCell() public method

public ProcessCell ( List indexes ) : void
indexes List
return void

ProcessEdge() public static method

public static ProcessEdge ( OctreeNode nodes, int direction, List indexes ) : void
nodes OctreeNode
direction int
indexes List
return void

ProcessFace() public static method

public static ProcessFace ( OctreeNode nodes, int direction, List indexes ) : void
nodes OctreeNode
direction int
indexes List
return void

ProcessIndexes() public static method

public static ProcessIndexes ( OctreeNode nodes, int direction, List indexes ) : void
nodes OctreeNode
direction int
indexes List
return void

Simplify() public method

public Simplify ( float threshold, bool randomize = false ) : void
threshold float
randomize bool
return void

Property Details

children public property

public OctreeNode[],Isosurface.AdaptiveDualContouring children
return Isosurface.AdaptiveDualContouring.OctreeNode[]

draw_info public property

public OctreeDrawInfo,Isosurface.AdaptiveDualContouring draw_info
return OctreeDrawInfo

position public property

public Vector3 position
return Vector3

size public property

public int size
return int

type public property

public OctreeNodeType type
return OctreeNodeType