Immutable connectivity and UV ownership for fixed-topology deformation playback. @ownership Copies share frozen value storage; vertex indices define stable identities within this topology. @lifetime Spans borrow this topology's shared storage and expire when its final owning copy is destroyed. @thread Const access is reentrant; preparation retains no source pointers, solver, GPU objects or callbacks. 更多...
#include <DeformTopology.h>
类 | |
| struct | Data |
Public 成员函数 | |
| DeformPrimitive | primitive () const noexcept |
| Primitive interpretation of the index stream. | |
| std::size_t | vertexCount () const noexcept |
| Number of stable vertex slots. | |
| std::span< const std::uint32_t > | indices () const noexcept |
| Borrow immutable ordered connectivity, bounded by this shared storage lifetime. | |
| std::span< const DeformUV > | uv () const noexcept |
| Borrow immutable UVs; empty means no UV channel. | |
| std::string_view | key () const noexcept |
| Borrow the precomputed noncryptographic content key; no per-frame hashing or allocation. | |
静态 Public 成员函数 | |
| static Result< DeformTopology > | prepare (DeformPrimitive primitive, std::size_t vertexCount, std::vector< std::uint32_t > indices, std::vector< DeformUV > uv) |
| Validate bounded connectivity and freeze it with a deterministic content identity. | |
详细描述
Immutable connectivity and UV ownership for fixed-topology deformation playback. @ownership Copies share frozen value storage; vertex indices define stable identities within this topology. @lifetime Spans borrow this topology's shared storage and expire when its final owning copy is destroyed. @thread Const access is reentrant; preparation retains no source pointers, solver, GPU objects or callbacks.
- 备注
- A changed index order, winding, vertex count or UV produces a different topology identity.
在文件 DeformTopology.h 第 23 行定义.
成员函数说明
◆ indices()
|
noexcept |
Borrow immutable ordered connectivity, bounded by this shared storage lifetime.
在文件 DeformTopology.cpp 第 59 行定义.
被这些函数引用 prepare() , 以及 eve::physics::DeformTrack::save().
◆ key()
|
noexcept |
Borrow the precomputed noncryptographic content key; no per-frame hashing or allocation.
在文件 DeformTopology.cpp 第 61 行定义.
被这些函数引用 prepare().
◆ prepare()
|
static |
Validate bounded connectivity and freeze it with a deterministic content identity.
- 参数
-
primitive Segment pairs or triangle triples; unknown primitive kinds are rejected. vertexCount Number of stable indexed vertices, in [1, 1048576]. indices Ordered endpoints/corners; at most 6291456 entries, no repeated vertex within a primitive. uv Either empty or exactly one finite UV per vertex; empty explicitly means no UV channel.
- 返回
- Complete owning topology, or failure without publishing partial state. @cost Linear in indices and UVs; prepare once per topology, outside playback.
在文件 DeformTopology.cpp 第 16 行定义.
引用了 eve::physics::bakedAssetContentKey(), bytes, eve::Diagnostic::error(), eve::Result< T >::failure(), index, indices(), eve::InvalidArgument, key(), offset, primitive(), eve::physics::Segments, eve::Result< T >::success(), eve::physics::Triangles, uv(), value, vertexCount() , 以及 word.
被这些函数引用 eve::physics::bake_detail::captureDeformSource() , 以及 eve::physics::DeformTrack::load().
◆ primitive()
|
noexcept |
Primitive interpretation of the index stream.
在文件 DeformTopology.cpp 第 57 行定义.
被这些函数引用 prepare(), eve::physics::DeformMeshPresentation::prepare() , 以及 eve::physics::DeformTrack::save().
◆ uv()
|
noexcept |
Borrow immutable UVs; empty means no UV channel.
在文件 DeformTopology.cpp 第 60 行定义.
被这些函数引用 prepare() , 以及 eve::physics::DeformTrack::save().
◆ vertexCount()
|
noexcept |
Number of stable vertex slots.
在文件 DeformTopology.cpp 第 58 行定义.
被这些函数引用 prepare(), eve::physics::DeformPlayback::prepare(), eve::physics::DeformTrack::prepare() , 以及 eve::physics::DeformTrack::save().
该类的文档由以下文件生成:
- src/modules/physics/backend/bake/DeformTopology.h
- src/modules/physics/backend/bake/DeformTopology.cpp