载入中...
搜索中...
未找到
VoronoiCook.cpp 文件参考
#include "physics/destruction/cook/VoronoiCook.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <limits>
#include <map>
#include <utility>
#include "asset/CanonicalMesh.h"
#include "physics/destruction/FractureRecipe.h"
#include "physics/destruction/cook/AssemblyFractureSettings.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::physics
 Optional physics backend for vehicle mobility and body attach.
 
namespace  eve::physics::destruction_cook
 

函数

Result< FracturedCollection > eve::physics::destruction_cook::cookVoronoi (const eve::asset::CanonicalMeshData &mesh, const FractureRecipe &recipe)
 Intersect a closed convex source mesh with seeded Voronoi half-spaces.
 
Result< FracturedCollection > eve::physics::destruction_cook::cookVoronoiAssembly (const GeometryCollectionAsset &assembly, const FractureRecipe &recipe)
 Prefracture each box in an authored assembly and preserve declared parent supports. Adjacent child AABBs within 0.04m are welded only across an authored parent edge. @cost Offline repeated convex clipping; amortize once over all animation instances.
 
Result< FracturedCollection > eve::physics::destruction_cook::cookVoronoiAssembly (const GeometryCollectionAsset &assembly, const AssemblyFractureSettings &settings)
 Parameterized assembly cook with per-group/per-component fracture and joint policies. @cost Offline clipping and graph construction; cook once, reuse every saved playback.
 

变量说明

◆ neighbor

◆ points

std::vector<Vec> points

在文件 VoronoiCook.cpp 第 24 行定义.

◆ state

std::uint64_t state

在文件 VoronoiCook.cpp 第 124 行定义.

◆ x

double x = 0

在文件 VoronoiCook.cpp 第 15 行定义.

◆ y

double y = 0

在文件 VoronoiCook.cpp 第 15 行定义.

◆ z

double z = 0

在文件 VoronoiCook.cpp 第 15 行定义.