载入中...
搜索中...
未找到
DeformTrack.cpp
浏览该文件的文档.
21Result<void> bake_detail::validateDeformFrame(const DeformFrame& frame, const DeformTopology& topology,
35Result<DeformTrack> DeformTrack::prepare(std::vector<DeformFrame> frames, const BakeRecipe& recipe) {
46 auto valid = bake_detail::validateDeformFrame(frame, topology, recipe, static_cast<std::uint32_t>(i), previous);
52 DeformTrack(std::make_shared<const Data>(Data{std::move(frames), std::make_shared<const BakeRecipe>(recipe)})));
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Bounded provenance builder for explicit-coordinate baked recordings. @ownership Owns names and conten...
Definition BakeRecipe.h:21
BakeCoordinates coordinates() const noexcept
Current coordinate contract, defaulting to the original metre convention.
Definition BakeRecipe.cpp:69
Result< void > validateSampleTime(std::uint32_t frame, float seconds) const
Validate a sample against the declared fixed-step/stride grid.
Definition BakeRecipe.cpp:170
Immutable connectivity and UV ownership for fixed-topology deformation playback. @ownership Copies sh...
Definition DeformTopology.h:23
std::size_t vertexCount() const noexcept
Number of stable vertex slots.
Definition DeformTopology.cpp:58
Immutable fixed-topology deformation clip, independent of simulation and rendering providers....
Definition DeformTrack.h:25
std::shared_ptr< const BakeRecipe > recipe() const noexcept
Return shared immutable provenance including explicit coordinates.
Definition DeformTrack.cpp:75
DeformTopology topology() const
Return a cheap owning copy of the fixed connectivity and UVs.
Definition DeformTrack.cpp:74
static Result< DeformTrack > prepare(std::vector< DeformFrame > frames, const BakeRecipe &recipe)
Validate matching topology, positions, coordinates and fixed sample grid, then freeze all frames.
Definition DeformTrack.cpp:35
Result< void > sample(float seconds, std::span< DeformPoint > output) const
Interpolate all vertices into an exact-sized caller buffer; no allocation or solver work....
Definition DeformTrack.cpp:54
Result< void > validateDeformFrame(const DeformFrame &frame, const DeformTopology &topology, const BakeRecipe &recipe, std::uint32_t index, float previous)
Definition DeformTrack.cpp:21
@ PlanarPixels
@ InvalidArgument
Definition Container.h:602
Owning snapshot with actual connectivity, stable indexed positions and explicit sample time.
Definition DeformTrack.h:15