载入中...
搜索中...
未找到
DeformRecording.cpp
浏览该文件的文档.
16 return Diagnostic::error(DiagnosticCode::Failed, "deformation recording allocation failed", "deformRecording");
23Result<DeformRecording> DeformRecording::prepare(const BakeRecipe& recipe, std::size_t sampleBudget) {
31 return Result<DeformRecording>::success(DeformRecording(std::make_unique<Impl>(recipe, sampleBudget)));
39 DiagnosticCode::InvalidArgument, "deformation recording sample budget exceeded", "deformRecording"));
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
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
Bounded owning builder for fixed-topology deformation recordings. @ownership Owns a frozen recipe cop...
Definition DeformRecording.h:15
std::size_t frameCount() const noexcept
Number of successfully accepted frames.
Definition DeformRecording.cpp:62
~DeformRecording()
DeformRecording(DeformRecording &&) noexcept
Result< DeformTrack > freeze() const
Freeze an independent immutable snapshot; the session remains available for further appends....
Definition DeformRecording.cpp:55
Result< void > append(DeformFrame frame)
Validate and append one owning candidate at the next recipe sample time. @ownership Consumes candidat...
Definition DeformRecording.cpp:36
std::size_t sampleCount() const noexcept
Total accepted vertex samples, excluding rejected candidates.
Definition DeformRecording.cpp:63
static Result< DeformRecording > prepare(const BakeRecipe &recipe, std::size_t sampleBudget)
Admit a complete recipe and explicit total vertex-sample budget in [1,2000000]. @cost Linear in bound...
Definition DeformRecording.cpp:23
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 > validateDeformFrame(const DeformFrame &frame, const DeformTopology &topology, const BakeRecipe &recipe, std::uint32_t index, float previous)
Definition DeformTrack.cpp:21
@ InvalidArgument
@ Failed
Definition Container.h:602
Owning snapshot with actual connectivity, stable indexed positions and explicit sample time.
Definition DeformTrack.h:15
Impl(const BakeRecipe &value, std::size_t limit)
Definition DeformRecording.cpp:12
std::vector< DeformFrame > frames
Definition DeformRecording.cpp:11