Prepare CPU reference vertices from the same water view used by rigid bodies. Borrows mesh and water until build returns. They and the view's owners must remain alive and unmodified; do not queue this builder asynchronously or retain across simulation steps. No graphics, physics or resource pointer is retained in the published frame. 更多...
#include <OceanMesh.h>
Public 成员函数 | |
| OceanMeshFrameBuilder (const OceanMeshData &mesh, const OceanWaterView &water) | |
| Borrow immutable topology and synchronized water for this synchronous build. | |
| EVENGINE_API_DOMAINS Result< OceanMeshFrame > | build () const |
| Build an atomic owning vertex projection; invalid queries or degenerate tangents reject the whole frame. | |
Public 属性 | |
| glm::dvec2 | center {0.0} |
| Double-precision world XZ center; continuous camera movement does not change wave phase. | |
| glm::dvec3 | origin {0.0} |
| Render origin subtracted before float conversion; use the same origin for camera and scene. | |
详细描述
Prepare CPU reference vertices from the same water view used by rigid bodies. Borrows mesh and water until build returns. They and the view's owners must remain alive and unmodified; do not queue this builder asynchronously or retain across simulation steps. No graphics, physics or resource pointer is retained in the published frame.
在文件 OceanMesh.h 第 64 行定义.
构造及析构函数说明
◆ OceanMeshFrameBuilder()
|
inline |
Borrow immutable topology and synchronized water for this synchronous build.
在文件 OceanMesh.h 第 67 行定义.
成员函数说明
◆ build()
| Result< OceanMeshFrame > eve::fluids::OceanMeshFrameBuilder::build | ( | ) | const |
Build an atomic owning vertex projection; invalid queries or degenerate tangents reject the whole frame.
- 返回
- Positions and unit normals, or an input/query diagnostic without external mutation. @cost O(vertices * bands); CPU reference/low-quality path, once per render tick, without inverse queries. @thread Const synchronous operation; no callbacks, backend synchronization or global lookups.
在文件 OceanMeshFrame.cpp 第 7 行定义.
引用了 axis, center, eve::Diagnostic::error(), eve::Result< T >::failure(), frame, eve::fluids::OceanWaterView::geometry(), geometry, eve::InvalidArgument, local, normal, offset, eve::fluids::OceanMeshFrame::origin, origin, eve::fluids::OceanMeshData::parameterOffsets, eve::Result< T >::success(), eve::fluids::OceanWaterView::time(), eve::Unsupported, valid, value , 以及 eve::fluids::ocean_script::vector().
类成员变量说明
◆ center
| glm::dvec2 eve::fluids::OceanMeshFrameBuilder::center {0.0} |
Double-precision world XZ center; continuous camera movement does not change wave phase.
在文件 OceanMesh.h 第 69 行定义.
被这些函数引用 build().
◆ origin
| glm::dvec3 eve::fluids::OceanMeshFrameBuilder::origin {0.0} |
Render origin subtracted before float conversion; use the same origin for camera and scene.
在文件 OceanMesh.h 第 71 行定义.
被这些函数引用 build().
该类的文档由以下文件生成:
- src/modules/fluids/OceanMesh.h
- src/modules/fluids/OceanMeshFrame.cpp