Runtime/editor-neutral session that turns an input trail into mesh geometry. 更多...
#include <GeometryStroke.h>
Public 成员函数 | |
| Result< void > | setShapeResult (std::string_view shape) |
| Select quad, triangularPrism, or cube cross-section generation. | |
| Result< void > | setInputSpaceResult (std::string_view inputSpace, float planeY=0.f) |
| Select spatial input or planar input constrained to planeY. | |
| Result< void > | setSizeResult (float width, float depth) |
| Set positive stroke width and depth. | |
| Result< void > | setMinimumSpacingResult (float spacing) |
| Set the non-negative minimum accepted distance between input points. | |
| Result< bool > | addPointResult (float x, float y, float z) |
| Append a finite point; returns false when minimum spacing rejects it. | |
| Result< void > | undoResult () |
| Remove the most recently accepted point. | |
| void | clear () noexcept |
| Clear all input points. | |
| Result< MeshBuild > | buildMeshResult () const |
| Build an owning triangle mesh without mutating the stroke. | |
| int | pointCount () const noexcept |
| Return accepted point count. | |
| std::string_view | shape () const noexcept |
| Return the selected cross-section name. | |
| std::string_view | inputSpace () const noexcept |
| Return the selected input-space name. | |
| std::uint64_t | revision () const noexcept |
| Return monotonic mutation revision. | |
详细描述
Runtime/editor-neutral session that turns an input trail into mesh geometry.
The session is synchronous, owner-thread-only, and retains only copied point values. Callers own input timing and raycasting. Mutations increment a monotonic revision and failures leave the point sequence unchanged.
在文件 GeometryStroke.h 第 26 行定义.
成员函数说明
◆ addPointResult()
| Result< bool > eve::procgen::GeometryStroke::addPointResult | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Append a finite point; returns false when minimum spacing rejects it.
在文件 GeometryStroke.cpp 第 89 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, length, point, previous, eve::Result< T >::success(), x, y , 以及 z.
◆ buildMeshResult()
Build an owning triangle mesh without mutating the stroke.
在文件 GeometryStroke.cpp 第 124 行定义.
引用了 center, eve::Diagnostic::error(), eve::Result< T >::failure(), halfWidth, index, eve::InvalidArgument, output, point, reference, eve::procgen::MeshBuild::setActiveGroup(), side, eve::Result< T >::success() , 以及 up.
◆ clear()
|
noexcept |
Clear all input points.
在文件 GeometryStroke.cpp 第 118 行定义.
◆ inputSpace()
|
inlinenoexcept |
◆ pointCount()
|
inlinenoexcept |
Return accepted point count.
在文件 GeometryStroke.h 第 46 行定义.
◆ revision()
|
inlinenoexcept |
Return monotonic mutation revision.
在文件 GeometryStroke.h 第 52 行定义.
◆ setInputSpaceResult()
| Result< void > eve::procgen::GeometryStroke::setInputSpaceResult | ( | std::string_view | inputSpace, |
| float | planeY = 0.f |
||
| ) |
Select spatial input or planar input constrained to planeY.
在文件 GeometryStroke.cpp 第 51 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), inputSpace(), eve::InvalidArgument, point , 以及 eve::Result< T >::success().
◆ setMinimumSpacingResult()
| Result< void > eve::procgen::GeometryStroke::setMinimumSpacingResult | ( | float | spacing | ) |
Set the non-negative minimum accepted distance between input points.
在文件 GeometryStroke.cpp 第 79 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, spacing , 以及 eve::Result< T >::success().
◆ setShapeResult()
| Result< void > eve::procgen::GeometryStroke::setShapeResult | ( | std::string_view | shape | ) |
Select quad, triangularPrism, or cube cross-section generation.
在文件 GeometryStroke.cpp 第 41 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, shape() , 以及 eve::Result< T >::success().
◆ setSizeResult()
| Result< void > eve::procgen::GeometryStroke::setSizeResult | ( | float | width, |
| float | depth | ||
| ) |
Set positive stroke width and depth.
在文件 GeometryStroke.cpp 第 68 行定义.
引用了 depth, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 width.
◆ shape()
|
inlinenoexcept |
◆ undoResult()
| Result< void > eve::procgen::GeometryStroke::undoResult | ( | ) |
Remove the most recently accepted point.
在文件 GeometryStroke.cpp 第 109 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::NotFound , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/mesh/GeometryStroke.h
- src/modules/procgen/mesh/GeometryStroke.cpp