载入中...
搜索中...
未找到
RoadAuthoringInternal.h
浏览该文件的文档.
1#pragma once
2
3#include <cstddef>
4#include <utility>
6
9[[nodiscard]] Result<void> validateFacilityPrefab(const RoadFacilityPrefab& prefab);
11void reverseFacilityPrefab(RoadFacilityPrefab& prefab);
13[[nodiscard]] Result<void> validateSection(const std::vector<RoadProfilePoint>& points, bool closed);
15[[nodiscard]] Result<void> validateRoadAuthoring(const RoadStyle& style);
17void reverseRoadAuthoring(RoadStyle& style);
19void reverseSectionGeometry(std::vector<RoadProfilePoint>& section, bool closed);
21[[nodiscard]] Result<std::pair<RoadStyle, RoadStyle>> splitRoadAuthoring(const RoadEdge& edge, std::size_t pointIndex);
23float roadSurfaceHeight(const RoadStyle& style, float lateral);
24} // namespace eve::procgen::road::detail
double lateral
std::string prefab
std::shared_ptr< const std::vector< glm::vec2 > > points
void reverseFacilityPrefab(RoadFacilityPrefab &prefab)
Reflect an owned prefab into reverse traversal coordinates, including its segment sequence/window.
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.
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.
void reverseRoadAuthoring(RoadStyle &style)
Reflect section and interval authoring while preserving physical placement.
Result< void > validateRoadAuthoring(const RoadStyle &style)
Validate structural intervals and continuous-facility authoring.
Result< std::pair< RoadStyle, RoadStyle > > splitRoadAuthoring(const RoadEdge &edge, std::size_t pointIndex)
Clip/remap normalized arc intervals into owning first/second styles.