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

类

struct  JunctionPlane
 
struct  RoadFrameCache
 
struct  RoadSurfacePolyline
 Borrowed section centers plus owned cumulative lengths, valid only during the owning bake/cache lifetime. 更多...
 
struct  RoadSurfaceRows
 One bake's sole owner of retained road frames and shared scan work; no callbacks or cross-bake reuse. 更多...
 
struct  V3
 

枚举

enum class  TriangulationStatus { Complete , Degenerate }
 Module-private road bake implementation helper. 更多...
 
enum class  BoundaryPointPolicy { IgnoreCollinear , IncludeBoundary }
 
enum class  QuadDiagonal { FirstToThird , SecondToFourth }
 Module-private road bake implementation helper. 更多...
 

函数

void reverseSectionGeometry (std::vector< RoadProfilePoint > &section, bool closed)
 Reflect an owning section and preserve outgoing segment semantics.
 
Result< void > validateSection (const std::vector< RoadProfilePoint > &points, bool closed)
 Validate bounded simple section geometry and semantic material tags.
 
Result< void > validateRoadAuthoring (const RoadStyle &style)
 Validate structural intervals and continuous-facility authoring.
 
void reverseRoadAuthoring (RoadStyle &style)
 Reflect section and interval authoring while preserving physical placement.
 
void reverseFacilityPrefab (RoadFacilityPrefab &prefab)
 Reflect an owned prefab into reverse traversal coordinates, including its segment sequence/window.
 
Result< std::pair< RoadStyle, RoadStyle > > splitRoadAuthoring (const RoadEdge &edge, std::size_t pointIndex)
 Clip/remap normalized arc intervals into owning first/second styles.
 
float roadSurfaceHeight (const RoadStyle &style, float lateral)
 Return custom asphalt height at one unscaled driving lateral position.
 
Result< void > validateFacilityPrefab (const RoadFacilityPrefab &prefab)
 Validate finite source mesh topology and bounded source ranges.
 
V3 operator+ (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 operator- (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 operator* (V3 a, float s)
 Module-private road bake implementation helper.
 
float dot (V3 a, V3 b)
 Module-private road bake implementation helper.
 
V3 cross (V3 a, V3 b)
 Module-private road bake implementation helper.
 
float length (V3 a)
 Module-private road bake implementation helper.
 
V3 normalize (V3 a)
 Module-private road bake implementation helper.
 
bool isMeshBudgetExceeded (const MeshBuild &mesh, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
float junctionTrimDistance (float pathLength, float requestedRadius)
 Module-private road bake implementation helper.
 
int circularArcSegments (float radius, float angle, float maximumError)
 Module-private road bake implementation helper.
 
int quadraticSegments (V3 start, V3 control, V3 end, float angle, float maximumError)
 Module-private road bake implementation helper.
 
Result< SplinePath > edgeToSpline (const RoadEdge &edge)
 Module-private road bake implementation helper.
 
V3 authoredOutwardDirection (const RoadNode &node, const RoadEdge &edge)
 Module-private road bake implementation helper.
 
float asphaltHalfWidth (const RoadEdge &edge)
 Module-private road bake implementation helper.
 
float scaledProfileSide (float side, float asphaltHalf, float scale)
 Module-private transverse width transform preserving fixed-width shoulders.
 
float profileAsphaltHalfWidth (const RoadProfile &profile)
 Module-private driving-surface half-width from a generated profile.
 
float maximumAsphaltHalfWidth (const RoadEdge &edge)
 Module-private conservative half-width bound for varying-width junction sockets.
 
float junctionSocketDistance (const RoadNetwork &network, const RoadNode &node, const RoadEdge &edge, float pathLength)
 Module-private road bake implementation helper.
 
float planeHeight (const JunctionPlane &plane, float x, float z)
 Module-private road bake implementation helper.
 
JunctionPlane fitJunctionPlane (const RoadNetwork &network, const RoadNode &node)
 Module-private road bake implementation helper.
 
Result< void > validateJunctionGeometry (const RoadNetwork &network, const RoadNode &node)
 Module-private road bake implementation helper.
 
void blendFrameToJunctionPlane (SplineFrameSample &frame, const JunctionPlane &plane, float weight)
 Module-private road bake implementation helper.
 
float signedAreaXZ (const std::vector< V3 > &polygon)
 Module-private road bake implementation helper.
 
float crossXZ (V3 a, V3 b, V3 c)
 Module-private road bake implementation helper.
 
bool isPointInTriangleXZ (V3 p, V3 a, V3 b, V3 c, float orientation)
 Module-private road bake implementation helper.
 
TriangulationStatus triangulateBoundary (const std::vector< V3 > &polygon, std::vector< std::array< std::size_t, 3 > > &triangles, BoundaryPointPolicy boundaryPolicy)
 
float laneCenterOffset (const RoadStyle &style, int lanesForward, int lanesBackward, int laneIndex, RoadLaneDirection direction)
 Module-private road bake implementation helper.
 
void 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 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 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 appendOrientedTri (MeshBuild &mesh, V3 a, V3 b, V3 c, V3 normal, float uvMeters, RoadMaterial material)
 Module-private road bake implementation helper.
 
Result< void > 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 > addLaneMarkings (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadEdge &edge, float pathLength, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
void appendArrow (MeshBuild &mesh, V3 pos, V3 forward, V3 up, float size)
 Module-private road bake implementation helper.
 
Result< SplinePath > edgeSplineForBake (const RoadEdge &edge)
 
float junctionSocketDistanceForBake (const RoadNetwork &network, const RoadNode &node, const RoadEdge &edge, float pathLength)
 
Result< void > bakeEdgeGeometry (MeshBuild &mesh, RoadOverlay &overlay, const RoadNetwork &network, const RoadEdge &edge, const RoadBakeOptions &options, const std::unordered_set< std::uint32_t > &activeJunctionNodes, const std::unordered_set< std::uint32_t > &terminalNodes, RoadFrameCache &frameCache)
 Bake one edge.
 
Result< void > validateFacilityRoutes (const RoadNetwork &network, const RoadNode &node)
 Validate explicit one-to-one routes, compatible sections and live incident endpoint ownership.
 
bool isFacilityContinued (const RoadNetwork &network, std::uint32_t nodeId, const RoadEdge &edge, const RoadContinuousFacility &facility)
 Query compatible degree-two facility continuation; no retained peer pointer.
 
Result< void > bakeFacilityContinuations (MeshBuild &mesh, const RoadNetwork &network, const RoadBakeOptions &options, const std::unordered_set< std::uint32_t > &activeNodes)
 Fill compatible continuous-facility gaps across active degree-two junction sockets.
 
ResultRef< const std::vector< SplineFrameSample > > prepareRoadFrames (RoadFrameCache &cache, const SplinePath &path, const RoadEdge &edge, const RoadBakeOptions &options, float length)
 Prepare once per immutable edge/options snapshot. Borrowed result expires with cache destruction. Synchronous bake-owner thread only. At most 4097 frames per edge; scan work shares the network budget.
 
Result< RoadSurfacePolyline > prepareSurfacePolyline (std::span< const SplineFrameSample > frames)
 Prepare a bounded piecewise road-center metric; rejects degenerate segments without publishing output.
 
Result< SplineFrameSample > sampleSurfacePolyline (const RoadSurfacePolyline &path, float distance)
 Sample one owned frame by segment direction; endpoints extrapolate, widths clamp to endpoint values. @cost Logarithmic in retained road rows; no spline scan or allocations per anchor.
 
Result< SplineSample > closestSurfacePolyline (const RoadSurfacePolyline &path, float x, float y, float z)
 Closest owned center sample for collision checks, linear in retained road rows.
 
Result< float > sideTerrainHeight (const RoadSideTerrainRule &rule, eve::IProcgenWorldQuery &query, float x, float z, const ProcgenPoint &pose, const std::array< float, 6 > *assetBounds, const RoadBakeOptions &options, std::size_t &work)
 Bounded height-only projection; provider and options are borrowed synchronously, no callbacks retained.
 
Result< std::vector< SplineFrameSample > > sampleRoadFrames (const SplinePath &path, const RoadEdge &edge, const RoadBakeOptions &options, float length, std::size_t &samplingWork)
 Module-private bounded sampling; zero metric spacing retains explicit fixed interval counts.
 
Result< std::vector< SplineFrameSample > > sampleRoadParametricFrames (const SplinePath &path, const RoadEdge &edge, const RoadBakeOptions &options, std::size_t &samplingWork)
 Module-private bounded parameter scan; pose construction remains owned by SplinePath.
 
Result< void > bakeFacilityPrefab (MeshBuild &mesh, const RoadFacilityPrefab &prefab, const std::vector< SplineFrameSample > &frames, float sourceLow, float sourceHigh, float fullSourceLength, std::size_t budget)
 Clip source triangles into frame slabs and deform their positions and inverse-transpose normals.
 
Result< V3 > sampleSurfaceProfilePoint (const RoadSurfacePolyline &path, float distance, float side, float asphaltHalf)
 Sample a profile-side offset from actual retained row vectors and widths, not a reconstructed normal. @cost Logarithmic row lookup; endpoint offsets clamp while the center extrapolates.
 
template<class T >
Result< T > bakeFail (DiagnosticCode code, std::string message, std::string path={})
 
Result< V3 > sideTerrainNormal (eve::IProcgenWorldQuery &query, float x, float z, const RoadBakeOptions &options, std::size_t &work)
 Borrow the center surface normal with the same network-wide projection budget; no retained provider.
 
Result< void > loftProfileClean (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadProfile &profile, float pathLength, float uvMeters, RoadMaterial asphaltMaterial, std::size_t budget, int subdivisions=1)
 Module-private road bake implementation helper.
 
Result< void > capProfileRing (MeshBuild &mesh, const SplineFrameSample &frame, const RoadProfile &profile, bool outward)
 Module-private road bake implementation helper.
 
void capProfileShoulders (MeshBuild &mesh, const SplineFrameSample &frame, const RoadProfile &profile, bool outward)
 Module-private road bake implementation helper.
 
Result< void > bakeStructuralGeometry (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadEdge &edge, const RoadProfile &profile, float pathLength, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
Result< void > bakeContinuousFacilities (MeshBuild &mesh, const std::vector< SplineFrameSample > &frames, const RoadNetwork &network, const RoadEdge &edge, float pathLength, const RoadBakeOptions &options, const std::unordered_set< std::uint32_t > &activeNodes)
 Sweep continuous facilities and clip them to exact interval/socket boundaries.
 
Result< void > bakeJunction (MeshBuild &mesh, const RoadNetwork &network, const RoadNode &node, const RoadBakeOptions &options)
 Module-private road bake implementation helper.
 
Result< void > bakeTurnOverlays (MeshBuild &mesh, RoadOverlay &overlay, const RoadNetwork &network, const RoadBakeOptions &options, const std::unordered_set< std::uint32_t > &activeJunctionNodes)
 Module-private road bake implementation helper.
 
Result< void > bakePlacementPoints (PointSet &placements, const RoadNetwork &network, const RoadBakeOptions &options, const std::unordered_set< std::uint32_t > &activeJunctionNodes, RoadFrameCache &frameCache)
 Module-private road bake implementation helper.
 
Result< void > bakeTrafficControlPoints (PointSet &placements, const RoadNetwork &network, const RoadBakeOptions &options)
 
Result< void > validateConnectionAsset (const RoadConnection &connection)
 Validate the owned asset, local frames, indexed topology and exact mesh boundary seams.
 
Result< void > validateConnectionBindings (const RoadNetwork &network, const RoadNode &node)
 Validate node-local edge bindings against the sole authoritative graph.
 
float connectionSocketDistance (const RoadNode &node, const RoadEdge &edge, float length)
 Return deterministic arc-distance to the bound custom socket (zero when absent).
 
Result< void > validateConnectionSeams (const RoadNetwork &network, const RoadNode &node)
 Validate actual baked spline sockets against every full custom asset seam.
 
Result< void > bakeCustomConnection (MeshBuild &mesh, const RoadNetwork &network, const RoadNode &node, const RoadBakeOptions &options)
 Append the validated custom connection mesh with its node transform.
 
Result< void > sealRoadGeometrySources (MeshBuild &mesh, std::span< const RoadGeometrySourceSpan > spans)
 Seal producer-owned intervals into full-mesh metadata; synchronous borrowed inputs, atomic metadata write.
 
Result< void > validateTerrainTiles (const std::vector< RoadTerrainTile > &tiles)
 Validate bounded independent channel topologies, normalization and stable resource identities.
 

变量

constexpr std::string_view algorithmRevision = "road-core-2026-10-16-circular-unrealizable-chord-v22"
 

枚举类型说明

◆ BoundaryPointPolicy

枚举值
IgnoreCollinear 
IncludeBoundary 

在文件 RoadBakeInternal.h 第 162 行定义.

◆ QuadDiagonal

Module-private road bake implementation helper.

枚举值
FirstToThird 
SecondToFourth 

在文件 RoadBakeInternal.h 第 176 行定义.

◆ TriangulationStatus

Module-private road bake implementation helper.

枚举值
Complete 
Degenerate 

在文件 RoadBakeInternal.h 第 161 行定义.

函数说明

◆ addDeckAndPiers()

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 
)

◆ addLaneMarkings()

Result< void > eve::procgen::road::detail::addLaneMarkings ( MeshBuild &  mesh,
const std::vector< SplineFrameSample > &  frames,
const RoadEdge &  edge,
float  pathLength,
const RoadBakeOptions &  options 
)

◆ appendArrow()

void eve::procgen::road::detail::appendArrow ( MeshBuild &  mesh,
V3  pos,
V3  forward,
V3  up,
float  size 
)

◆ appendBox()

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.

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

引用了 c, center, corners, f, forward, material, mesh, normals, p, eve::procgen::road::roadMaterialGroup() , 以及 up.

被这些函数引用 addDeckAndPiers().

◆ appendOrientedQuad()

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).

Module-private road bake implementation helper.

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

引用了 a, appendStripQuad(), b, c, cross(), d, diagonal, dot(), material, mesh, n, normal , 以及 normalize().

被这些函数引用 bakeJunction() , 以及 loftProfileClean().

◆ appendOrientedTri()

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.

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

引用了 a, b, c, cross(), dot(), material, mesh, n, normal, normalize() , 以及 eve::procgen::road::roadMaterialGroup().

被这些函数引用 bakeJunction().

◆ appendStripQuad()

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 
)

Emit a bounded strip quad with the selected physical diagonal and unchanged vertex attributes.

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

引用了 a, across, b, c, cross(), d, diagonal, dot(), material, mesh, normal, eve::procgen::road::roadMaterialGroup() , 以及 SecondToFourth.

被这些函数引用 addDeckAndPiers(), addLaneMarkings(), appendOrientedQuad(), bakeEdgeGeometry() , 以及 bakeTurnOverlays().

◆ asphaltHalfWidth()

float eve::procgen::road::detail::asphaltHalfWidth ( const RoadEdge &  edge)

◆ authoredOutwardDirection()

V3 eve::procgen::road::detail::authoredOutwardDirection ( const RoadNode &  node,
const RoadEdge &  edge 
)

Module-private road bake implementation helper.

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

引用了 edge, node, normalize() , 以及 eve::procgen::road::detail::V3::x.

被这些函数引用 bakeJunction(), junctionSocketDistance() , 以及 validateJunctionGeometry().

◆ bakeContinuousFacilities()

Result< void > eve::procgen::road::detail::bakeContinuousFacilities ( MeshBuild &  mesh,
const std::vector< SplineFrameSample > &  frames,
const RoadNetwork &  network,
const RoadEdge &  edge,
float  pathLength,
const RoadBakeOptions &  options,
const std::unordered_set< std::uint32_t > &  activeNodes 
)

◆ bakeCustomConnection()

Result< void > eve::procgen::road::detail::bakeCustomConnection ( MeshBuild &  mesh,
const RoadNetwork &  network,
const RoadNode &  node,
const RoadBakeOptions &  options 
)

Append the validated custom connection mesh with its node transform.

在文件 RoadConnection.cpp 第 172 行定义.

引用了 mesh, n, node, options, p, eve::procgen::road::roadMaterialGroup(), eve::Result< T >::success(), v , 以及 validateConnectionSeams().

被这些函数引用 bakeJunction().

◆ bakeEdgeGeometry()

Result< void > eve::procgen::road::detail::bakeEdgeGeometry ( MeshBuild &  mesh,
RoadOverlay &  overlay,
const RoadNetwork &  network,
const RoadEdge &  edge,
const RoadBakeOptions &  options,
const std::unordered_set< std::uint32_t > &  activeJunctionNodes,
const std::unordered_set< std::uint32_t > &  terminalNodes,
RoadFrameCache &  frameCache 
)

Bake one edge.

在文件 RoadBakeEdges.cpp 第 20 行定义.

引用了 addLaneMarkings(), appendArrow(), appendStripQuad(), eve::procgen::road::RoadPolyline::b, eve::procgen::road::Backward, bakeContinuousFacilities(), bakeStructuralGeometry(), blendFrameToJunctionPlane(), capProfileRing(), capProfileShoulders(), cross(), d, distance, edge, edgeToSpline(), eve::Result< T >::failure(), eve::procgen::road::detail::RoadSurfaceRows::firstVisible, fitJunctionPlane(), eve::procgen::road::Forward, frame, eve::procgen::road::detail::RoadSurfaceRows::frames, eve::procgen::road::RoadPolyline::g, eve::procgen::road::RoadPolyline::inDirection, eve::procgen::road::RoadPolyline::inEdge, eve::procgen::road::RoadPolyline::inLane, junctionSocketDistance(), laneCenterOffset(), eve::procgen::road::RoadOverlay::lanes, eve::procgen::road::detail::RoadSurfaceRows::lastVisible, lateral, length, eve::procgen::road::makeRoadProfile(), mesh, eve::procgen::road::Nav, eve::procgen::road::RoadNetwork::nodeResult(), normalize(), eve::NotFound, options, origin, eve::procgen::road::RoadPolyline::outDirection, pos, prepareRoadFrames(), eve::procgen::road::RoadPolyline::r, roadSurfaceHeight(), eve::procgen::road::RoadPolyline::speedLimitMps, spline, step, eve::Result< T >::success(), eve::procgen::road::detail::RoadFrameCache::surfaces, eve::procgen::road::SurfaceSegments, t, tip, eve::procgen::road::RoadPolyline::trafficPriority, up, eve::procgen::road::RoadPolyline::width, eve::procgen::road::detail::V3::x , 以及 eve::procgen::road::RoadPolyline::xyz.

被这些函数引用 eve::procgen::road::bakeRoadNetwork().

◆ bakeFacilityContinuations()

◆ bakeFacilityPrefab()

Result< void > eve::procgen::road::detail::bakeFacilityPrefab ( MeshBuild &  mesh,
const RoadFacilityPrefab &  prefab,
const std::vector< SplineFrameSample > &  frames,
float  sourceLow,
float  sourceHigh,
float  fullSourceLength,
std::size_t  budget 
)

◆ bakeFail()

template<class T >
Result< T > eve::procgen::road::detail::bakeFail ( DiagnosticCode  code,
std::string  message,
std::string  path = {} 
)

在文件 RoadBakeInternal.h 第 87 行定义.

被这些函数引用 sampleRoadParametricFrames().

◆ bakeJunction()

◆ bakePlacementPoints()

Result< void > eve::procgen::road::detail::bakePlacementPoints ( PointSet &  placements,
const RoadNetwork &  network,
const RoadBakeOptions &  options,
const std::unordered_set< std::uint32_t > &  activeJunctionNodes,
RoadFrameCache &  frameCache 
)

◆ bakeStructuralGeometry()

◆ bakeTrafficControlPoints()

◆ bakeTurnOverlays()

Result< void > eve::procgen::road::detail::bakeTurnOverlays ( MeshBuild &  mesh,
RoadOverlay &  overlay,
const RoadNetwork &  network,
const RoadBakeOptions &  options,
const std::unordered_set< std::uint32_t > &  activeJunctionNodes 
)

◆ blendFrameToJunctionPlane()

◆ capProfileRing()

◆ capProfileShoulders()

void eve::procgen::road::detail::capProfileShoulders ( MeshBuild &  mesh,
const SplineFrameSample &  frame,
const RoadProfile &  profile,
bool  outward 
)

Module-private road bake implementation helper.

Close only curb/sidewalk shoulders at a tip — leave the asphalt U open.

Full capProfileRing draws a dark tip bar across the asphalt that reads as a salmon seam from above on large junction trims. Shoulder-only caps still stop see-through holes at the outer gray edge.

在文件 RoadBakeProfiles.cpp 第 180 行定义.

引用了 begin, capProfileShoulders(), count, end, frame, mesh, normalize(), origin, p, eve::procgen::road::RoadProfile::points, profileAsphaltHalfWidth(), eve::procgen::road::roadMaterialGroup(), scaledProfileSide(), up, eve::procgen::road::detail::V3::x, eve::procgen::road::detail::V3::y , 以及 eve::procgen::road::detail::V3::z.

被这些函数引用 bakeEdgeGeometry() , 以及 capProfileShoulders().

◆ circularArcSegments()

int eve::procgen::road::detail::circularArcSegments ( float  radius,
float  angle,
float  maximumError 
)

Module-private road bake implementation helper.

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

引用了 angle , 以及 radius.

被这些函数引用 bakeJunction().

◆ closestSurfacePolyline()

Result< SplineSample > eve::procgen::road::detail::closestSurfacePolyline ( const RoadSurfacePolyline &  path,
float  x,
float  y,
float  z 
)

Closest owned center sample for collision checks, linear in retained road rows.

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

引用了 a, b, best, dot(), eve::Result< T >::failure(), eve::InvalidArgument, path, sampleSurfacePolyline(), start, eve::Result< T >::success(), t, target, x, eve::procgen::road::detail::V3::x, y , 以及 z.

◆ connectionSocketDistance()

float eve::procgen::road::detail::connectionSocketDistance ( const RoadNode &  node,
const RoadEdge &  edge,
float  pathLength 
)

Return deterministic arc-distance to the bound custom socket (zero when absent).

在文件 RoadConnection.cpp 第 127 行定义.

引用了 edge, length, node , 以及 eve::procgen::road::detail::V3::x.

被这些函数引用 junctionSocketDistance() , 以及 validateConnectionSeams().

◆ cross()

◆ crossXZ()

float eve::procgen::road::detail::crossXZ ( V3  a,
V3  b,
V3  c 
)

Module-private road bake implementation helper.

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

引用了 a, b , 以及 c.

被这些函数引用 isPointInTriangleXZ() , 以及 triangulateBoundary().

◆ dot()

◆ edgeSplineForBake()

Result< SplinePath > eve::procgen::road::detail::edgeSplineForBake ( const RoadEdge &  edge)

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

引用了 edge , 以及 edgeToSpline().

被这些函数引用 bakeTrafficControlPoints().

◆ edgeToSpline()

◆ fitJunctionPlane()

JunctionPlane eve::procgen::road::detail::fitJunctionPlane ( const RoadNetwork &  network,
const RoadNode &  node 
)

Module-private road bake implementation helper.

Fit one bounded road plane through the authored node to all incident trim sockets.

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

引用了 d, dx, dy, dz, edge, eve::procgen::road::RoadNetwork::edges(), edgeToSpline(), frame, junctionSocketDistance(), node, normalize(), spline , 以及 weight.

被这些函数引用 bakeEdgeGeometry(), bakeFacilityContinuations(), bakeJunction(), bakeTurnOverlays() , 以及 validateJunctionGeometry().

◆ isFacilityContinued()

bool eve::procgen::road::detail::isFacilityContinued ( const RoadNetwork &  network,
std::uint32_t  nodeId,
const RoadEdge &  edge,
const RoadContinuousFacility &  facility 
)

Query compatible degree-two facility continuation; no retained peer pointer.

在文件 RoadBakeFacilityLinks.cpp 第 133 行定义.

引用了 edge, facility , 以及 nodeId.

被这些函数引用 bakeContinuousFacilities().

◆ isMeshBudgetExceeded()

bool eve::procgen::road::detail::isMeshBudgetExceeded ( const MeshBuild &  mesh,
const RoadBakeOptions &  options 
)

Module-private road bake implementation helper.

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

引用了 mesh , 以及 options.

被这些函数引用 bakeContinuousFacilities(), eve::procgen::road::bakeRoadNetwork(), bakeStructuralGeometry() , 以及 bakeTurnOverlays().

◆ isPointInTriangleXZ()

bool eve::procgen::road::detail::isPointInTriangleXZ ( V3  p,
V3  a,
V3  b,
V3  c,
float  orientation 
)

Module-private road bake implementation helper.

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

引用了 a, b, c, crossXZ() , 以及 p.

被这些函数引用 triangulateBoundary().

◆ junctionSocketDistance()

◆ junctionSocketDistanceForBake()

float eve::procgen::road::detail::junctionSocketDistanceForBake ( const RoadNetwork &  network,
const RoadNode &  node,
const RoadEdge &  edge,
float  pathLength 
)

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

引用了 edge, junctionSocketDistance() , 以及 node.

被这些函数引用 bakeTrafficControlPoints().

◆ junctionTrimDistance()

float eve::procgen::road::detail::junctionTrimDistance ( float  pathLength,
float  requestedRadius 
)

Module-private road bake implementation helper.

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

引用了 maximum.

被这些函数引用 junctionSocketDistance().

◆ laneCenterOffset()

float eve::procgen::road::detail::laneCenterOffset ( const RoadStyle &  style,
int  lanesForward,
int  lanesBackward,
int  laneIndex,
RoadLaneDirection  direction 
)

Module-private road bake implementation helper.

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

引用了 eve::procgen::road::Backward, direction , 以及 eve::procgen::road::RoadStyle::laneWidth.

被这些函数引用 bakeEdgeGeometry() , 以及 bakeTurnOverlays().

◆ length()

float eve::procgen::road::detail::length ( V3  a)

Module-private road bake implementation helper.

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

引用了 a , 以及 dot().

◆ loftProfileClean()

◆ maximumAsphaltHalfWidth()

float eve::procgen::road::detail::maximumAsphaltHalfWidth ( const RoadEdge &  edge)

Module-private conservative half-width bound for varying-width junction sockets.

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

引用了 asphaltHalfWidth(), eve::procgen::road::CatmullRom, edge, minimum, point , 以及 scale.

被这些函数引用 junctionSocketDistance().

◆ normalize()

◆ operator*()

V3 eve::procgen::road::detail::operator* ( V3  a,
float  s 
)

Module-private road bake implementation helper.

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

引用了 a, s , 以及 eve::procgen::road::detail::V3::x.

◆ operator+()

V3 eve::procgen::road::detail::operator+ ( V3  a,
V3  b 
)

Module-private road bake implementation helper.

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

引用了 a, b , 以及 eve::procgen::road::detail::V3::x.

◆ operator-()

V3 eve::procgen::road::detail::operator- ( V3  a,
V3  b 
)

Module-private road bake implementation helper.

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

引用了 a, b , 以及 eve::procgen::road::detail::V3::x.

◆ planeHeight()

float eve::procgen::road::detail::planeHeight ( const JunctionPlane &  plane,
float  x,
float  z 
)

◆ prepareRoadFrames()

ResultRef< const std::vector< SplineFrameSample > > eve::procgen::road::detail::prepareRoadFrames ( RoadFrameCache &  cache,
const SplinePath &  path,
const RoadEdge &  edge,
const RoadBakeOptions &  options,
float  length 
)

Prepare once per immutable edge/options snapshot. Borrowed result expires with cache destruction. Synchronous bake-owner thread only. At most 4097 frames per edge; scan work shares the network budget.

在文件 RoadSampling.cpp 第 80 行定义.

引用了 edge, found, eve::procgen::road::detail::RoadFrameCache::frames, length, options, path, sampleRoadFrames() , 以及 eve::procgen::road::detail::RoadFrameCache::samplingWork.

被这些函数引用 bakeEdgeGeometry().

◆ prepareSurfacePolyline()

Result< RoadSurfacePolyline > eve::procgen::road::detail::prepareSurfacePolyline ( std::span< const SplineFrameSample >  frames)

Prepare a bounded piecewise road-center metric; rejects degenerate segments without publishing output.

在文件 RoadSurfacePath.cpp 第 7 行定义.

引用了 a, b, eve::procgen::road::detail::RoadSurfacePolyline::frames, eve::InvalidArgument, result, step , 以及 eve::Result< T >::success().

◆ profileAsphaltHalfWidth()

float eve::procgen::road::detail::profileAsphaltHalfWidth ( const RoadProfile &  profile)

Module-private driving-surface half-width from a generated profile.

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

引用了 eve::procgen::road::Asphalt, eve::procgen::road::RoadProfile::closed, count, eve::procgen::road::RoadProfile::explicitMaterials, point, eve::procgen::road::RoadProfile::points , 以及 result.

被这些函数引用 capProfileRing(), capProfileShoulders() , 以及 loftProfileClean().

◆ quadraticSegments()

int eve::procgen::road::detail::quadraticSegments ( V3  start,
V3  control,
V3  end,
float  angle,
float  maximumError 
)

Module-private road bake implementation helper.

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

引用了 angle, end, length , 以及 start.

被这些函数引用 bakeJunction().

◆ reverseFacilityPrefab()

void eve::procgen::road::detail::reverseFacilityPrefab ( RoadFacilityPrefab &  prefab)

Reflect an owned prefab into reverse traversal coordinates, including its segment sequence/window.

在文件 RoadAuthoring.cpp 第 193 行定义.

引用了 length, prefab, start, v , 以及 vertices.

被这些函数引用 bakeFacilityContinuations() , 以及 reverseRoadAuthoring().

◆ reverseRoadAuthoring()

void eve::procgen::road::detail::reverseRoadAuthoring ( RoadStyle &  style)

◆ reverseSectionGeometry()

void eve::procgen::road::detail::reverseSectionGeometry ( std::vector< RoadProfilePoint > &  section,
bool  closed 
)

Reflect an owning section and preserve outgoing segment semantics.

在文件 RoadAuthoring.cpp 第 65 行定义.

引用了 source.

被这些函数引用 bakeFacilityContinuations() , 以及 reverseRoadAuthoring().

◆ roadSurfaceHeight()

float eve::procgen::road::detail::roadSurfaceHeight ( const RoadStyle &  style,
float  lateral 
)

Return custom asphalt height at one unscaled driving lateral position.

在文件 RoadAuthoring.cpp 第 253 行定义.

引用了 a, eve::procgen::road::Asphalt, b, count, eve::procgen::road::RoadStyle::crossSection, eve::procgen::road::RoadStyle::crossSectionClosed , 以及 lateral.

被这些函数引用 addLaneMarkings() , 以及 bakeEdgeGeometry().

◆ sampleRoadFrames()

Result< std::vector< SplineFrameSample > > eve::procgen::road::detail::sampleRoadFrames ( const SplinePath &  path,
const RoadEdge &  edge,
const RoadBakeOptions &  options,
float  length,
std::size_t &  samplingWork 
)

Module-private bounded sampling; zero metric spacing retains explicit fixed interval counts.

在文件 RoadSampling.cpp 第 17 行定义.

引用了 count, distance, edge, eve::InvalidArgument, length, maximum, options, eve::procgen::road::ParametricDistanceTurn, path, eve::PreconditionViolation, required, sampleRoadParametricFrames(), selected, size, spacing, step, target , 以及 turn.

被这些函数引用 prepareRoadFrames().

◆ sampleRoadParametricFrames()

Result< std::vector< SplineFrameSample > > eve::procgen::road::detail::sampleRoadParametricFrames ( const SplinePath &  path,
const RoadEdge &  edge,
const RoadBakeOptions &  options,
std::size_t &  samplingWork 
)

◆ sampleSurfacePolyline()

Result< SplineFrameSample > eve::procgen::road::detail::sampleSurfacePolyline ( const RoadSurfacePolyline &  path,
float  distance 
)

Sample one owned frame by segment direction; endpoints extrapolate, widths clamp to endpoint values. @cost Logarithmic in retained road rows; no spline scan or allocations per anchor.

在文件 RoadSurfacePath.cpp 第 34 行定义.

引用了 a, axis, b, cross(), distance, dot(), end, forward, index, eve::InvalidArgument, length, normalize(), path, result, eve::Result< T >::success(), t, up , 以及 eve::procgen::road::detail::V3::x.

被这些函数引用 closestSurfacePolyline().

◆ sampleSurfaceProfilePoint()

Result< V3 > eve::procgen::road::detail::sampleSurfaceProfilePoint ( const RoadSurfacePolyline &  path,
float  distance,
float  side,
float  asphaltHalf 
)

Sample a profile-side offset from actual retained row vectors and widths, not a reconstructed normal. @cost Logarithmic row lookup; endpoint offsets clamp while the center extrapolates.

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

引用了 a, b, distance, end, index, eve::InvalidArgument, path, scaledProfileSide(), eve::Result< T >::success(), t, eve::procgen::road::detail::V3::x, eve::procgen::road::detail::V3::y , 以及 eve::procgen::road::detail::V3::z.

◆ scaledProfileSide()

float eve::procgen::road::detail::scaledProfileSide ( float  side,
float  asphaltHalf,
float  scale 
)

Module-private transverse width transform preserving fixed-width shoulders.

Compute a finite socket distance whose two mouth corners cannot cross an adjacent arm.

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

引用了 scale.

被这些函数引用 addDeckAndPiers(), bakeContinuousFacilities(), bakeTrafficControlPoints(), capProfileRing(), capProfileShoulders(), loftProfileClean(), sampleSurfaceProfilePoint() , 以及 validateConnectionSeams().

◆ sealRoadGeometrySources()

Result< void > eve::procgen::road::detail::sealRoadGeometrySources ( MeshBuild &  mesh,
std::span< const RoadGeometrySourceSpan >  spans 
)

Seal producer-owned intervals into full-mesh metadata; synchronous borrowed inputs, atomic metadata write.

在文件 RoadGeometrySources.cpp 第 127 行定义.

引用了 mesh, rows, s , 以及 sealRoadGeometrySources().

被这些函数引用 eve::procgen::road::bakeRoadNetwork() , 以及 sealRoadGeometrySources().

◆ sideTerrainHeight()

◆ sideTerrainNormal()

Result< V3 > eve::procgen::road::detail::sideTerrainNormal ( eve::IProcgenWorldQuery &  query,
float  x,
float  z,
const RoadBakeOptions &  options,
std::size_t &  work 
)

Borrow the center surface normal with the same network-wide projection budget; no retained provider.

在文件 RoadPlacementTerrain.cpp 第 7 行定义.

引用了 eve::Result< T >::failure(), hit, eve::InvalidArgument, length, normal, normalize(), eve::NotFound, options, eve::PreconditionViolation, eve::Result< T >::success(), x , 以及 z.

◆ signedAreaXZ()

float eve::procgen::road::detail::signedAreaXZ ( const std::vector< V3 > &  polygon)

Module-private road bake implementation helper.

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

引用了 a, area, b , 以及 eve::procgen::road::detail::V3::x.

被这些函数引用 bakeJunction() , 以及 triangulateBoundary().

◆ splitRoadAuthoring()

Result< std::pair< RoadStyle, RoadStyle > > eve::procgen::road::detail::splitRoadAuthoring ( const RoadEdge &  edge,
std::size_t  pointIndex 
)

◆ triangulateBoundary()

TriangulationStatus eve::procgen::road::detail::triangulateBoundary ( const std::vector< V3 > &  polygon,
std::vector< std::array< std::size_t, 3 > > &  triangles,
BoundaryPointPolicy  boundaryPolicy 
)

Ear clipping keeps every sampled curb-return segment as a hard polygon boundary.

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

引用了 area, Complete, crossXZ(), current, Degenerate, IncludeBoundary, isPointInTriangleXZ(), previous, signedAreaXZ() , 以及 triangles.

被这些函数引用 bakeJunction() , 以及 capProfileRing().

◆ validateConnectionAsset()

◆ validateConnectionBindings()

Result< void > eve::procgen::road::detail::validateConnectionBindings ( const RoadNetwork &  network,
const RoadNode &  node 
)

Validate node-local edge bindings against the sole authoritative graph.

在文件 RoadConnection.cpp 第 110 行定义.

引用了 edge, eve::procgen::road::RoadNetwork::edgeResult(), eve::procgen::road::RoadNetwork::edges(), node, eve::Result< T >::success() , 以及 validateConnectionAsset().

被这些函数引用 validateConnectionSeams().

◆ validateConnectionSeams()

◆ validateFacilityPrefab()

Result< void > eve::procgen::road::detail::validateFacilityPrefab ( const RoadFacilityPrefab &  prefab)

◆ validateFacilityRoutes()

Result< void > eve::procgen::road::detail::validateFacilityRoutes ( const RoadNetwork &  network,
const RoadNode &  node 
)

Validate explicit one-to-one routes, compatible sections and live incident endpoint ownership.

在文件 RoadBakeFacilityLinks.cpp 第 107 行定义.

引用了 a, b, edge, eve::procgen::road::RoadNetwork::edges(), f, eve::InvalidArgument, node, eve::PreconditionViolation , 以及 eve::Result< T >::success().

被这些函数引用 eve::procgen::road::RoadNetwork::validate().

◆ validateJunctionGeometry()

◆ validateRoadAuthoring()

◆ validateSection()

Result< void > eve::procgen::road::detail::validateSection ( const std::vector< RoadProfilePoint > &  points,
bool  closed 
)

Validate bounded simple section geometry and semantic material tags.

在文件 RoadAuthoring.cpp 第 78 行定义.

引用了 a, area, b, c, count, eve::procgen::raster_detail::invalid(), p, points, eve::Result< T >::success(), eve::procgen::road::TunnelPortalAsphalt , 以及 u.

被这些函数引用 validateConnectionAsset() , 以及 validateRoadAuthoring().

◆ validateTerrainTiles()

Result< void > eve::procgen::road::detail::validateTerrainTiles ( const std::vector< RoadTerrainTile > &  tiles)

Validate bounded independent channel topologies, normalization and stable resource identities.

在文件 RoadTerrainWorkspace.cpp 第 116 行定义.

引用了 d, layer, resources, eve::Result< T >::success(), tiles , 以及 v.

被这些函数引用 eve::procgen::road::RoadTerrainWorkspace::initialize().

变量说明

◆ algorithmRevision

constexpr std::string_view eve::procgen::road::detail::algorithmRevision = "road-core-2026-10-16-circular-unrealizable-chord-v22"
inlineconstexpr