载入中...
搜索中...
未找到
RoadBake.cpp 文件参考
#include "procgen/road/RoadBake.h"
#include "procgen/road/RoadBakeInternal.h"
#include "procgen/road/RoadGeometrySourcesInternal.h"
#include "common/Diagnostic.h"
#include "procgen/road/RoadAuthoringInternal.h"
#include "procgen/road/RoadConnectionInternal.h"
#include "procgen/spline/SplinePath.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <functional>
#include <limits>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 
namespace  eve::procgen::road
 
namespace  eve::procgen::road::detail
 

函数

V3 eve::procgen::road::detail::operator+ (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 eve::procgen::road::detail::operator- (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 eve::procgen::road::detail::operator* (V3 a, float s)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::dot (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 eve::procgen::road::detail::cross (V3 a, V3 b)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::length (V3 a)
 Module-private road bake implementation helper.
 
V3 eve::procgen::road::detail::normalize (V3 a)
 Module-private road bake implementation helper.
 
bool eve::procgen::road::detail::isMeshBudgetExceeded (const MeshBuild &mesh, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::junctionTrimDistance (float pathLength, float requestedRadius)
 Module-private road bake implementation helper.
 
int eve::procgen::road::detail::circularArcSegments (float radius, float angle, float maximumError)
 Module-private road bake implementation helper.
 
int eve::procgen::road::detail::quadraticSegments (V3 start, V3 control, V3 end, float angle, float maximumError)
 Module-private road bake implementation helper.
 
Result< SplinePath > eve::procgen::road::detail::edgeToSpline (const RoadEdge &edge)
 Module-private road bake implementation helper.
 
V3 eve::procgen::road::detail::authoredOutwardDirection (const RoadNode &node, const RoadEdge &edge)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::asphaltHalfWidth (const RoadEdge &edge)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::scaledProfileSide (float side, float asphaltHalf, float scale)
 Module-private transverse width transform preserving fixed-width shoulders.
 
float eve::procgen::road::detail::profileAsphaltHalfWidth (const RoadProfile &profile)
 Module-private driving-surface half-width from a generated profile.
 
float eve::procgen::road::detail::maximumAsphaltHalfWidth (const RoadEdge &edge)
 Module-private conservative half-width bound for varying-width junction sockets.
 
float eve::procgen::road::detail::junctionSocketDistance (const RoadNetwork &network, const RoadNode &node, const RoadEdge &edge, float pathLength)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::planeHeight (const JunctionPlane &plane, float x, float z)
 Module-private road bake implementation helper.
 
JunctionPlane eve::procgen::road::detail::fitJunctionPlane (const RoadNetwork &network, const RoadNode &node)
 Module-private road bake implementation helper.
 
Result< void > eve::procgen::road::detail::validateJunctionGeometry (const RoadNetwork &network, const RoadNode &node)
 Module-private road bake implementation helper.
 
void eve::procgen::road::detail::blendFrameToJunctionPlane (SplineFrameSample &frame, const JunctionPlane &plane, float weight)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::signedAreaXZ (const std::vector< V3 > &polygon)
 Module-private road bake implementation helper.
 
float eve::procgen::road::detail::crossXZ (V3 a, V3 b, V3 c)
 Module-private road bake implementation helper.
 
bool eve::procgen::road::detail::isPointInTriangleXZ (V3 p, V3 a, V3 b, V3 c, float orientation)
 Module-private road bake implementation helper.
 
TriangulationStatus eve::procgen::road::detail::triangulateBoundary (const std::vector< V3 > &polygon, std::vector< std::array< std::size_t, 3 > > &triangles, BoundaryPointPolicy boundaryPolicy)
 
float eve::procgen::road::detail::laneCenterOffset (const RoadStyle &style, int lanesForward, int lanesBackward, int laneIndex, RoadLaneDirection direction)
 Module-private road bake implementation helper.
 
void eve::procgen::road::detail::appendBox (MeshBuild &mesh, V3 center, V3 side, V3 up, V3 forward, float hx, float hy, float hz, RoadMaterial material)
 Module-private road bake implementation helper.
 
void eve::procgen::road::detail::appendStripQuad (MeshBuild &mesh, V3 a, V3 b, V3 c, V3 d, V3 normal, float u0, float u1, float v0, float v1, RoadMaterial material, QuadDiagonal diagonal=QuadDiagonal::FirstToThird)
 Emit a bounded strip quad with the selected physical diagonal and unchanged vertex attributes.
 
void eve::procgen::road::detail::appendOrientedQuad (MeshBuild &mesh, V3 a, V3 b, V3 c, V3 d, V3 normal, float u0, float u1, float v0, float v1, RoadMaterial material, QuadDiagonal diagonal)
 Emit a quad whose winding matches normal (mesh3D expects object-space CCW).
 
void eve::procgen::road::detail::appendOrientedTri (MeshBuild &mesh, V3 a, V3 b, V3 c, V3 normal, float uvMeters, RoadMaterial material)
 Module-private road bake implementation helper.
 
Result< void > eve::procgen::road::detail::addDeckAndPiers (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadStyle &style, float halfWidth, float asphaltHalf, bool includePiers, std::size_t budget)
 Module-private road bake implementation helper.
 
Result< void > eve::procgen::road::detail::addLaneMarkings (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadEdge &edge, float pathLength, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
void eve::procgen::road::detail::appendArrow (MeshBuild &mesh, V3 pos, V3 forward, V3 up, float size)
 Module-private road bake implementation helper.
 
Result< SplinePath > eve::procgen::road::detail::edgeSplineForBake (const RoadEdge &edge)
 
float eve::procgen::road::detail::junctionSocketDistanceForBake (const RoadNetwork &network, const RoadNode &node, const RoadEdge &edge, float pathLength)
 
Result< RoadBakeResult > eve::procgen::road::bakeRoadNetwork (const RoadNetwork &network, const RoadBakeOptions &options={})
 Bake every edge, junction platform, pier, marking and navigation overlay.
 

变量说明

◆ a

float a

在文件 RoadBake.cpp 第 689 行定义.

◆ b

float b

在文件 RoadBake.cpp 第 689 行定义.

◆ g

float g

在文件 RoadBake.cpp 第 689 行定义.

◆ r

float r

在文件 RoadBake.cpp 第 689 行定义.