class

FFractureConnectivity

The connectivity of a fracture, computed from the pieces' geometry so a bake and a live carve answer alike on every peer: two pieces are neighbours when they share a face (coplanar, facing each other, and one face's centre lies inside the other's polygon).

Module
Destruction
Header
#include "Destruction/FractureConnectivity.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
std::vector<std::vector<uint32_t>>BuildAdjacencyadjacency[i] lists the neighbours of piece i.
std::vector<bool>FindAnchoredanchored[i] is true when piece i touches the anchor side of the pieces' shared bounds.
std::vector<bool>FindSupportedsupported[i] is true for every alive piece that reaches an alive anchored piece through alive neighbours.

Function details

BuildAdjacency

C++
static std::vector<std::vector<uint32_t>> BuildAdjacency(const std::vector<FFracturePiece>& pieces, float epsilon = 1e-3f)

adjacency[i] lists the neighbours of piece i.

FindAnchored

C++
static std::vector<bool> FindAnchored(const std::vector<FFracturePiece>& pieces, EDestructionAnchor anchor, float anchorMargin)

anchored[i] is true when piece i touches the anchor side of the pieces' shared bounds. None anchors nothing, so any damage releases the whole set.

FindSupported

C++
static std::vector<bool> FindSupported(const std::vector<std::vector<uint32_t>>& adjacency, const std::vector<bool>& anchored, const std::vector<bool>& alive)

supported[i] is true for every alive piece that reaches an alive anchored piece through alive neighbours. Dead pieces are never supported.

Generated from Destruction/FractureConnectivity.h via destruction.json · Oct 26, 2026Version 1.0.0