载入中...
搜索中...
未找到
FractureGeometry.h
浏览该文件的文档.
1#pragma once
2#include <cstdint>
3#include <vector>
4#include "common/Export.h"
5#include "common/Result.h"
6namespace eve::physics {
12 std::vector<float> positions;
13 std::vector<std::uint32_t> indices;
14 std::vector<std::uint32_t> materials;
15};
20 std::vector<FractureFragment> fragments;
25 [[nodiscard]] Result<void> validate() const;
26};
27} // namespace eve::physics
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
Owning closed convex fragment in body-local metres; outward triangle winding. Each triangle has mater...
std::vector< std::uint32_t > indices
std::vector< std::uint32_t > materials
Owning, typed mesh payload shared immutably by simulation, clip and renderer. @thread Read-only shari...
std::vector< FractureFragment > fragments