Navigation
API > API/Runtime > API/Runtime/Chaos
A graph used by the constraints system. Supports
- partitioning vertices into connected groups (islands)
- assigning a level to each vertex based on distance from "level 0" vertices
- colorizing vertices
| Name | FColoringGraph |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Joint/ColoringGraph.h |
| Include Path | #include "Chaos/Joint/ColoringGraph.h" |
Syntax
class FColoringGraph
Structs
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Edges | TArray< FEdge > | Chaos/Joint/ColoringGraph.h | ||
| Islands | TArray< FIsland > | Chaos/Joint/ColoringGraph.h | ||
| Vertices | TArray< FVertex > | Chaos/Joint/ColoringGraph.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddEdge
(
int32 VertexIndex0, |
Chaos/Joint/ColoringGraph.h | ||
int32 AddVertex() |
Chaos/Joint/ColoringGraph.h | ||
int32 AddVertices
(
int32 InNumVertices |
Chaos/Joint/ColoringGraph.h | ||
void Colorize () |
Assign a color to all vertices. | Chaos/Joint/ColoringGraph.h | |
int32 GetNumIslands() |
Chaos/Joint/ColoringGraph.h | ||
int32 GetVertexColor
(
int32 VertexIndex |
Chaos/Joint/ColoringGraph.h | ||
int32 GetVertexIsland
(
int32 VertexIndex |
Chaos/Joint/ColoringGraph.h | ||
int32 GetVertexIslandSize
(
int32 VertexIndex |
Chaos/Joint/ColoringGraph.h | ||
int32 GetVertexLevel
(
int32 VertexIndex |
Chaos/Joint/ColoringGraph.h | ||
void Islandize () |
Assign each vertex to an island. | Chaos/Joint/ColoringGraph.h | |
void Levelize () |
Assign a "level" to all vertices. | Chaos/Joint/ColoringGraph.h | |
void ReserveEdges
(
int32 InNumEdges |
Chaos/Joint/ColoringGraph.h | ||
void ReserveVertices
(
int32 InNumVertices |
Chaos/Joint/ColoringGraph.h | ||
void SetVertexLevel
(
int32 VertexIndex, |
Chaos/Joint/ColoringGraph.h |