类 | |
| 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
|
strong |
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 行定义.
◆ sampleCircularArcXZ()
| EVENGINE_API_DOMAINS CircularArcSampleXZ eve::procgen::detail::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.
在文件 SplineCircularArc.cpp 第 88 行定义.
引用了 angle, 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, c, curve, eve::procgen::detail::CircularArcXZ::cx, eve::procgen::detail::CircularArcXZ::cz, distance, EV_PARAM_CHECK, forward, eve::procgen::detail::CircularArcXZ::leadLength, eve::procgen::detail::CircularArcXZ::leadX, eve::procgen::detail::CircularArcXZ::leadZ, eve::procgen::detail::CircularArcXZ::line, eve::procgen::detail::CircularArcXZ::radius, result, eve::procgen::detail::CircularArcXZ::reversed, s, sampleCircularArcXZ(), eve::procgen::detail::CircularArcXZ::sweep , 以及 u.
被这些函数引用 sampleCircularArcXZ().
◆ sampleEveryday()
| EVENGINE_API_DOMAINS EverydaySample eve::procgen::detail::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.
在文件 EverydayPatterns.cpp 第 46 行定义.
引用了 a, across, eve::procgen::Aluminum, angle, b, c, eve::procgen::CastIron, cell, eve::procgen::Cement, center, eve::procgen::Cloth, count, cx, cy, d, direction, distance, dx, dy, eve::procgen::Glass, grain, h, eve::procgen::NoiseField::hash01(), length, lines, eve::procgen::Marble, eve::procgen::Metal, n, eve::procgen::Paint, eve::procgen::Paper, eve::procgen::NoiseField::periodX, eve::procgen::NoiseField::periodY, phase, eve::procgen::Plastic, pore, position, px, py, radius, eve::procgen::Rubber, seed, eve::procgen::NoiseField::seed, start, eve::procgen::Steel, strength, sx, sy, t, u, v, eve::procgen::NoiseField::valueNoise(), warp, width, eve::procgen::Wood, x , 以及 y.
◆ 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.
- 参数
-
tangent Analytic XZ arc derivative; borrowed only during this call. heightDerivative Height derivative at the same endpoint. chord Owning 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.