载入中...
搜索中...
未找到
CavePotholes.cpp
浏览该文件的文档.
9CaveHydrologyVec3 add(CaveHydrologyVec3 a, CaveHydrologyVec3 b) { return {a.x + b.x, a.y + b.y, a.z + b.z}; }
11CaveHydrologyVec3 subtract(CaveHydrologyVec3 a, CaveHydrologyVec3 b) { return {a.x - b.x, a.y - b.y, a.z - b.z}; }
31float ellipsoid(CaveHydrologyVec3 point, const CavePotholeSite& site, CaveHydrologyVec3 center, float scale) {
36 return 1.f - smoothstep(0.12f, 1.f, std::sqrt(along * along + lateral * lateral + vertical * vertical));
74 const float radius = trunk[segment].radius + (trunk[segment + 1].radius - trunk[segment].radius) * t;
90CavePotholeSample sampleCavePotholeErosion(CaveHydrologyVec3 point, const std::vector<CavePotholeSite>& sites) {
102 const float secondary = ellipsoid(point, site, secondaryCenter, 0.46f) * site.erosionPotential *
Definition EvpackPointGraphLoader.h:12
std::vector< CavePotholeSite > createCavePotholeSites(const std::vector< CaveHydrologyPoint > &trunk, const std::vector< float > &hydraulicWeights, const std::vector< CaveFracture > &fractures, float apertureVariability, float stressControl, float sedimentLoad, float gravelSize, uint32_t seed)
Derive eddy-pothole sites from intersections of existing fracture planes along the trunk bed.
Definition CavePotholes.cpp:41
CaveFractureSample sampleCaveFracture(const CaveFractureInput &input)
Sample a spatially correlated fracture aperture and stress-split dissolution front.
Definition CaveFractures.cpp:18
CavePotholeSample sampleCavePotholeErosion(CaveHydrologyVec3 point, const std::vector< CavePotholeSite > &sites)
Sample gravel-size-dependent pothole abrasion around derived sites.
Definition CavePotholes.cpp:90
Observable local state of a sampled dissolving fracture.
Definition CaveFractures.h:29
One deterministic structural fracture plane in normalized cave space.
Definition CaveFractures.h:10
Local primary and compound pothole erosion response.
Definition CavePotholes.h:27
One fracture-seeded, sediment-driven eddy pothole on a cave-stream bed.
Definition CavePotholes.h:14