载入中...
搜索中...
未找到
MeshAdhereLive.cpp
浏览该文件的文档.
14Result<void> MeshAdhereLive::activateResult(const MeshBuild& sourceA, const MeshBuild& surfaceB) {
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Result< void > setSurfaceResult(const MeshBuild &surfaceB)
Replace surface B (e.g. after pose change baked into mesh space). Marks dirty.
Definition MeshAdhereLive.cpp:64
const MeshContactBlendParams & params() const noexcept
Definition MeshAdhereLive.h:27
Result< void > setSoftSnapPositionsResult(bool enabled) noexcept
Soft position snap defaults true for dynamic fusion.
Definition MeshAdhereLive.cpp:54
const MeshBuild * derivedMesh() const noexcept
Borrow derived mesh; null until first successful evaluate. @ownership Borrowed from this session; cal...
Definition MeshAdhereLive.cpp:106
Result< void > setParamsResult(const MeshContactBlendParams ¶ms)
Definition MeshAdhereLive.cpp:37
Result< MeshBuild > bakeToMeshResult()
Freeze current derived (evaluating if dirty) into an owning MeshBuild and deactivate.
Definition MeshAdhereLive.cpp:136
const MeshBuild * sourceMesh() const noexcept
Borrow immutable source A baseline; null when inactive or empty. @ownership Borrowed from this sessio...
Definition MeshAdhereLive.cpp:122
Result< void > activateResult(const MeshBuild &sourceA, const MeshBuild &surfaceB)
Activate with owning copies of A (movable) and B (surface).
Definition MeshAdhereLive.cpp:14
Result< std::uint64_t > evaluateResult(bool force=false)
Recompute derived mesh when dirty (or force).
Definition MeshAdhereLive.cpp:92
void removeSetup() noexcept
Drop derived state and restore inactive; keeps no derived publication.
Definition MeshAdhereLive.cpp:126
Result< void > setSourceResult(const MeshBuild &sourceA)
Replace source A baseline. Marks dirty.
Definition MeshAdhereLive.cpp:78
Result< MeshBuild > derivedMeshResult() const
Owning snapshot of the current derived mesh (session stays active).
Definition MeshAdhereLive.cpp:110
CPU triangle mesh from procedural mesh recipes (e.g. marching cubes). Positions/normals are xyz-packe...
Definition MeshBuild.h:19
Definition EvpackPointGraphLoader.h:12
Result< MeshBuild > meshContactBlendAgainstSurfaceResult(const MeshBuild &movable, const MeshBuild &surface, const MeshContactBlendParams ¶ms)
Deform movable toward surface only (dynamic adhere / one-way fusion).
Definition MeshContactBlend.cpp:469
Result< MeshBuild > meshAdhereResult(const MeshBuild &sourceA, const MeshBuild &surfaceB, const MeshContactBlendParams ¶ms)
One-shot adhere of A onto B (soft snap on) using contact blend.
Definition MeshAdhereLive.cpp:7
@ InvalidArgument
@ PreconditionViolation
Parameters for contact-band edge and material fusion.
Definition MeshContactBlend.h:22
float normalsBlend
Definition MeshContactBlend.h:26
float materialRadius
Definition MeshContactBlend.h:24
float materialBlend
Definition MeshContactBlend.h:27
bool softSnapPositions
Definition MeshContactBlend.h:30