载入中...
搜索中...
未找到
eve::physics::DeformTrack类 参考

Immutable fixed-topology deformation clip, independent of simulation and rendering providers. @ownership Shares frozen frames and a copied recipe; input mutation or source destruction cannot affect playback. @thread Const access is reentrant with independent output buffers. No callbacks, wall clock reads or solver calls. 更多...

#include <DeformTrack.h>

类

struct  Data
 

Public 成员函数

bool isSameAsset (const DeformTrack &other) const noexcept
 Whether both views share the same frozen asset; constant-time identity query.
 
Result< void > save (std::string_view path) const
 Publish EVEDEFM1 v1 with topology, provenance, frames and whole-file checksum; never overwrite. @cost Linear in asset size plus filesystem barriers; once per baked asset outside playback.
 
Result< void > sample (float seconds, std::span< DeformPoint > output) const
 Interpolate all vertices into an exact-sized caller buffer; no allocation or solver work. @ownership Borrows output only during this call; never retains its address.
 
DeformTopology topology () const
 Return a cheap owning copy of the fixed connectivity and UVs.
 
std::shared_ptr< const BakeRecipe > recipe () const noexcept
 Return shared immutable provenance including explicit coordinates.
 
float duration () const noexcept
 Last sample time in seconds.
 
std::size_t frameCount () const noexcept
 Number of immutable frames.
 

静态 Public 成员函数

static Result< DeformTrack > prepare (std::vector< DeformFrame > frames, const BakeRecipe &recipe)
 Validate matching topology, positions, coordinates and fixed sample grid, then freeze all frames.
 
static Result< DeformTrack > load (std::string_view path)
 Load bounded EVEDEFM1 v1 and validate all data before publishing a clip. @cost Linear in asset size plus validation, once per load outside playback.
 
static Result< DeformTrack > loadForRecipe (std::string_view path, const BakeRecipe &expected)
 Load and compare complete canonical expected provenance before cache admission. @cost Linear in asset size plus validation, once per admission outside playback.
 

详细描述

Immutable fixed-topology deformation clip, independent of simulation and rendering providers. @ownership Shares frozen frames and a copied recipe; input mutation or source destruction cannot affect playback. @thread Const access is reentrant with independent output buffers. No callbacks, wall clock reads or solver calls.

备注
Vertex indices remain stable throughout the clip. Connectivity or UV changes require a new clip.

在文件 DeformTrack.h 第 25 行定义.

成员函数说明

◆ duration()

float eve::physics::DeformTrack::duration ( ) const
noexcept

Last sample time in seconds.

在文件 DeformTrack.cpp 第 76 行定义.

◆ frameCount()

std::size_t eve::physics::DeformTrack::frameCount ( ) const
noexcept

Number of immutable frames.

在文件 DeformTrack.cpp 第 77 行定义.

被这些函数引用 save().

◆ isSameAsset()

bool eve::physics::DeformTrack::isSameAsset ( const DeformTrack &  other) const
inlinenoexcept

Whether both views share the same frozen asset; constant-time identity query.

在文件 DeformTrack.h 第 28 行定义.

◆ load()

Result< DeformTrack > eve::physics::DeformTrack::load ( std::string_view  path)
static

Load bounded EVEDEFM1 v1 and validate all data before publishing a clip. @cost Linear in asset size plus validation, once per load outside playback.

返回
Complete owning clip or failure. Unknown versions and trailing data are rejected; no older schema exists.

在文件 DeformTrackFile.cpp 第 61 行定义.

引用了 eve::physics::bakedAssetContentKey(), bytes, eve::physics::BakeRecipe::decode(), error, eve::Diagnostic::error(), f, eve::Failed, eve::Result< T >::failure(), file, frame, eve::HashMismatch, indices, eve::NotFound, path, payload, eve::physics::DeformTopology::prepare(), prepare(), recipe(), eve::physics::Segments, size, status, topology(), eve::physics::Triangles, uv, v , 以及 vertices.

被这些函数引用 loadForRecipe().

◆ loadForRecipe()

Result< DeformTrack > eve::physics::DeformTrack::loadForRecipe ( std::string_view  path,
const BakeRecipe &  expected 
)
static

Load and compare complete canonical expected provenance before cache admission. @cost Linear in asset size plus validation, once per admission outside playback.

返回
Clip or structured mismatch, malformed-data or filesystem diagnostic; never rebakes implicitly.

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

引用了 eve::physics::BakeRecipe::encode(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::HashMismatch, load(), loaded , 以及 path.

◆ prepare()

Result< DeformTrack > eve::physics::DeformTrack::prepare ( std::vector< DeformFrame >  frames,
const BakeRecipe &  recipe 
)
static

Validate matching topology, positions, coordinates and fixed sample grid, then freeze all frames.

返回
Complete clip or failure. At most 2000000 total vertex samples; no partially published state. @cost Linear in sampled vertices and topology validation; prepare once outside playback.

在文件 DeformTrack.cpp 第 35 行定义.

引用了 eve::Result< T >::failure(), frame, previous, recipe(), eve::Result< T >::success(), topology(), valid, eve::physics::bake_detail::validateDeformFrame() , 以及 eve::physics::DeformTopology::vertexCount().

被这些函数引用 eve::physics::DeformRecording::freeze() , 以及 load().

◆ recipe()

std::shared_ptr< const BakeRecipe > eve::physics::DeformTrack::recipe ( ) const
noexcept

Return shared immutable provenance including explicit coordinates.

在文件 DeformTrack.cpp 第 75 行定义.

被这些函数引用 load(), eve::physics::DeformMeshPresentation::prepare() , 以及 prepare().

◆ sample()

Result< void > eve::physics::DeformTrack::sample ( float  seconds,
std::span< DeformPoint >  output 
) const

Interpolate all vertices into an exact-sized caller buffer; no allocation or solver work. @ownership Borrows output only during this call; never retains its address.

返回
Success or invalid time/output extent; failure leaves output untouched. Time clamps to endpoints. @cost Linear in vertices plus logarithmic frame search, per sampled presentation frame.

在文件 DeformTrack.cpp 第 54 行定义.

引用了 a, b, blend, eve::Result< T >::failure(), fraction, frame, output, eve::Result< T >::success(), time, x , 以及 y.

◆ save()

Result< void > eve::physics::DeformTrack::save ( std::string_view  path) const

Publish EVEDEFM1 v1 with topology, provenance, frames and whole-file checksum; never overwrite. @cost Linear in asset size plus filesystem barriers; once per baked asset outside playback.

返回
Checked publication status using publishBakedAsset durability semantics.

在文件 DeformTrackFile.cpp 第 35 行定义.

引用了 eve::physics::bakedAssetContentKey(), bytes, eve::Result< T >::failure(), frame, frameCount(), index, eve::physics::DeformTopology::indices(), path, point, eve::physics::DeformTopology::primitive(), eve::physics::publishBakedAsset(), eve::physics::Segments, topology(), eve::physics::DeformTopology::uv(), uv, value, eve::physics::DeformTopology::vertexCount() , 以及 word.

◆ topology()

DeformTopology eve::physics::DeformTrack::topology ( ) const

Return a cheap owning copy of the fixed connectivity and UVs.

在文件 DeformTrack.cpp 第 74 行定义.

被这些函数引用 load(), eve::physics::DeformPlayback::prepare(), eve::physics::DeformMeshPresentation::prepare(), prepare() , 以及 save().


该类的文档由以下文件生成: