Immutable owning render-only union of convex dry volumes. No body handles, callbacks, physics mutation or retained input pointers. Rebuild after vessel pose or render-origin changes. Empty means no masking. Concurrent reads are safe. 更多...
#include <OceanHullMask.h>
Public 成员函数 | |
| std::span< const glm::vec4 > | rows () const |
| Borrow packed render-space halfspaces until frame destruction/move. Each volume has seventeen vec4 rows: plane count then up to sixteen normalized planes. Plane equation is dot(xyz, renderPoint) <= w; unused rows are zero. | |
| glm::dvec3 | origin () const |
| World origin subtracted before float projection. | |
| unsigned | size () const |
| Number of dry volumes; at most 32. | |
| EVENGINE_API_DOMAINS bool | contains (glm::dvec3 worldPoint) const |
| Reference fragment classification; nonfinite points are outside, boundary is inside. @cost At most 512 halfspace tests, no allocation; diagnostics/tests rather than buoyancy queries. | |
友元 | |
| class | OceanHullMaskBuilder |
详细描述
Immutable owning render-only union of convex dry volumes. No body handles, callbacks, physics mutation or retained input pointers. Rebuild after vessel pose or render-origin changes. Empty means no masking. Concurrent reads are safe.
在文件 OceanHullMask.h 第 28 行定义.
成员函数说明
◆ contains()
| bool eve::fluids::OceanHullMaskFrame::contains | ( | glm::dvec3 | worldPoint | ) | const |
Reference fragment classification; nonfinite points are outside, boundary is inside. @cost At most 512 halfspace tests, no allocation; diagnostics/tests rather than buoyancy queries.
在文件 OceanHullMask.cpp 第 53 行定义.
引用了 count, finite, first, inside, point, relative , 以及 eve::fluids::ocean_script::vector().
◆ origin()
|
inline |
World origin subtracted before float projection.
在文件 OceanHullMask.h 第 36 行定义.
◆ rows()
|
inline |
Borrow packed render-space halfspaces until frame destruction/move. Each volume has seventeen vec4 rows: plane count then up to sixteen normalized planes. Plane equation is dot(xyz, renderPoint) <= w; unused rows are zero.
在文件 OceanHullMask.h 第 34 行定义.
◆ size()
|
inline |
Number of dry volumes; at most 32.
在文件 OceanHullMask.h 第 38 行定义.
友元及相关函数文档
◆ OceanHullMaskBuilder
|
friend |
在文件 OceanHullMask.h 第 45 行定义.
该类的文档由以下文件生成:
- src/modules/fluids/OceanHullMask.h
- src/modules/fluids/OceanHullMask.cpp