![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Chaos/Levelset.h"#include "Containers/Queue.h"#include "Misc/FileHelper.h"#include "Misc/Paths.h"#include "Async/ParallelFor.h"#include <algorithm>#include <vector>#include "Chaos/ErrorReporter.h"#include "Chaos/MassProperties.h"#include "Chaos/TriangleMesh.h"#include "Chaos/Sphere.h"#include "Chaos/Box.h"#include "Chaos/Capsule.h"#include "Chaos/Convex.h"#include "Chaos/GeometryQueries.h"Namespaces | |
| namespace | Chaos |
Macros | |
| #define | MAX_CLAMP(a, comp, b) (a >= comp ? b : a) |
| #define | MIN_CLAMP(a, comp, b) (a < comp ? b : a) |
| #define | RANGE_CLAMP(a, comp, b) ((a < 0 || comp <= a) ? b : a) |
| #define MAX_CLAMP | ( | a, | |
| comp, | |||
| b | |||
| ) | (a >= comp ? b : a) |
| #define MIN_CLAMP | ( | a, | |
| comp, | |||
| b | |||
| ) | (a < comp ? b : a) |
| #define RANGE_CLAMP | ( | a, | |
| comp, | |||
| b | |||
| ) | ((a < 0 || comp <= a) ? b : a) |
| Chaos::FRealSingle AvgAngleErrorTolerance = 1. |
| Chaos::FRealSingle AvgDistErrorTolerance = 1.f |
| FAutoConsoleVariableRef CVarAvgAngleErrorTolerance(TEXT("p.LevelSetAvgAngleErrorTolerance"), AvgAngleErrorTolerance, TEXT("Average error in of the mesh normal and computed normal on the level set.")) | ( | TEXT("p.LevelSetAvgAngleErrorTolerance") | , |
| AvgAngleErrorTolerance | , | ||
| TEXT("Average error in of the mesh normal and computed normal on the level set.") | |||
| ) |
| FAutoConsoleVariableRef CVarAvgDistErrorTolerance(TEXT("p.LevelSetAvgDistErrorTolerance"), AvgDistErrorTolerance, TEXT("Error tolerance for average distance between the triangles and generated levelset. Note this is a fraction of the average bounding box dimensions.")) | ( | TEXT("p.LevelSetAvgDistErrorTolerance") | , |
| AvgDistErrorTolerance | , | ||
| TEXT("Error tolerance for average distance between the triangles and generated levelset. Note this is a fraction of the average bounding box dimensions.") | |||
| ) |
| FAutoConsoleVariableRef CVarFailureOnHighError(TEXT("p.LevelSetFailureOnHighError"), FailureOnHighError, TEXT("Set level sets with high error to null in the solver")) | ( | TEXT("p.LevelSetFailureOnHighError") | , |
| FailureOnHighError | , | ||
| TEXT("Set level sets with high error to null in the solver") | |||
| ) |
| FAutoConsoleVariableRef CVarMaxDistErrorTolerance(TEXT("p.LevelSetMaxDistErrorTolerance"), MaxDistErrorTolerance, TEXT("Max error for the highest error triangle generated from a levelset. Note this is a fraction of the average bounding box dimensions.")) | ( | TEXT("p.LevelSetMaxDistErrorTolerance") | , |
| MaxDistErrorTolerance | , | ||
| TEXT("Max error for the highest error triangle generated from a levelset. Note this is a fraction of the average bounding box dimensions.") | |||
| ) |
| FAutoConsoleVariableRef CVarNumOverlapCapsuleSamples(TEXT("p.LevelsetOverlapCapsuleSamples"), NumOverlapCapsuleSamples, TEXT("Number of spiral points to generate for levelset-capsule overlaps")) | ( | TEXT("p.LevelsetOverlapCapsuleSamples") | , |
| NumOverlapCapsuleSamples | , | ||
| TEXT("Number of spiral points to generate for levelset-capsule overlaps") | |||
| ) |
| FAutoConsoleVariableRef CVarNumOverlapSphereSamples(TEXT("p.LevelsetOverlapSphereSamples"), NumOverlapSphereSamples, TEXT("Number of spiral points to generate for levelset-sphere overlaps")) | ( | TEXT("p.LevelsetOverlapSphereSamples") | , |
| NumOverlapSphereSamples | , | ||
| TEXT("Number of spiral points to generate for levelset-sphere overlaps") | |||
| ) |
| FAutoConsoleVariableRef CVarOutputFailedLevelSetDebugData(TEXT("p.LevelSetOutputFailedDebugData"), OutputFailedLevelSetDebugData, TEXT("Output debug obj files for level set and mesh when error tolerances are too high")) | ( | TEXT("p.LevelSetOutputFailedDebugData") | , |
| OutputFailedLevelSetDebugData | , | ||
| TEXT("Output debug obj files for level set and mesh when error tolerances are too high") | |||
| ) |
| int32 FailureOnHighError = 0 |
| Chaos::FRealSingle MaxDistErrorTolerance = 1.f |
| int32 NumOverlapCapsuleSamples = 24 |
| int32 NumOverlapSphereSamples = 16 |
| int32 OutputFailedLevelSetDebugData = 0 |