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

类

struct  Chamber
 
struct  Curtain
 
struct  Dripstone
 
struct  EdgeKey
 
struct  EdgeKeyHash
 
struct  EdgeProjection
 
struct  Flowstone
 
struct  QuantizedPoint
 
struct  RisingConduit
 
struct  State
 

类型定义

using Vec3 = CaveHydrologyVec3
 
using PassagePoint = CaveHydrologyPoint
 

函数

uint32_t hash (uint32_t value)
 
float dot (Vec3 a, Vec3 b)
 
Vec3 sub (Vec3 a, Vec3 b)
 
Vec3 add (Vec3 a, Vec3 b)
 
Vec3 mul (Vec3 a, float scale)
 
EdgeKey makeEdgeKey (Vec3 a, Vec3 b)
 
float smoothstep (float edge0, float edge1, float value)
 
float smoothMaximum (float a, float b, float blendRadius)
 
float distanceToSegment (Vec3 point, Vec3 a, Vec3 b)
 
float ellipsoidDistance (Vec3 point, const Chamber &shape)
 
float taperedSegmentDistance (Vec3 point, const Dripstone &shape, float horizontalX=1.f, float horizontalZ=1.f)
 
float flowstoneDistance (Vec3 point, const Flowstone &shape)
 
float curtainDistance (Vec3 point, const Curtain &shape)
 
float latticeNoise (float x, float y, float z, uint32_t seed)
 
Vec3 projectToDensitySurface (Vec3 meshPoint, const std::vector< float > &density, int nx, int ny, int nz)
 
void addFacetedTriangle (MeshBuild &mesh, Vec3 a, Vec3 b, Vec3 c, Vec3 referenceNormal)
 
bool validStyle (const std::string &style)
 
bool validGenesis (const std::string &genesis)
 

类型定义说明

◆ PassagePoint

◆ Vec3

函数说明

◆ add()

◆ addFacetedTriangle()

void eve::procgen::cave_detail::addFacetedTriangle ( MeshBuild &  mesh,
Vec3  a,
Vec3  b,
Vec3  c,
Vec3  referenceNormal 
)

在文件 CaveGeometry.cpp 第 129 行定义.

引用了 a, ab, ac, b, c, dot(), length, mesh, mul(), normal, sub() , 以及 eve::procgen::CaveHydrologyVec3::y.

被这些函数引用 eve::procgen::cave_detail::State::mesh().

◆ curtainDistance()

float eve::procgen::cave_detail::curtainDistance ( Vec3  point,
const Curtain &  shape 
)

在文件 CaveGeometry.cpp 第 82 行定义.

引用了 dot(), n, point, q, shape, sub() , 以及 u.

被这些函数引用 eve::procgen::cave_detail::State::deposit() , 以及 eve::procgen::cave_detail::State::mesh().

◆ distanceToSegment()

float eve::procgen::cave_detail::distanceToSegment ( Vec3  point,
Vec3  a,
Vec3  b 
)

在文件 CaveGeometry.cpp 第 32 行定义.

引用了 a, add(), b, dot(), mul(), point, sub() , 以及 t.

被这些函数引用 eve::procgen::cave_detail::State::sample().

◆ dot()

float eve::procgen::cave_detail::dot ( Vec3  a,
Vec3  b 
)

◆ ellipsoidDistance()

float eve::procgen::cave_detail::ellipsoidDistance ( Vec3  point,
const Chamber &  shape 
)

在文件 CaveGeometry.cpp 第 40 行定义.

引用了 point, q, shape , 以及 sub().

被这些函数引用 eve::procgen::cave_detail::State::sample().

◆ flowstoneDistance()

float eve::procgen::cave_detail::flowstoneDistance ( Vec3  point,
const Flowstone &  shape 
)

在文件 CaveGeometry.cpp 第 69 行定义.

引用了 dot(), n, point, q, shape, sub(), u , 以及 v.

被这些函数引用 eve::procgen::cave_detail::State::deposit() , 以及 eve::procgen::cave_detail::State::mesh().

◆ hash()

uint32_t eve::procgen::cave_detail::hash ( uint32_t  value)

在文件 CaveGeometry.cpp 第 94 行定义.

引用了 value.

◆ latticeNoise()

float eve::procgen::cave_detail::latticeNoise ( float  x,
float  y,
float  z,
uint32_t  seed 
)

在文件 CaveGeometry.cpp 第 102 行定义.

引用了 a, b, h, hash, eve::procgen::raster_detail::sample(), seed, sx, sy, sz, t, x, y , 以及 z.

被这些函数引用 eve::procgen::cave_detail::State::sample().

◆ makeEdgeKey()

EdgeKey eve::procgen::cave_detail::makeEdgeKey ( Vec3  a,
Vec3  b 
)

◆ mul()

Vec3 eve::procgen::cave_detail::mul ( Vec3  a,
float  scale 
)

◆ projectToDensitySurface()

Vec3 eve::procgen::cave_detail::projectToDensitySurface ( Vec3  meshPoint,
const std::vector< float > &  density,
int  nx,
int  ny,
int  nz 
)

◆ smoothMaximum()

float eve::procgen::cave_detail::smoothMaximum ( float  a,
float  b,
float  blendRadius 
)

在文件 CaveGeometry.cpp 第 26 行定义.

引用了 a, b , 以及 h.

被这些函数引用 eve::procgen::cave_detail::State::deposit().

◆ smoothstep()

float eve::procgen::cave_detail::smoothstep ( float  edge0,
float  edge1,
float  value 
)

在文件 CaveGeometry.cpp 第 21 行定义.

引用了 t , 以及 value.

被这些函数引用 eve::procgen::cave_detail::State::sample().

◆ sub()

◆ taperedSegmentDistance()

float eve::procgen::cave_detail::taperedSegmentDistance ( Vec3  point,
const Dripstone &  shape,
float  horizontalX = 1.f,
float  horizontalZ = 1.f 
)

◆ validGenesis()

bool eve::procgen::cave_detail::validGenesis ( const std::string &  genesis)

在文件 CaveGeometry.cpp 第 149 行定义.

被这些函数引用 eve::procgen::cave_detail::State::configure().

◆ validStyle()

bool eve::procgen::cave_detail::validStyle ( const std::string &  style)

在文件 CaveGeometry.cpp 第 145 行定义.

被这些函数引用 eve::procgen::cave_detail::State::configure().