C# Class Isosurface.ManifoldDC.OctreeNode

Show file Open project: Lin20/isosurface Class Usage Examples

Public Properties

Property Type Description
child_index int
children Isosurface.ManifoldDC.OctreeNode[]
corners byte
index int
position Vector3
rnd System.Random
size int
type NodeType
vertices Isosurface.ManifoldDC.Vertex[]

Public Methods

Method Description
ClusterCell ( float error ) : void
ClusterCellBase ( float error ) : void
ClusterEdge ( OctreeNode nodes, int direction, int &surface_index, List collected_vertices ) : void
ClusterFace ( OctreeNode nodes, int direction, int &surface_index, List collected_vertices ) : void
ClusterIndexes ( OctreeNode nodes, int direction, int &max_surface_index, List collected_vertices ) : void
ConstructBase ( int size, float error, List &vertices ) : void
ConstructLeaf ( List &vertices, int &index ) : bool
ConstructNodes ( List vertices, int &n_index, int threaded ) : bool
GatherVertices ( OctreeNode n, List dest, int &surface_index ) : void
GenerateVertexBuffer ( List vertices ) : void
OctreeNode ( ) : System
OctreeNode ( Vector3 position, int size, NodeType type ) : System
ProcessCell ( List indexes, List tri_count, float threshold ) : void
ProcessEdge ( OctreeNode nodes, int direction, List indexes, List tri_count, float threshold ) : void
ProcessFace ( OctreeNode nodes, int direction, List indexes, List tri_count, float threshold ) : void
ProcessIndexes ( OctreeNode nodes, int direction, List indexes, List tri_count, float threshold ) : void
ToString ( ) : string

Private Methods

Method Description
AssignSurface ( List vertices, int from, int to ) : void

Method Details

ClusterCell() public method

public ClusterCell ( float error ) : void
error float
return void

ClusterCellBase() public method

public ClusterCellBase ( float error ) : void
error float
return void

ClusterEdge() public static method

public static ClusterEdge ( OctreeNode nodes, int direction, int &surface_index, List collected_vertices ) : void
nodes OctreeNode
direction int
surface_index int
collected_vertices List
return void

ClusterFace() public static method

public static ClusterFace ( OctreeNode nodes, int direction, int &surface_index, List collected_vertices ) : void
nodes OctreeNode
direction int
surface_index int
collected_vertices List
return void

ClusterIndexes() public static method

public static ClusterIndexes ( OctreeNode nodes, int direction, int &max_surface_index, List collected_vertices ) : void
nodes OctreeNode
direction int
max_surface_index int
collected_vertices List
return void

ConstructBase() public method

public ConstructBase ( int size, float error, List &vertices ) : void
size int
error float
vertices List
return void

ConstructLeaf() public method

public ConstructLeaf ( List &vertices, int &index ) : bool
vertices List
index int
return bool

ConstructNodes() public method

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

GatherVertices() public static method

public static GatherVertices ( OctreeNode n, List dest, int &surface_index ) : void
n OctreeNode
dest List
surface_index int
return void

GenerateVertexBuffer() public method

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

OctreeNode() public method

public OctreeNode ( ) : System
return System

OctreeNode() public method

public OctreeNode ( Vector3 position, int size, NodeType type ) : System
position Vector3
size int
type NodeType
return System

ProcessCell() public method

public ProcessCell ( List indexes, List tri_count, float threshold ) : void
indexes List
tri_count List
threshold float
return void

ProcessEdge() public static method

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

ProcessFace() public static method

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

ProcessIndexes() public static method

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

ToString() public method

public ToString ( ) : string
return string

Property Details

child_index public property

public int child_index
return int

children public property

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

corners public property

public byte corners
return byte

index public property

public int index
return int

position public property

public Vector3 position
return Vector3

rnd public static property

public static Random,System rnd
return System.Random

size public property

public int size
return int

type public property

public NodeType type
return NodeType

vertices public property

public Vertex[],Isosurface.ManifoldDC vertices
return Isosurface.ManifoldDC.Vertex[]