Updated generation of lots

This commit is contained in:
2025-03-03 10:00:13 +03:00
parent fc1c4b5168
commit 2afa4feee8
8 changed files with 622 additions and 287 deletions

View File

@@ -205,6 +205,7 @@ public:
test_p[0] = other.test_p[0];
test_p[1] = other.test_p[1];
lot_depth_eff = other.lot_depth_eff;
lot_points = other.lot_points;
return *this;
}
};
@@ -217,12 +218,10 @@ public:
test_edge(const String &key, int index)
: line_key(key)
, edge_index(index)
, left(RoadLinesData::get_singleton()
->lines(key)
.edges[index])
, right(RoadLinesData::get_singleton()
->lines(key)
.edges[index])
, left(RoadLinesData::get_singleton()->get_line_edge(
key, index))
, right(RoadLinesData::get_singleton()->get_line_edge(
key, index))
{
update_from_line();
}
@@ -328,8 +327,6 @@ public:
struct road_line {
std::vector<Transform> points;
std::vector<struct road_edge> edges;
public:
std::vector<struct line_segment> segments;
int lanes;
@@ -399,7 +396,8 @@ public:
void set_line(const String &key, const struct road_line &line);
void update_line(const String &key);
const struct road_line *get_line_ptr(const String &key) const;
struct road_edge get_line_edge(const String &key, int edge) const;
const struct road_edge &get_line_edge(const String &key,
int edge) const;
struct road_edge_side get_line_edge_left(const String &key,
int edge) const;
struct road_edge_side get_line_edge_right(const String &key,