命名空间 | |
| namespace | detail |
类 | |
| struct | BridgeMember |
| One owned editable structural member; width/height are transverse to its longitudinal axis. Round sections use width as diameter. No external object references are retained. 更多... | |
| struct | BridgeParameters |
| Owned bounded authoring parameters; all dimensions are metres, counts are deterministic. 更多... | |
| struct | BridgePlan |
| Transient owning member plan; edit members to customize logic before baking. Not a persistent format. 更多... | |
| struct | BridgePoint |
| Owned world-space position in metres, Y-up. 更多... | |
| class | PreparedRoadGeometrySources |
| Owning validated source snapshot. No mesh pointer survives preparation. Schema eve.procgen.road.geometrySources v1 ignores unknown fields and rejects unsupported versions. The little-endian FNV-1a digest detects stale mesh streams; it is not an authentication mechanism. Source ids are local to the producing bake, not globally qualified author identities. Caller-thread affine, synchronous and callback-free. Re-prepare before applying intervals to a changed mesh. 更多... | |
| struct | RoadBakeOptions |
| Options for baking a road network into mesh + navigation overlays. 更多... | |
| struct | RoadBakeResult |
| Owning bake result: mesh, overlays and generic decoration placement points. 更多... | |
| struct | RoadConnection |
| Owning custom junction asset snapshot; all geometry/ports share one node-local transform. 更多... | |
| struct | RoadConnectionPort |
| Asset port with outward orthonormal frame, full seam section and network-local edge binding. 更多... | |
| struct | RoadConnectionTriangle |
| Material-qualified indexed triangle owned by a custom connection. 更多... | |
| struct | RoadConnectionVertex |
| Owning renderer-neutral custom connection vertex in node-local space. 更多... | |
| struct | RoadContinuousFacility |
| Continuous facility over an authored edge interval; all profiles and prefab meshes are owned values. 更多... | |
| struct | RoadControlPoint |
| One authored control point on a road centerline (world space, Y-up). 更多... | |
| struct | RoadEdge |
| Directed centerline edge with optional reverse lanes. 更多... | |
| struct | RoadEdgeSplitResult |
| Stable identities produced by one atomic edge split. 更多... | |
| struct | RoadFacilityPrefab |
| Owned prefab mesh; local Z in [0,length] deforms along the facility arc. Source range preserves cut geometry on splits. UVs retain the authored source values. 更多... | |
| struct | RoadFacilityRoute |
| One explicit undirected facility route through a node; endpoints belong to incident edges. Each endpoint can occur in one route only. Network owns and validates these identities. 更多... | |
| struct | RoadGeometrySourceSpan |
| Contiguous triangle interval; nonzero ids name author edges/nodes, NetworkDerived uses id zero. 更多... | |
| struct | RoadLaneConnection |
| One legal lane-to-lane connection inside a junction. 更多... | |
| class | RoadNetwork |
| Owning directed road graph with lane connectivity. 更多... | |
| struct | RoadNode |
| Junction node owned by a road network. 更多... | |
| struct | RoadOverlay |
| Owning bake-time overlay snapshot (no pointers into the network). 更多... | |
| struct | RoadPolyline |
| One renderer-neutral polyline chunk for navigation / marking overlays. 更多... | |
| struct | RoadPrefabSegment |
| Optional owned source segment for a prefab's start or end. Empty mesh omits the segment. 更多... | |
| struct | RoadPrefabTriangle |
| Indexed source-prefab triangle with renderer-neutral material. 更多... | |
| struct | RoadPrefabVertex |
| Owned source vertex in prefab-local (side, up, forward) axes, with normal and UV. 更多... | |
| struct | RoadProfile |
| Owning open profile polyline for one edge style and lane layout. 更多... | |
| struct | RoadProfilePoint |
| One 2D profile sample in the edge local (side, up) plane. 更多... | |
| struct | RoadSideAssetBinding |
| Stable asset link at an exact admitted package build; stale resolution fails without substituting newer data. 更多... | |
| struct | RoadSidePlacement |
| Owning rigid-facility placement settings, copied with the road style. Explicit references ignore bake sideObjectOffset. Lateral offset is signed path-right metres, applied after width scaling; vertical offset is world-up metres after terrain selection. Yaw is world-Y degrees added to the resolved orientation before footprint queries. Center emits one stream if either side is enabled, preferring the left role when both are enabled. Missing snapshot settings retain LegacyOutside and zero offsets. No external lifetime or threading state. 更多... | |
| struct | RoadSideTerrainRule |
| Owned side-object ground rule; None height retains road height, while TerrainNormal alignment independently queries ground. 更多... | |
| struct | RoadStructureInterval |
| Normalized arc-distance interval; nonoverlapping, sorted, owned by RoadNetwork. 更多... | |
| struct | RoadStyle |
| Owning cross-section, width policy and structural authoring for one road edge. 更多... | |
| struct | RoadTerrainConformOptions |
| World/grid mapping and bounded blending settings for road-to-terrain conformance. 更多... | |
| struct | RoadTerrainConformReceipt |
| Exact changed samples needed to safely restore one road terrain conformance. @cost Storage, copy and move-destruction work are linear in the number of changed samples. 更多... | |
| struct | RoadTerrainDetail |
| Owned detail raster keyed by the external terrain's stable resource identity. 更多... | |
| class | RoadTerrainPlan |
| Immutable owning per-source terrain write plan prepared from one authoritative network snapshot. Owner-thread only, synchronous. No network, mesh or provider pointers survive preparation. Applying borrows the destination until return and publishes one undo frame; failures leave it unchanged. Shared junction/derived geometry uses the explicit shared policy, never an inferred incident-edge winner. 更多... | |
| struct | RoadTerrainPolicy |
| Owning per-road terrain author policy; copied with styles, presets and history. Owner-thread value with no callbacks or external references. Execution budgets belong to the write request. Disabled policies preserve every channel. Missing historical policy fields use these defaults. 更多... | |
| struct | RoadTerrainTile |
| Renderer-neutral complete tile value, handed into one RoadTerrainWorkspace owner. Splat layers are normalized weights. Hole value one denotes missing terrain. Each raster has its own resolution. External terrain adapters must publish copies from this owner rather than maintain another writable road state. 更多... | |
| struct | RoadTerrainTree |
| Owned terrain tree instance; its stable identity survives removal, undo and save. 更多... | |
| class | RoadTerrainWorkspace |
| Single mutable owner of imported terrain tiles and their complete-channel history. Caller-thread affine, synchronous, callback-free. Imported tiles are owned; mesh inputs are borrowed until return. Returned tile values own storage. Same-build deterministic floating arithmetic, no clocks or RNG. History publishes once after every tile succeeds. Snapshot schema procgen.road.terrain version 2 requires originY; version 1 migrates missing originY to zero. Unknown object fields are ignored; unsupported versions and malformed known fields reject atomically. Restore replaces current data and undo/redo history atomically; no external tile pointer or receipt survives. 更多... | |
| struct | RoadTerrainWrite |
| One synchronous terrain operation; mesh is borrowed until the batch returns, options are copied values. 更多... | |
| struct | RoadTerrainWriteOptions |
| Explicit channel selection for one all-tile atomic write; no implicit optional providers. 更多... | |
枚举 | |
| enum class | BridgeKind { Beam , Slab , Arch , TiedArch , ThroughTruss , DeckTruss , Suspension , CableStayed , Cantilever , Trestle } |
| Visual bridge topology presets; geometry generation performs no structural load analysis. 更多... | |
| enum class | BridgeSection { Box , Round , IBeam , TaperedBox } |
| Section construction shared by all bridge topologies. 更多... | |
| enum class | BridgeMaterial { Concrete , Limestone , PaintedSteel , GalvanizedSteel , Timber , Asphalt , WhitePaint , YellowPaint } |
| Orthogonal surface classification carried by each generated member. 更多... | |
| enum class | BridgeRailing { Metal , Concrete , Masonry , Timber } |
| Editable edge protection rule; presets select the reference's construction. 更多... | |
| enum class | BridgePart { Deck , Surface , Pier , Abutment , Girder , Arch , Truss , Tower , Cable , Hanger , Railing , Marking , Footing , Cap , Sidewalk , Connection , Anchor } |
| Semantic mesh groups, independent of graphics materials. 更多... | |
| enum class | RoadGeometrySourceKind : std::uint8_t { Edge = 0 , Junction = 1 , NetworkDerived = 2 } |
| Source category, scoped to one immutable road bake rather than a live object handle. 更多... | |
| enum class | RoadPathControl : std::uint8_t { Spline = 0 , StraightXZ = 1 , StraightXYZ = 2 , Circular = 3 } |
| Outgoing road span controller; StraightXZ retains smooth height, StraightXYZ is fully linear. 更多... | |
| enum class | RoadMaterial : std::uint8_t { Asphalt = 0 , Curb , Sidewalk , Deck , Pier , Marking , MarkingYellow , Nav , BridgeAsphalt , TunnelAsphalt , Tunnel , TunnelPortalAsphalt } |
| Profile material tags used when lofting a road cross-section. 更多... | |
| enum class | RoadStructureKind : std::uint8_t { Bridge = 0 , Tunnel = 1 } |
| Explicit structural treatment of a bounded road interval. 更多... | |
| enum class | RoadSideTerrainMode : std::uint8_t { None = 0 , Center = 1 , Lowest = 2 , Highest = 3 , Average = 4 } |
| Height-only ground projection of generic side-object anchors; bounds are local horizontal footprint metres. 更多... | |
| enum class | RoadSideAlignment : std::uint8_t { None = 0 , TerrainNormal = 1 , PathForward = 2 , PathNormal = 3 } |
| Owned side-instance orientation rule; height selection remains independently authored. 更多... | |
| enum class | RoadWidthInterpolation : std::uint8_t { Linear = 0 , CatmullRom = 1 } |
| Cross-section and structural style for one road edge. 更多... | |
| enum class | RoadFrameOrientation : std::uint8_t { ParallelTransport = 0 , WorldUp = 1 } |
| Cross-section orientation before authored roll; snapshots missing this field retain transport. 更多... | |
| enum class | RoadRollInterpolation : std::uint8_t { Linear = 0 , SmoothStep = 1 } |
| Crossfall interpolation between authored markers. 更多... | |
| enum class | RoadSideDistribution : std::uint8_t { LegacyCentered = 0 , Fixed = 1 , Average = 2 } |
| Rigid side-anchor distribution; historical snapshots retain the half-spacing phase. Fixed starts at the clipped span start and excludes its end. Average fits a nearest-even, minimum-one interval count and adds the measured .005 metre interval bias. 更多... | |
| enum class | RoadSideReference : std::uint8_t { LegacyOutside = 0 , AsphaltEdges = 1 , Center = 2 } |
| Lateral origin for rigid facilities; LegacyOutside retains historical bake-option offsets. 更多... | |
| enum class | RoadSidePathSampling : std::uint8_t { Analytic = 0 , SurfaceSegments = 1 } |
| Facility path policy; SurfaceSegments follows the road's retained section centers and segment directions. 更多... | |
| enum class | RoadSamplingPolicy : std::uint8_t { MaximumIntervals = 0 , ParametricDistanceTurn = 1 } |
| Owning metric sampling semantics; absent snapshot fields retain MaximumIntervals. 更多... | |
| enum class | RoadJunctionControl : std::uint8_t { Uncontrolled = 0 , Yield , Stop , Signal } |
| Authoritative traffic-control policy applied to every approach of one junction node. 更多... | |
| enum class | RoadLaneDirection : std::uint8_t { Forward = 0 , Backward } |
| Travel direction of a lane relative to the authored edge centerline. 更多... | |
函数 | |
| std::string_view | bridgeKindName (BridgeKind kind) noexcept |
| Static protocol name, or an empty view for an unknown enum; process-lifetime storage, thread-safe. | |
| std::string_view | bridgePartName (BridgePart part) noexcept |
| Static semantic name, or an empty view for an unknown enum; process-lifetime storage, thread-safe. | |
| std::string_view | bridgeMaterialName (BridgeMaterial material) noexcept |
| Static surface name, or an empty view for an unknown enum; process-lifetime storage, thread-safe. | |
| Result< BridgeParameters > | bridgePreset (BridgeKind kind) |
| Return an owning reference-aligned preset; unsupported kinds fail without side effects. | |
| Result< BridgePlan > | planBridge (const BridgeParameters ¶meters) |
| Plan the selected topology without renderer or terrain providers. | |
| Result< MeshBuild > | bakeBridge (const BridgePlan &plan) |
| Bake a validated member plan into independent CPU geometry; upload separately. | |
| Result< BridgeParameters > | bridgeParametersFromParams (const Params ¶ms) |
| Decode recipe parameters into an owning typed authoring value. | |
| Result< void > | applyBridgeRecipeDefaults (Params ¶ms) |
| Atomically fill absent recipe parameters from the selected bridge preset. | |
| Result< RoadBakeResult > | bakeRoadNetwork (const RoadNetwork &network, const RoadBakeOptions &options={}) |
| Bake every edge, junction platform, pier, marking and navigation overlay. | |
| EVENGINE_API_DOMAINS Result< int > | conformHeightmapToRoad (Heightmap &terrain, const MeshBuild &roadMesh, const RoadTerrainConformOptions &options={}) |
| Atomically conform a heightmap to nearby baked road surface triangles. | |
| EVENGINE_API_DOMAINS Result< RoadTerrainConformReceipt > | conformHeightmapToRoadWithReceipt (Heightmap &terrain, const MeshBuild &roadMesh, const RoadTerrainConformOptions &options={}) |
| Atomically conform terrain and return the exact reversible sample delta. | |
| EVENGINE_API_DOMAINS Result< int > | restoreHeightmapFromRoad (Heightmap &terrain, const RoadTerrainConformReceipt &receipt) |
| Atomically restore a conformance receipt if none of its samples became stale. | |
| int | mapLaneByLateralRank (int inLane, int inLaneCount, int outLaneCount) |
| bool | validJunctionControl (RoadJunctionControl control) |
| Result< eve::Value > | captureRoadNetwork (const RoadNetwork &network) |
| Capture validated, owning author data using the editor-compatible roadNetwork schema v1. @ownership The returned value owns all records; no borrowed buffers or derived meshes. @thread Caller synchronizes concurrent edits. No callbacks. @cost Linear in author records and prefab source geometry; reuse the snapshot across consumers. | |
| Result< RoadNetwork > | restoreRoadNetwork (const eve::Value &snapshot) |
| Decode schema v1 privately; unknown fields are ignored and unsupported versions rejected. | |
| EVENGINE_API_DOMAINS Result< void > | setRoadRecipeNetwork (Params ¶ms, const RoadNetwork &network) |
| Store canonical validated author data in the standard recipe's networkSnapshot parameter. @ownership Params takes an owning canonical JSON copy, published only on success. @thread Caller synchronizes Params and the network; no callbacks. @cost Linear in the author graph/source meshes; prepare once and reuse for mesh/artifact/LOD builds. | |
| EVENGINE_API_DOMAINS Result< RoadNetwork > | resolveRoadRecipeNetwork (const Params ¶ms) |
| Resolve the recipe's author snapshot, or its procedural scene when no snapshot was supplied. | |
| const char * | roadMaterialGroup (RoadMaterial material) noexcept |
| Map a material tag to the MeshBuild group name used by the baker. @ownership borrowed — returns a pointer to a static string literal; callers must not free it. @lifetime Program lifetime; the pointer remains valid for the process. | |
| Result< RoadProfile > | makeRoadProfile (const RoadStyle &style, int lanesForward, int lanesBackward) |
| Build a mathematical road cross-section for the given lane counts. | |
| Result< RoadStyle > | makeRailwayStyle (int tracks=1) |
| Build a procedural railway edge style (ballast bed, rails, sleepers). | |
| Result< void > | applyRailwayRoadType (RoadNetwork &network, int tracks=1) |
| Rewrite every edge to a railway style while preserving bridge/tunnel intervals. | |
| Result< RoadBakeResult > | bakeRoadNetworkRecipe (const Params ¶ms) |
| Build the shared road recipe once for mesh, navigation and artifact projections. | |
| bool | generateRoadNetworkMesh (const Params ¶ms, MeshBuild &out, std::string &error) |
| Generate a multi-level interchange mesh from Params (span/height/lanes/seed). | |
| Result< RoadOverlay > | generateRoadNetworkOverlay (const Params ¶ms) |
| Bake navigation overlay for the same Params used by mesh.roadNetwork. | |
| std::unique_ptr< image::ImageData > | generateRoadMarkingsTexture (const Params ¶ms, std::string &error) |
| Pure-function road marking atlas (asphalt + edge + dashed center + zebra). | |
| void | registerRoadMeshRecipes (MeshRecipeRegistry ®istry) |
| Registers road mesh recipes. | |
| void | registerRoadTextureRecipes (TextureRecipeRegistry ®istry) |
| Registers road texture recipes. | |
枚举类型说明
◆ BridgeKind
|
strong |
Visual bridge topology presets; geometry generation performs no structural load analysis.
| 枚举值 | |
|---|---|
| Beam | |
| Slab | |
| Arch | |
| TiedArch | |
| ThroughTruss | |
| DeckTruss | |
| Suspension | |
| CableStayed | |
| Cantilever | |
| Trestle | |
在文件 BridgeGenerator.h 第 12 行定义.
◆ BridgeMaterial
|
strong |
Orthogonal surface classification carried by each generated member.
| 枚举值 | |
|---|---|
| Concrete | |
| Limestone | |
| PaintedSteel | |
| GalvanizedSteel | |
| Timber | |
| Asphalt | |
| WhitePaint | |
| YellowPaint | |
在文件 BridgeGenerator.h 第 27 行定义.
◆ BridgePart
|
strong |
Semantic mesh groups, independent of graphics materials.
| 枚举值 | |
|---|---|
| Deck | |
| Surface | |
| Pier | |
| Abutment | |
| Girder | |
| Arch | |
| Truss | |
| Tower | |
| Cable | |
| Hanger | |
| Railing | |
| Marking | |
| Footing | |
| Cap | |
| Sidewalk | |
| Connection | |
| Anchor | |
在文件 BridgeGenerator.h 第 40 行定义.
◆ BridgeRailing
|
strong |
Editable edge protection rule; presets select the reference's construction.
| 枚举值 | |
|---|---|
| Metal | |
| Concrete | |
| Masonry | |
| Timber | |
在文件 BridgeGenerator.h 第 38 行定义.
◆ BridgeSection
|
strong |
Section construction shared by all bridge topologies.
| 枚举值 | |
|---|---|
| Box | |
| Round | |
| IBeam | |
| TaperedBox | |
在文件 BridgeGenerator.h 第 25 行定义.
◆ RoadFrameOrientation
|
strong |
Cross-section orientation before authored roll; snapshots missing this field retain transport.
| 枚举值 | |
|---|---|
| ParallelTransport | |
| WorldUp | |
在文件 RoadTypes.h 第 151 行定义.
◆ RoadGeometrySourceKind
|
strong |
Source category, scoped to one immutable road bake rather than a live object handle.
| 枚举值 | |
|---|---|
| Edge | |
| Junction | |
| NetworkDerived | |
在文件 RoadGeometrySources.h 第 12 行定义.
◆ RoadJunctionControl
|
strong |
Authoritative traffic-control policy applied to every approach of one junction node.
在文件 RoadTypes.h 第 232 行定义.
◆ RoadLaneDirection
|
strong |
Travel direction of a lane relative to the authored edge centerline.
| 枚举值 | |
|---|---|
| Forward | Travels from RoadEdge::from to RoadEdge::to. |
| Backward | Travels from RoadEdge::to to RoadEdge::from. |
在文件 RoadTypes.h 第 304 行定义.
◆ RoadMaterial
|
strong |
Profile material tags used when lofting a road cross-section.
| 枚举值 | |
|---|---|
| Asphalt | |
| Curb | |
| Sidewalk | |
| Deck | |
| Pier | |
| Marking | |
| MarkingYellow | |
| Nav | |
| BridgeAsphalt | |
| TunnelAsphalt | |
| Tunnel | |
| TunnelPortalAsphalt | Driving surface inside an authored tunnel portal footprint. |
在文件 RoadTypes.h 第 37 行定义.
◆ RoadPathControl
|
strong |
Outgoing road span controller; StraightXZ retains smooth height, StraightXYZ is fully linear.
| 枚举值 | |
|---|---|
| Spline | |
| StraightXZ | |
| StraightXYZ | |
| Circular | |
在文件 RoadTypes.h 第 16 行定义.
◆ RoadRollInterpolation
|
strong |
◆ RoadSamplingPolicy
|
strong |
Owning metric sampling semantics; absent snapshot fields retain MaximumIntervals.
| 枚举值 | |
|---|---|
| MaximumIntervals | |
| ParametricDistanceTurn | |
在文件 RoadTypes.h 第 179 行定义.
◆ RoadSideAlignment
|
strong |
Owned side-instance orientation rule; height selection remains independently authored.
| 枚举值 | |
|---|---|
| None | |
| TerrainNormal | |
| PathForward | |
| PathNormal | |
在文件 RoadTypes.h 第 127 行定义.
◆ RoadSideDistribution
|
strong |
Rigid side-anchor distribution; historical snapshots retain the half-spacing phase. Fixed starts at the clipped span start and excludes its end. Average fits a nearest-even, minimum-one interval count and adds the measured .005 metre interval bias.
| 枚举值 | |
|---|---|
| LegacyCentered | |
| Fixed | |
| Average | |
在文件 RoadTypes.h 第 158 行定义.
◆ RoadSidePathSampling
|
strong |
Facility path policy; SurfaceSegments follows the road's retained section centers and segment directions.
| 枚举值 | |
|---|---|
| Analytic | |
| SurfaceSegments | |
在文件 RoadTypes.h 第 162 行定义.
◆ RoadSideReference
|
strong |
Lateral origin for rigid facilities; LegacyOutside retains historical bake-option offsets.
| 枚举值 | |
|---|---|
| LegacyOutside | |
| AsphaltEdges | |
| Center | |
在文件 RoadTypes.h 第 160 行定义.
◆ RoadSideTerrainMode
|
strong |
Height-only ground projection of generic side-object anchors; bounds are local horizontal footprint metres.
| 枚举值 | |
|---|---|
| None | |
| Center | |
| Lowest | |
| Highest | |
| Average | |
在文件 RoadTypes.h 第 125 行定义.
◆ RoadStructureKind
|
strong |
Explicit structural treatment of a bounded road interval.
| 枚举值 | |
|---|---|
| Bridge | |
| Tunnel | |
在文件 RoadTypes.h 第 60 行定义.
◆ RoadWidthInterpolation
|
strong |
Cross-section and structural style for one road edge.
| 枚举值 | |
|---|---|
| Linear | |
| CatmullRom | |
在文件 RoadTypes.h 第 149 行定义.
函数说明
◆ applyBridgeRecipeDefaults()
| EVENGINE_API_DOMAINS Result< void > eve::procgen::road::applyBridgeRecipeDefaults | ( | Params & | params | ) |
Atomically fill absent recipe parameters from the selected bridge preset.
- 参数
-
params Owner-thread mutable authoring data; explicit overrides are validated and preserved.
- 返回
- Success or a diagnostic without partial mutation; synchronous and reentrant on independent Params. @cost Bounded parameter-map copying and insertion; apply once per edit, before planning.
在文件 BridgeGenerator.cpp 第 816 行定义.
引用了 bridgeKindName(), bridgeParametersFromParams(), eve::Result< T >::failure(), eve::procgen::Params::has(), p, params, eve::procgen::Params::setBool(), eve::procgen::Params::setFloat(), eve::procgen::Params::setInt(), eve::procgen::Params::setString() , 以及 eve::Result< T >::success().
◆ applyRailwayRoadType()
| EVENGINE_API_DOMAINS Result< void > eve::procgen::road::applyRailwayRoadType | ( | RoadNetwork & | network, |
| int | tracks = 1 |
||
| ) |
Rewrite every edge to a railway style while preserving bridge/tunnel intervals.
- 参数
-
network Owning network; mutated only on full success. tracks Parallel track count in [1,2] applied as forward lanes (backward cleared).
- 返回
- Success after reconnecting junction turns, or the first edge/node diagnostic. @cost Linear in edge count plus quadratic turn reconnect per junction; authoring / recipe projection only.
在文件 RoadRailway.cpp 第 121 行定义.
引用了 eve::procgen::road::RoadStyle::automaticStructures, eve::procgen::road::RoadStyle::deckThickness, edge, eve::procgen::road::RoadNetwork::edges(), eve::Result< T >::failure(), eve::procgen::road::RoadEdge::from, eve::procgen::road::RoadNode::id, eve::procgen::road::RoadEdge::id, lanes, makeRailwayStyle(), node, eve::procgen::road::RoadStyle::pierClearance, eve::procgen::road::RoadStyle::pierDepth, eve::procgen::road::RoadStyle::pierSpacing, eve::procgen::road::RoadStyle::pierWidth, eve::procgen::road::RoadStyle::structures, eve::procgen::road::RoadEdge::style, eve::Result< T >::success(), eve::procgen::road::RoadStyle::terrainPolicy, eve::procgen::road::RoadEdge::to , 以及 tracks.
被这些函数引用 resolveRoadRecipeNetwork().
◆ bakeBridge()
| EVENGINE_API_DOMAINS Result< MeshBuild > eve::procgen::road::bakeBridge | ( | const BridgePlan & | plan | ) |
Bake a validated member plan into independent CPU geometry; upload separately.
- 参数
-
plan Borrowed during this synchronous reentrant call; unknown enum values and degenerate members fail.
- 返回
- Owning grouped mesh or diagnostic, with no partial publication. No callbacks/services are used. @cost Linear in member count times section tessellation; amortize by caching until the plan changes.
- 注解
- Maximum 16384 members and 4 million vertex/index elements. Same plan yields deterministic topology; floating-point positions are compared with relative tolerance 1e-5 across platforms.
在文件 BridgeGenerator.cpp 第 616 行定义.
引用了 a, b, Box, bridgeMaterialName(), bridgePartName(), c, eve::procgen::road::BridgePlan::cableSides, center, eve::procgen::road::detail::cross(), d, eve::procgen::road::detail::dot(), elements, end, finite, forward, from, height, IBeam, index, length, m, eve::procgen::road::BridgePlan::members, mesh, n, normal, nx, ny, nz, offset, pos, r, right, Round, eve::procgen::MeshBuild::setActiveGroup(), start, eve::Result< T >::success(), TaperedBox, Timber, to, u, unit, up, v, vx, vy, vz, width, x , 以及 y.
被这些函数引用 registerRoadMeshRecipes().
◆ bakeRoadNetwork()
| EVENGINE_API_DOMAINS Result< RoadBakeResult > eve::procgen::road::bakeRoadNetwork | ( | const RoadNetwork & | network, |
| const RoadBakeOptions & | options = {} |
||
| ) |
Bake every edge, junction platform, pier, marking and navigation overlay.
- 参数
-
network Borrowed live network; must outlive the call only. options Bake knobs; sample counts are bounded to [2,4096], and enabled navigation dimensions must be finite and positive.
- 返回
- Owning mesh/overlay snapshot, or a structured diagnostic. @cost Geometry generation grows with output; bounded parameter scans may dominate sparse outputs, and each probe scales with path point count. Prefab weld/smoothing adds logarithmic grouping per vertex. Probe work and output are bounded by
maximumSamplingEvaluations,maximumMeshElementsandmaximumPlacements, amortized at explicit bake boundaries. Terrain projection adds one provider call per center anchor or samplesPerAxis squared calls per footprint, doubled for distinct projected top/bottom layers of tilted assets. TerrainNormal alignment adds one center-normal query per candidate anchor. All height and normal queries share maximumPlacementQueries across the network. Retained road frames are owned once per edge for this bake; SurfaceSegments placement shares their scan budget, prepares linear cumulative metrics and uses logarithmic row lookup per anchor. Neighbor clearance scans retained visible segments linearly. Peak frame storage grows with total retained rows, with up to two socket rows per edge. Analytic Fixed/Average placement uses 512 arc probes per span and up to 4096 orientation frames per anchor; this costs more than historical 32-probe LegacyCentered placement and is paid only at explicit bake boundaries.
- 注解
- Synchronous, owner-thread-only; result retains no pointers into network. Explicit world/asset providers are borrowed until return; registered providers must remain alive and registered throughout the call. Provider callbacks run without road locks and must not mutate the borrowed network, unregister themselves, or reenter this bake. Projection failure publishes no partial bake result and never modifies author data.
在文件 RoadBake.cpp 第 729 行定义.
引用了 eve::procgen::road::detail::bakeEdgeGeometry(), eve::procgen::road::detail::bakeFacilityContinuations(), eve::procgen::road::detail::bakeJunction(), eve::procgen::road::detail::bakePlacementPoints(), eve::procgen::road::detail::bakeTurnOverlays(), eve::procgen::road::RoadNode::connection, edge, Edge, eve::procgen::road::RoadNetwork::edgeCount(), eve::procgen::road::RoadNetwork::edges(), eve::procgen::road::detail::edgeToSpline(), end, eve::Result< T >::failure(), first, found, from, eve::procgen::road::RoadEdge::from, id, eve::procgen::road::RoadNode::id, eve::procgen::road::RoadEdge::id, eve::InvalidArgument, eve::InvariantViolation, eve::procgen::road::detail::isMeshBudgetExceeded(), Junction, eve::procgen::road::detail::junctionSocketDistance(), kind, eve::procgen::road::RoadNetwork::laneLinkCount(), eve::procgen::road::RoadEdge::lanesBackward, eve::procgen::road::RoadEdge::lanesForward, NetworkDerived, node, eve::procgen::road::RoadNetwork::nodeCount(), eve::procgen::road::RoadNetwork::nodeResult(), eve::procgen::road::RoadNetwork::nodes(), options, eve::procgen::road::RoadConnection::ports, eve::PreconditionViolation, result, eve::procgen::road::detail::sealRoadGeometrySources(), spline, start, eve::Result< T >::success(), to, eve::procgen::road::RoadEdge::to, topology, turns, u, eve::procgen::road::RoadNetwork::validate() , 以及 eve::procgen::road::detail::validateJunctionGeometry().
被这些函数引用 bakeRoadNetworkRecipe() , 以及 eve::procgen::road::RoadTerrainPlan::prepare().
◆ bakeRoadNetworkRecipe()
| EVENGINE_API_DOMAINS Result< RoadBakeResult > eve::procgen::road::bakeRoadNetworkRecipe | ( | const Params & | params | ) |
Build the shared road recipe once for mesh, navigation and artifact projections.
- 参数
-
params Deterministic scene and bake parameters. Terrain-snapped placements require a nonempty placementWorldRevision identifying the query world's content and selection rules; the caller must change it whenever projection results can change and keep that world stable throughout the call. This dependency participates in the artifact BuildKey through canonical Params.
- 返回
- Owning bake products, or a structured validation/generation error. @cost Linear in sampled road geometry and enabled overlays; reuse the returned products for multiple projections.
在文件 RoadRecipeBake.cpp 第 41 行定义.
引用了 bakeRoadNetwork(), c, edge, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, params, resolveRoadRecipeNetwork() , 以及 revision.
被这些函数引用 eve::procgen::generateRoadNetworkArtifact(), generateRoadNetworkMesh() , 以及 generateRoadNetworkOverlay().
◆ bridgeKindName()
|
noexcept |
Static protocol name, or an empty view for an unknown enum; process-lifetime storage, thread-safe.
在文件 BridgeGenerator.cpp 第 59 行定义.
被这些函数引用 applyBridgeRecipeDefaults(), bridgeParametersFromParams() , 以及 bridgePreset().
◆ bridgeMaterialName()
|
noexcept |
Static surface name, or an empty view for an unknown enum; process-lifetime storage, thread-safe.
在文件 BridgeGenerator.cpp 第 72 行定义.
被这些函数引用 bakeBridge().
◆ bridgeParametersFromParams()
| EVENGINE_API_DOMAINS Result< BridgeParameters > eve::procgen::road::bridgeParametersFromParams | ( | const Params & | params | ) |
Decode recipe parameters into an owning typed authoring value.
- 参数
-
params Borrowed for this call; bridgeType selects one of the ten named presets.
- 返回
- Validated authoring or a diagnostic. Synchronous and reentrant; no external state is changed. @cost Constant bounded parameter decoding; plan and bake separately.
在文件 BridgeGenerator.cpp 第 741 行定义.
引用了 bridgeKindName(), bridgePreset(), count, defaultValue, eve::Result< T >::failure(), key, kind, name, number, p, params, eve::Result< T >::success(), type , 以及 valid.
被这些函数引用 applyBridgeRecipeDefaults() , 以及 registerRoadMeshRecipes().
◆ bridgePartName()
|
noexcept |
Static semantic name, or an empty view for an unknown enum; process-lifetime storage, thread-safe.
在文件 BridgeGenerator.cpp 第 65 行定义.
引用了 index.
被这些函数引用 bakeBridge().
◆ bridgePreset()
| EVENGINE_API_DOMAINS Result< BridgeParameters > eve::procgen::road::bridgePreset | ( | BridgeKind | kind | ) |
Return an owning reference-aligned preset; unsupported kinds fail without side effects.
- 参数
-
kind One of the ten visual topology families.
- 返回
- Independent parameters; synchronous, reentrant, no callbacks or external services.
在文件 BridgeGenerator.cpp 第 78 行定义.
引用了 Arch, Beam, bridgeKindName(), CableStayed, Cantilever, Concrete, DeckTruss, eve::Result< T >::failure(), height, kind, eve::procgen::road::BridgeParameters::kind, Masonry, p, Slab, eve::Result< T >::success(), Suspension, ThroughTruss, TiedArch, Timber, Trestle , 以及 valid.
被这些函数引用 bridgeParametersFromParams() , 以及 registerRoadMeshRecipes().
◆ captureRoadNetwork()
| EVENGINE_API_DOMAINS Result< eve::Value > eve::procgen::road::captureRoadNetwork | ( | const RoadNetwork & | network | ) |
Capture validated, owning author data using the editor-compatible roadNetwork schema v1. @ownership The returned value owns all records; no borrowed buffers or derived meshes. @thread Caller synchronizes concurrent edits. No callbacks. @cost Linear in author records and prefab source geometry; reuse the snapshot across consumers.
在文件 RoadNetworkCodec.cpp 第 38 行定义.
引用了 eve::procgen::road::RoadNetwork::blockedLaneLinks(), bytes, eve::procgen::road::RoadEdge::controlPoints, edge, edges, eve::procgen::road::RoadNetwork::edges(), elements, eve::Result< T >::failure(), eve::procgen::road::RoadNetwork::laneLinks(), link, node, nodes, eve::procgen::road::RoadNetwork::nodes(), snapshot, eve::Result< T >::success(), valid , 以及 eve::procgen::road::RoadNetwork::validate().
被这些函数引用 setRoadRecipeNetwork().
◆ conformHeightmapToRoad()
| Result< int > eve::procgen::road::conformHeightmapToRoad | ( | Heightmap & | terrain, |
| const MeshBuild & | roadMesh, | ||
| const RoadTerrainConformOptions & | options = {} |
||
| ) |
Atomically conform a heightmap to nearby baked road surface triangles.
- 参数
-
terrain Mutable normalized heightmap; unchanged on failure. roadMesh Immutable baked road mesh. options World/grid mapping, blend width, bridge/tunnel rejection threshold and work budget.
- 返回
- Number of changed samples or a structured validation/budget diagnostic. @cost Linear in road triangle coverage plus covered cells times the blend-radius area; bounded by maximumWork. @thread Synchronous and caller-thread-only; no callbacks are invoked.
在文件 RoadTerrain.cpp 第 183 行定义.
引用了 conformHeightmapToRoadWithReceipt(), eve::Result< T >::failure(), options, eve::Result< T >::success() , 以及 terrain.
◆ conformHeightmapToRoadWithReceipt()
| Result< RoadTerrainConformReceipt > eve::procgen::road::conformHeightmapToRoadWithReceipt | ( | Heightmap & | terrain, |
| const MeshBuild & | roadMesh, | ||
| const RoadTerrainConformOptions & | options = {} |
||
| ) |
Atomically conform terrain and return the exact reversible sample delta.
- 参数
-
terrain Mutable normalized heightmap; unchanged on failure. roadMesh Immutable baked road mesh. options World/grid mapping, blend width, bridge/tunnel rejection threshold and work budget.
- 返回
- Owning receipt containing row-major changed indices and before/after values. @cost Same as conformHeightmapToRoad, plus storage linear in changed samples.
在文件 RoadTerrain.cpp 第 24 行定义.
引用了 eve::procgen::road::RoadTerrainConformReceipt::after, eve::procgen::road::RoadTerrainConformReceipt::before, covered, cx, cy, distance, dx, dz, eve::procgen::MeshBuild::getGroupName(), eve::procgen::MeshBuild::getIndex(), eve::procgen::MeshBuild::getIndexCount(), eve::procgen::MeshBuild::getPositionX(), eve::procgen::MeshBuild::getPositionY(), eve::procgen::MeshBuild::getPositionZ(), eve::procgen::MeshBuild::getTriangleGroup(), eve::procgen::MeshBuild::getVertexCount(), group, height, eve::procgen::road::RoadTerrainConformReceipt::height, index, eve::InvalidArgument, eve::InvariantViolation, name, options, eve::PreconditionViolation, eve::procgen::road::RoadTerrainConformReceipt::sampleIndices, eve::procgen::Heightmap::setHeight(), eve::procgen::road::RoadTerrainConformReceipt::skippedBridgeSamples, eve::procgen::road::RoadTerrainConformReceipt::skippedTunnelSamples, sourceX, eve::Result< T >::success(), target, terrain, triangle, u, weight, weights, width, eve::procgen::road::RoadTerrainConformReceipt::width, eve::procgen::road::RoadTerrainConformReceipt::workPerformed, x , 以及 z.
被这些函数引用 eve::procgen::road::RoadTerrainWorkspace::applyBatch() , 以及 conformHeightmapToRoad().
◆ generateRoadMarkingsTexture()
| std::unique_ptr< image::ImageData > eve::procgen::road::generateRoadMarkingsTexture | ( | const Params & | params, |
| std::string & | error | ||
| ) |
◆ generateRoadNetworkMesh()
| bool eve::procgen::road::generateRoadNetworkMesh | ( | const Params & | params, |
| MeshBuild & | out, | ||
| std::string & | error | ||
| ) |
Generate a multi-level interchange mesh from Params (span/height/lanes/seed).
在文件 RoadRecipes.cpp 第 15 行定义.
引用了 bakeRoadNetworkRecipe(), error, out , 以及 params.
被这些函数引用 registerRoadMeshRecipes().
◆ generateRoadNetworkOverlay()
| Result< RoadOverlay > eve::procgen::road::generateRoadNetworkOverlay | ( | const Params & | params | ) |
Bake navigation overlay for the same Params used by mesh.roadNetwork.
在文件 RoadRecipes.cpp 第 25 行定义.
引用了 bakeRoadNetworkRecipe(), eve::Result< T >::failure(), params , 以及 eve::Result< T >::success().
◆ makeRailwayStyle()
| EVENGINE_API_DOMAINS Result< RoadStyle > eve::procgen::road::makeRailwayStyle | ( | int | tracks = 1 | ) |
Build a procedural railway edge style (ballast bed, rails, sleepers).
- 参数
-
tracks Parallel track count in [1,2]; each track uses standard 1.435 m gauge.
- 返回
- Owning style ready for
RoadNetwork::addEdge/setEdgeStyle, or a validation diagnostic.
- 注解
- Reuses existing RoadMaterial tags: asphalt=ballast top, deck=ballast toes/sleepers, curb=rails.
在文件 RoadRailway.cpp 第 76 行定义.
引用了 Asphalt, eve::procgen::road::RoadStyle::automaticStructures, center, eve::procgen::road::RoadStyle::crossSection, eve::procgen::road::RoadStyle::curbHeight, eve::procgen::road::RoadStyle::curbWidth, eve::procgen::road::RoadStyle::dashGap, eve::procgen::road::RoadStyle::dashLength, Deck, eve::procgen::road::RoadStyle::deckThickness, eve::Diagnostic::error(), eve::procgen::road::RoadStyle::facilities, eve::Result< T >::failure(), halfExtent, eve::InvalidArgument, eve::procgen::road::RoadStyle::laneWidth, makeRoadProfile(), eve::procgen::road::RoadStyle::markingWidth, eve::procgen::road::RoadStyle::pierClearance, eve::procgen::road::RoadStyle::samplingSpacingMeters, eve::procgen::road::RoadStyle::sideObjectsLeft, eve::procgen::road::RoadStyle::sideObjectsRight, eve::procgen::road::RoadStyle::sidewalkHeight, eve::procgen::road::RoadStyle::sidewalkWidth, eve::procgen::road::RoadStyle::speedLimitMps, eve::Result< T >::success(), tracks, eve::procgen::road::RoadStyle::uvMeters , 以及 valid.
被这些函数引用 applyRailwayRoadType().
◆ makeRoadProfile()
| EVENGINE_API_DOMAINS Result< RoadProfile > eve::procgen::road::makeRoadProfile | ( | const RoadStyle & | style, |
| int | lanesForward, | ||
| int | lanesBackward | ||
| ) |
Build a mathematical road cross-section for the given lane counts.
- 参数
-
style Geometric style; widths must be finite and non-negative. lanesForward Forward driving lanes (>= 0). lanesBackward Optional opposite lanes (>= 0).
- 注解
- At least one direction must contain a lane.
- 返回
- Owning profile, or a structured validation diagnostic.
在文件 RoadProfile.cpp 第 55 行定义.
引用了 a, Asphalt, b, eve::procgen::road::RoadProfile::closed, coverage, covered, eve::procgen::road::RoadStyle::crossSection, eve::procgen::road::RoadStyle::crossSectionClosed, Curb, eve::procgen::road::RoadStyle::curbHeight, eve::procgen::road::RoadStyle::curbWidth, eve::Diagnostic::error(), eve::procgen::road::RoadProfile::explicitMaterials, eve::Result< T >::failure(), first, eve::procgen::road::RoadProfile::halfWidth, eve::InvalidArgument, eve::procgen::road::RoadStyle::laneWidth, ok, point, eve::procgen::road::RoadProfile::points, second, segments, Sidewalk, eve::procgen::road::RoadStyle::sidewalkHeight, eve::procgen::road::RoadStyle::sidewalkWidth , 以及 eve::Result< T >::success().
被这些函数引用 eve::procgen::road::RoadNetwork::addEdge(), eve::procgen::road::detail::bakeEdgeGeometry(), eve::procgen::road::detail::bakeJunction(), eve::procgen::road::detail::bakeTrafficControlPoints(), makeRailwayStyle(), eve::procgen::road::RoadNetwork::restoreEdge(), eve::procgen::road::RoadNetwork::setEdgeLaneCounts(), eve::procgen::road::RoadNetwork::setEdgeStyle(), eve::procgen::road::RoadNetwork::validate(), eve::procgen::road::detail::validateConnectionSeams() , 以及 eve::procgen::road::detail::validateJunctionGeometry().
◆ mapLaneByLateralRank()
| int eve::procgen::road::mapLaneByLateralRank | ( | int | inLane, |
| int | inLaneCount, | ||
| int | outLaneCount | ||
| ) |
在文件 RoadNetwork.cpp 第 116 行定义.
◆ planBridge()
| EVENGINE_API_DOMAINS Result< BridgePlan > eve::procgen::road::planBridge | ( | const BridgeParameters & | parameters | ) |
Plan the selected topology without renderer or terrain providers.
- 参数
-
parameters Borrowed only during this synchronous reentrant call; never retained.
- 返回
- Independent editable plan or InvalidArgument; failure changes no observable state. @cost Linear in spans times panels plus curve tessellation; prepare once per authoring edit, then bake.
在文件 BridgeGenerator.cpp 第 608 行定义.
引用了 eve::Result< T >::failure(), eve::procgen::road::BridgePlan::members, p, eve::Result< T >::success() , 以及 valid.
被这些函数引用 registerRoadMeshRecipes().
◆ registerRoadMeshRecipes()
| void eve::procgen::road::registerRoadMeshRecipes | ( | MeshRecipeRegistry & | registry | ) |
Registers road mesh recipes.
在文件 RoadRecipes.cpp 第 86 行定义.
引用了 axis, bakeBridge(), Beam, eve::procgen::ParamDescriptor::boolean(), bridgeParametersFromParams(), bridgePreset(), eve::procgen::ParamDescriptor::choice(), defaults, error, eve::procgen::ParamDescriptor::floating(), generateRoadNetworkMesh(), eve::procgen::ParamDescriptor::integer(), mesh, out, params, eve::procgen::RecipeDescriptor::params, planBridge(), reference , 以及 registry.
◆ registerRoadTextureRecipes()
| void eve::procgen::road::registerRoadTextureRecipes | ( | TextureRecipeRegistry & | registry | ) |
Registers road texture recipes.
在文件 RoadRecipes.cpp 第 226 行定义.
引用了 eve::procgen::ParamDescriptor::boolean(), eve::procgen::ParamDescriptor::floating(), generateRoadMarkingsTexture(), eve::procgen::RecipeDescriptor::grid(), eve::procgen::RecipeDescriptor::params , 以及 registry.
被这些函数引用 eve::procgen::TextureRecipeRegistry::registerBuiltins().
◆ resolveRoadRecipeNetwork()
| Result< RoadNetwork > eve::procgen::road::resolveRoadRecipeNetwork | ( | const Params & | params | ) |
Resolve the recipe's author snapshot, or its procedural scene when no snapshot was supplied.
- 返回
- An owning validated network. Invalid supplied snapshots fail instead of selecting a scene. When
roadType=railwayand nonetworkSnapshotis present, demo-scene edges are rewritten to a railway style (ballast / rails / sleepers) withlanesclamped to 1–2 parallel tracks. @thread Caller thread; no callbacks. @cost Linear in author data and seam validation, or procedural scene construction; reused by recipe projections.
在文件 RoadRecipeNetwork.cpp 第 16 行定义.
引用了 eve::procgen::applied, applyRailwayRoadType(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson(), eve::InvalidArgument, eve::procgen::road::RoadNetwork::makeScene(), eve::Result< T >::ok(), params, restoreRoadNetwork(), text, tracks, eve::Result< T >::value() , 以及 value.
被这些函数引用 bakeRoadNetworkRecipe().
◆ restoreHeightmapFromRoad()
| Result< int > eve::procgen::road::restoreHeightmapFromRoad | ( | Heightmap & | terrain, |
| const RoadTerrainConformReceipt & | receipt | ||
| ) |
Atomically restore a conformance receipt if none of its samples became stale.
- 参数
-
terrain Mutable heightmap that must still contain every receipt after-value. receipt Owning receipt returned by conformHeightmapToRoadWithReceipt.
- 返回
- Number of restored samples, or a structured stale/validation diagnostic. @cost Linear in receipt sample count.
在文件 RoadTerrain.cpp 第 190 行定义.
引用了 eve::procgen::road::RoadTerrainConformReceipt::after, eve::procgen::road::RoadTerrainConformReceipt::before, eve::Conflict, eve::procgen::road::RoadTerrainConformReceipt::height, index, eve::InvalidArgument, previous, eve::procgen::road::RoadTerrainConformReceipt::sampleIndices, eve::procgen::Heightmap::setHeight(), eve::Result< T >::success(), terrain, eve::procgen::road::RoadTerrainConformReceipt::width, x , 以及 z.
◆ restoreRoadNetwork()
| EVENGINE_API_DOMAINS Result< RoadNetwork > eve::procgen::road::restoreRoadNetwork | ( | const eve::Value & | snapshot | ) |
Decode schema v1 privately; unknown fields are ignored and unsupported versions rejected.
- 返回
- An independent validated network; failures never mutate an observable author owner. @thread Caller thread; no callbacks. @cost Linear in author data plus topology and seam validation; decode once per import.
在文件 RoadNetworkCodec.cpp 第 70 行定义.
引用了 eve::procgen::road::RoadNetwork::addLaneLink(), eve::procgen::road::RoadNetwork::blockLaneLink(), bytes, edge, edges, elements, link, node, nodes, eve::procgen::road::RoadNetwork::restoreEdge(), eve::procgen::road::RoadNetwork::restoreNode(), snapshot, eve::Result< T >::success(), valid, eve::procgen::road::RoadNetwork::validate() , 以及 version.
被这些函数引用 resolveRoadRecipeNetwork().
◆ roadMaterialGroup()
|
noexcept |
Map a material tag to the MeshBuild group name used by the baker. @ownership borrowed — returns a pointer to a static string literal; callers must not free it. @lifetime Program lifetime; the pointer remains valid for the process.
在文件 RoadProfile.cpp 第 37 行定义.
引用了 Asphalt, BridgeAsphalt, Curb, Deck, Marking, MarkingYellow, material, Nav, Pier, Sidewalk, Tunnel, TunnelAsphalt , 以及 TunnelPortalAsphalt.
被这些函数引用 eve::procgen::road::detail::appendArrow(), eve::procgen::road::detail::appendBox(), eve::procgen::road::detail::appendOrientedTri(), eve::procgen::road::detail::appendStripQuad(), eve::procgen::road::detail::bakeCustomConnection(), eve::procgen::road::detail::bakeFacilityPrefab(), eve::procgen::road::detail::capProfileRing() , 以及 eve::procgen::road::detail::capProfileShoulders().
◆ setRoadRecipeNetwork()
| Result< void > eve::procgen::road::setRoadRecipeNetwork | ( | Params & | params, |
| const RoadNetwork & | network | ||
| ) |
Store canonical validated author data in the standard recipe's networkSnapshot parameter. @ownership Params takes an owning canonical JSON copy, published only on success. @thread Caller synchronizes Params and the network; no callbacks. @cost Linear in the author graph/source meshes; prepare once and reuse for mesh/artifact/LOD builds.
在文件 RoadRecipeNetwork.cpp 第 5 行定义.
引用了 captureRoadNetwork(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, params, snapshot , 以及 eve::Result< T >::success().
◆ validJunctionControl()
| bool eve::procgen::road::validJunctionControl | ( | RoadJunctionControl | control | ) |