FPBDConstraintColor

Generates color information for a single constraint rule in a connection graph.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDConstraintColor.h

Include

#include "Chaos/PBDConstraintColor.h"

Syntax

class FPBDConstraintColor

Remarks

Generates color information for a single constraint rule in a connection graph. Edges with the same color are non-interacting and can safely be processed in parallel.

Constructors

Name Description

Public function

FPBDConstraintColor()

Functions

Name Description

Public function

void

 

ComputeColor

(
    const int32 Island,
    const FPBDConstraintGraph& Constra...,
    uint32 ContainerId
)

Calculate the color information for the specified island.

Public function Const

const FLevel...

 

GetIslandLevelToColorToConstraintListMap

(
    int32 Island
)

Get the Level-Color-ConstraintList map for the specified island.

Public function Const

int

 

GetIslandMaxColor

(
    int32 Island
)

Get the maximum color index used in the specified island.

Public function Const

int

 

GetIslandMaxLevel

(
    int32 Island
)

Get the maximum level index used in the specified island.

Public function

void

 

InitializeColor

(
    const FPBDConstraintGraph& Constra...
)

Initialize the color structures based on the connectivity graph (i.e., reset all color-related node, edge and island data).

Public function

void

 

SetUseContactGraph

(
    bool bInUseContactGraph
)

Typedefs

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