Updated generation of lots
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user