FColoringGraph

A graph used by the constraints system.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Joint/ColoringGraph.h

Include

#include "Chaos/Joint/ColoringGraph.h"

Syntax

class FColoringGraph

Remarks

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

Functions

Name Description

Public function

int32

 

AddEdge

(
    int32 VertexIndex0,
    int32 VertexIndex1
)

Public function

int32

 

AddVertex()

Public function

int32

 

AddVertices

(
    int32 InNumVertices
)

Public function

void

 

Colorize()

Assign a color to all vertices.

Public function Const

int32

 

GetNumIslands()

Public function Const

int32

 

GetVertexColor

(
    int32 VertexIndex
)

Public function Const

int32

 

GetVertexIsland

(
    int32 VertexIndex
)

Public function Const

int32

 

GetVertexIslandSize

(
    int32 VertexIndex
)

Public function Const

int32

 

GetVertexLevel

(
    int32 VertexIndex
)

Public function

void

 

Islandize()

Assign each vertex to an island.

Public function

void

 

Levelize()

Assign a "level" to all vertices.

Public function

void

 

ReserveEdges

(
    int32 InNumEdges
)

Public function

void

 

ReserveVertices

(
    int32 InNumVertices
)

Public function

void

 

SetVertexLevel

(
    int32 VertexIndex,
    int32 Level
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss