载入中...
搜索中...
未找到
eve::procgen::GeometryStroke类 参考

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()

Result< MeshBuild > eve::procgen::GeometryStroke::buildMeshResult ( ) const

◆ clear()

void eve::procgen::GeometryStroke::clear ( )
noexcept

Clear all input points.

在文件 GeometryStroke.cpp 第 118 行定义.

◆ inputSpace()

std::string_view eve::procgen::GeometryStroke::inputSpace ( ) const
inlinenoexcept

Return the selected input-space name.

在文件 GeometryStroke.h 第 50 行定义.

被这些函数引用 setInputSpaceResult().

◆ pointCount()

int eve::procgen::GeometryStroke::pointCount ( ) const
inlinenoexcept

Return accepted point count.

在文件 GeometryStroke.h 第 46 行定义.

◆ revision()

std::uint64_t eve::procgen::GeometryStroke::revision ( ) const
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()

std::string_view eve::procgen::GeometryStroke::shape ( ) const
inlinenoexcept

Return the selected cross-section name.

在文件 GeometryStroke.h 第 48 行定义.

被这些函数引用 setShapeResult().

◆ 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().


该类的文档由以下文件生成: