载入中...
搜索中...
未找到
eve::procgen::detail 命名空间参考

类

struct  CircularArcSampleXZ
 Position and parameter derivative of one arc sample. 更多...
 
struct  CircularArcXZ
 Owning derived XZ arc coefficients; not persistent author state. 更多...
 
struct  EverydaySample
 Internal pigment, physical relief and microfacet variation in a common periodic UV domain. 更多...
 

枚举

enum class  CircularArcReference { Start , End }
 Which endpoint tangent determines a circular span's orientation. 更多...
 

函数

Result< std::array< float, 3 > > scaleCircularTangentToChord (const CircularArcSampleXZ &tangent, double heightDerivative, const std::array< double, 3 > &chord)
 Scale a circular neighbor tangent to its owning 3D marker chord.
 
Result< CircularArcXZ > makeCircularArcXZ (double ax, double az, double bx, double bz, double dx, double dz, CircularArcReference reference)
 Construct a finite circle from two endpoints and one endpoint direction. @ownership Returns owning coefficients without retaining inputs. @thread Synchronous caller; no callbacks or mutable services. @cost Constant span-sized geometry setup with trigonometry; reuse coefficients for multiple samples.
 
Result< CircularArcXZ > makeCircularLeadArcXZ (double ax, double az, double bx, double bz, double dx, double dz, double endDx, double endDz)
 Fit a forward straight lead followed by a circle tangent to both neighboring directions. A negative lead emits the endpoint chord; a singular fit retains the one-direction circle contract. @ownership Returns owned derived coefficients; inputs are not retained. @thread Pure synchronous value computation, no callbacks. @cost Constant span-sized geometry setup, amortized over samples.
 
CircularArcSampleXZ sampleCircularArcXZ (const CircularArcXZ &arc, double u)
 Sample validated coefficients with u in [0,1]; endpoints remain exact. @ownership Returns a copied sample; retains nothing. @thread Synchronous caller; no callbacks. @cost Constant arithmetic/trigonometry per sample after span setup.
 
EverydaySample sampleEveryday (EverydayMaterial family, float u, float v, uint32_t seed, int repeats, int bandwidth)
 Pure seeded surface sampling; no state, IO, callbacks or retained borrows.
 

枚举类型说明

◆ CircularArcReference

Which endpoint tangent determines a circular span's orientation.

枚举值
Start 
End 

在文件 SplineCircularArc.h 第 19 行定义.

函数说明

◆ makeCircularArcXZ()

EVENGINE_API_DOMAINS Result< CircularArcXZ > eve::procgen::detail::makeCircularArcXZ ( double  ax,
double  az,
double  bx,
double  bz,
double  dx,
double  dz,
CircularArcReference  reference 
)

Construct a finite circle from two endpoints and one endpoint direction. @ownership Returns owning coefficients without retaining inputs. @thread Synchronous caller; no callbacks or mutable services. @cost Constant span-sized geometry setup with trigonometry; reuse coefficients for multiple samples.

返回
Valid coefficients, including the collinear line limit, or an invalid-geometry diagnostic.

在文件 SplineCircularArc.cpp 第 23 行定义.

引用了 eve::procgen::detail::CircularArcXZ::angle, eve::procgen::detail::CircularArcXZ::ax, eve::procgen::detail::CircularArcXZ::az, eve::procgen::detail::CircularArcXZ::bx, eve::procgen::detail::CircularArcXZ::bz, chord, eve::procgen::detail::CircularArcXZ::cx, eve::procgen::detail::CircularArcXZ::cz, direction, dx, dz, End, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::raster_detail::invalid(), eve::InvalidArgument, eve::procgen::detail::CircularArcXZ::line, maximum, offset, eve::procgen::detail::CircularArcXZ::radius, reference, Start, eve::Result< T >::success(), eve::procgen::detail::CircularArcXZ::sweep, x , 以及 z.

被这些函数引用 makeCircularLeadArcXZ().

◆ makeCircularLeadArcXZ()

EVENGINE_API_DOMAINS Result< CircularArcXZ > eve::procgen::detail::makeCircularLeadArcXZ ( double  ax,
double  az,
double  bx,
double  bz,
double  dx,
double  dz,
double  endDx,
double  endDz 
)

Fit a forward straight lead followed by a circle tangent to both neighboring directions. A negative lead emits the endpoint chord; a singular fit retains the one-direction circle contract. @ownership Returns owned derived coefficients; inputs are not retained. @thread Pure synchronous value computation, no callbacks. @cost Constant span-sized geometry setup, amortized over samples.

返回
Validated coefficients or the existing one-direction invalid-geometry diagnostic.

在文件 SplineCircularArc.cpp 第 59 行定义.

引用了 dx, dz, makeCircularArcXZ(), nx, nz, result , 以及 Start.

◆ sampleCircularArcXZ()

◆ sampleEveryday()

◆ scaleCircularTangentToChord()

EVENGINE_API_DOMAINS Result< std::array< float, 3 > > eve::procgen::detail::scaleCircularTangentToChord ( const CircularArcSampleXZ &  tangent,
double  heightDerivative,
const std::array< double, 3 > &  chord 
)

Scale a circular neighbor tangent to its owning 3D marker chord.

参数
tangentAnalytic XZ arc derivative; borrowed only during this call.
heightDerivativeHeight derivative at the same endpoint.
chordOwning span endpoint differences in double precision.
返回
Owned finite float tangent components, or an invalid/unsupported geometry diagnostic. @thread Pure value computation; callable on any thread with immutable inputs, no callbacks or retained pointers.

在文件 SplineCircularArc.cpp 第 9 行定义.

引用了 chord, distance, eve::procgen::detail::CircularArcSampleXZ::dx, eve::procgen::detail::CircularArcSampleXZ::dz, eve::Diagnostic::error() , 以及 eve::InvalidArgument.