#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
| int neighbor = -1 |
在文件 VoronoiCook.cpp 第 25 行定义.
被这些函数引用 eve::procgen::MeshDeformationSession::applyBrushGpuResult(), eve::procgen::MeshDeformationSession::applyBrushResult(), eve::procgen::applyTerrainLegacyDistributedErosion(), eve::procgen::applyTerrainLegacyHydraulic(), eve::procgen::applyTerrainLegacySteepestErosion(), eve::procgen::evolveCaveSurfaceByReactivity(), eve::procgen::filterTerrainHeightmapNeighborhood(), eve::physics::ClothModel::fromTriangles(), eve::procgen::generateTerrainVelocityFlowMap(), eve::ui::UIHost::moveFocus(), eve::hexmap::HexSphereTopology::oppositeDirection(), eve::crowd::Crowd::Impl::prepareAvoidanceNeighbors(), eve::crowd::Crowd::Impl::selectAvoidanceVelocity() , 以及 eve::pixelworld_physics::PixelTerrainCollisionCache::sync().
◆ 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 行定义.