class
FFractureMethods
- Module
- Destruction
- Header
#include "Destruction/FractureMethods.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint32_t | kMaxPieces | The most pieces a bake may hold (the piece payload's decode cap). Default 4096. |
Public functions
| Returns | Name | Description |
|---|---|---|
const char* | MethodName | |
bool | MethodFromName | |
const char* | BondName | |
bool | BondFromName | |
std::vector<FFracturePiece> | FractureBox | Carves the box of halfExtents (centred on the origin) by the method. |
std::vector<FFracturePiece> | FractureVolume | The same over any convex volume given as outward-wound face polygons. |
uint32_t | EstimatePieces | How many pieces the settings carve from that box, before carving: exact for Slice and Brick (the cells the pattern lays over the box), the requested count for Uniform and Clustered, an upper bound for Radial (a ring outside the volume carves nothing) and Planar (the most cells n planes can make). |
Function details
MethodName
C++
static const char* MethodName(EFractureMethod method)MethodFromName
C++
static bool MethodFromName(const std::string& name, EFractureMethod& out)BondName
C++
static const char* BondName(EFractureBrickBond bond)BondFromName
C++
static bool BondFromName(const std::string& name, EFractureBrickBond& out)FractureBox
C++
static std::vector<FFracturePiece> FractureBox(const Vec3& halfExtents, const FFractureMethodSettings& settings)Carves the box of halfExtents (centred on the origin) by the method. Uniform carves exactly what FVoronoiFracture::FractureBox does for the same count and seed. Empty when the settings would exceed kMaxPieces.
FractureVolume
C++
static std::vector<FFracturePiece> FractureVolume(const std::vector<std::vector<Vec3>>& faces, const FFractureMethodSettings& settings)The same over any convex volume given as outward-wound face polygons.
EstimatePieces
C++
static uint32_t EstimatePieces(const Vec3& halfExtents, const FFractureMethodSettings& settings)How many pieces the settings carve from that box, before carving: exact for Slice and Brick (the cells the pattern lays over the box), the requested count for Uniform and Clustered, an upper bound for Radial (a ring outside the volume carves nothing) and Planar (the most cells n planes can make).
Generated from Destruction/FractureMethods.h via destruction.json · Oct 26, 2026Version 1.0.0