Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FPBDTriangleMeshCollisions
Vertices (and Triangles) are assigned FGIAColors by flood-filling global intersection contours. ContourIndex represents which pair of global contours, up to 31 unique contour pairsthen the contour index will reused. In practice this seems to be enough unique contours. It's OK if multiple contours have the same index as long as their intersecting regions don't interact, which is unlikely. Contours come in pairs representing two regions intersecting (except for "loop" contours where a region of cloth intersects itselfthink pinch regions). These are "Colors" represented by setting the ColorBit to 0 or 1 corresponding with the given contour index.
| Name | FGIAColor |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDTriangleMeshCollisions.h |
| Include Path | #include "Chaos/PBDTriangleMeshCollisions.h" |
Syntax
struct FGIAColor
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BoundaryContourIndex | int32 | Chaos/PBDTriangleMeshCollisions.h | |
| LoopBits | int32 | Chaos/PBDTriangleMeshCollisions.h | |
| LoopContourIndex | int32 | Chaos/PBDTriangleMeshCollisions.h | |
| NonLoopMask | int32 | Chaos/PBDTriangleMeshCollisions.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ColorBits | int32 | Chaos/PBDTriangleMeshCollisions.h | ||
| ContourIndexBits | int32 | Chaos/PBDTriangleMeshCollisions.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasContourColorSet
(
int32 ContourIndex |
Chaos/PBDTriangleMeshCollisions.h | ||
bool IsBoundary() |
Chaos/PBDTriangleMeshCollisions.h | ||
bool IsLoop() |
Chaos/PBDTriangleMeshCollisions.h | ||
void SetBoundary() |
Chaos/PBDTriangleMeshCollisions.h | ||
void SetContourColor
(
int32 ContourIndex, |
Chaos/PBDTriangleMeshCollisions.h | ||
void SetLoop() |
Chaos/PBDTriangleMeshCollisions.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ShouldFlipNormal
(
const FGIAColor& Color0, |
Because they are opposite colors with a shared contour index. | Chaos/PBDTriangleMeshCollisions.h |