C# Class EdgeGraph.MinimalCycle

Afficher le fichier Open project: famerij/EdgeGraph Class Usage Examples

Méthodes publiques

Méthode Description
DotPerp ( Vector3 v0, Vector3 v1 ) : float
Extract ( List &_nodes, List &_edges, List &_primitives ) : void
ExtractFilament ( Node _n0, Node _n1, List &_nodes, List &_edges, List &_primitives ) : void

Extracts filament consisting of nodes and edges

ExtractPrimitive ( Node _n0, List &_nodes, List &_edges, List &_primitives ) : void

Attempts to find minimal cycles

GetClockwiseMostAdjacent ( Node prev, Node curr, List &_nodes ) : Node
GetCounterClockwiseMostAdjacent ( Node prev, Node curr, List &_nodes ) : Node

Private Methods

Méthode Description
ExtractPrimitivesRecursive ( List &_nodes, List &_edges, List &_primitives, int limit ) : void
SortNodes ( List &_nodes ) : void

Sort nodes by x-axis

Method Details

DotPerp() public static méthode

public static DotPerp ( Vector3 v0, Vector3 v1 ) : float
v0 UnityEngine.Vector3
v1 UnityEngine.Vector3
Résultat float

Extract() public static méthode

public static Extract ( List &_nodes, List &_edges, List &_primitives ) : void
_nodes List
_edges List
_primitives List
Résultat void

ExtractFilament() public static méthode

Extracts filament consisting of nodes and edges
public static ExtractFilament ( Node _n0, Node _n1, List &_nodes, List &_edges, List &_primitives ) : void
_n0 Node
_n1 Node
_nodes List
_edges List
_primitives List
Résultat void

ExtractPrimitive() public static méthode

Attempts to find minimal cycles
public static ExtractPrimitive ( Node _n0, List &_nodes, List &_edges, List &_primitives ) : void
_n0 Node
_nodes List
_edges List
_primitives List
Résultat void

GetClockwiseMostAdjacent() public static méthode

public static GetClockwiseMostAdjacent ( Node prev, Node curr, List &_nodes ) : Node
prev Node
curr Node
_nodes List
Résultat Node

GetCounterClockwiseMostAdjacent() public static méthode

public static GetCounterClockwiseMostAdjacent ( Node prev, Node curr, List &_nodes ) : Node
prev Node
curr Node
_nodes List
Résultat Node