载入中...
搜索中...
未找到
SoftBodyModel.cpp
浏览该文件的文档.
10 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "sourceMesh must not be empty", "sourceMesh"));
12 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "model must contain particles", "particles"));
17 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "particle position must be finite", "particles[" + std::to_string(index) + "]"));
21 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "surface indices must contain complete triangles", "surfaceIndices"));
24 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "surface index is out of range", "surfaceIndices"));
26 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "surface bindings must not be empty", "surfaceBindings"));
30 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "surface binding particle is out of range", "surfaceBindings"));
32 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "model must contain shape clusters", "clusters"));
36 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "shape cluster must contain at least three particles", "clusters"));
39 eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument, "cluster particle is out of range", "clusters"));
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
@ InvalidArgument
eve::Result< void > validate() const
Validate all finite values, topology indices, bindings and clusters.
Definition SoftBodyModel.cpp:8
std::vector< std::uint32_t > surfaceIndices
Definition SoftBodyModel.h:42
std::vector< SoftBodyModelCluster > clusters
Definition SoftBodyModel.h:44
std::vector< SoftBodyModelParticle > particles
Definition SoftBodyModel.h:41
std::vector< SoftBodyModelSurfaceBinding > surfaceBindings
Definition SoftBodyModel.h:43