载入中...
搜索中...
未找到
OceanHullMask.cpp
浏览该文件的文档.
7bool finite(glm::dvec3 p) { return std::isfinite(p.x) && std::isfinite(p.y) && std::isfinite(p.z); }
10 DiagnosticCode::InvalidArgument, "Invalid ocean hull volume or render origin", "fluids.ocean.hull"));
14 if (volumes_.size() > 32 || !finite(origin) || glm::any(glm::greaterThan(glm::abs(origin), glm::dvec3(1e9))))
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
EVENGINE_API_DOMAINS Result< OceanHullMaskFrame > build() const
Validate the entire batch then return its owning render projection.
Definition OceanHullMask.cpp:13
Immutable owning render-only union of convex dry volumes. No body handles, callbacks,...
Definition OceanHullMask.h:28
EVENGINE_API_DOMAINS bool contains(glm::dvec3 worldPoint) const
Reference fragment classification; nonfinite points are outside, boundary is inside....
Definition OceanHullMask.cpp:53
Status invalid(const char *message)
Definition OceanBindingInternal.h:21
@ InvalidArgument