C# Class EdgeGraph.Graph

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: famerij/EdgeGraph Class Usage Examples

Public Properties

Property Type Description
edges List
nodes List

Public Methods

Method Description
CleanUpEdges ( ) : void

Checks if there are any edges that have invalid nodes and removes them

ClearPrimitiveSubPrimitives ( int index = -1 ) : void
ExtractMainPrimitives ( float childEdgeWidth ) : void
GeneratePrimitiveSubEdges ( int seed, int index = -1 ) : void
GetEdge ( string id ) : Edge
GetEdgePosition ( string id, bool localSpace = false ) : Vector3
ProcessMinimalCycles ( ) : void
ProcessPrimitiveSubPrimitives ( int index = -1 ) : void
ProcessPrimitives ( int index = -1 ) : void
RemoveNode ( string id ) : void
this ( int index ) : Node
this ( string id ) : Node

Private Methods

Method Description
ClearSubPrimitives ( Primitive p ) : void
GenerateSubEdges ( int seed, Primitive p ) : void
OnDrawGizmosSelected ( ) : void
ProcessSubPrimitives ( Primitive p ) : void
ResetPivot ( ) : void

Method Details

CleanUpEdges() public method

Checks if there are any edges that have invalid nodes and removes them
public CleanUpEdges ( ) : void
return void

ClearPrimitiveSubPrimitives() public method

public ClearPrimitiveSubPrimitives ( int index = -1 ) : void
index int
return void

ExtractMainPrimitives() public method

public ExtractMainPrimitives ( float childEdgeWidth ) : void
childEdgeWidth float
return void

GeneratePrimitiveSubEdges() public method

public GeneratePrimitiveSubEdges ( int seed, int index = -1 ) : void
seed int
index int
return void

GetEdge() public method

public GetEdge ( string id ) : Edge
id string
return Edge

GetEdgePosition() public method

public GetEdgePosition ( string id, bool localSpace = false ) : Vector3
id string
localSpace bool
return Vector3

ProcessMinimalCycles() public method

public ProcessMinimalCycles ( ) : void
return void

ProcessPrimitiveSubPrimitives() public method

public ProcessPrimitiveSubPrimitives ( int index = -1 ) : void
index int
return void

ProcessPrimitives() public method

public ProcessPrimitives ( int index = -1 ) : void
index int
return void

RemoveNode() public method

public RemoveNode ( string id ) : void
id string
return void

this() public method

public this ( int index ) : Node
index int
return Node

this() public method

public this ( string id ) : Node
id string
return Node

Property Details

edges public_oe property

public List edges
return List

nodes public_oe property

public List nodes
return List