Worked on debugging and metadata stuff
This commit is contained in:
@@ -34,6 +34,7 @@ struct RoadLinesProcessing {
|
||||
std::unordered_map<uint32_t, std::vector<struct wedge> > wedges;
|
||||
String road_center_mesh_path, road_mid_mesh_path,
|
||||
road_sidewalk_mesh_path;
|
||||
int debug_flags;
|
||||
static struct RoadLinesProcessing *singleton;
|
||||
static RoadLinesProcessing *get_singleton()
|
||||
{
|
||||
@@ -186,6 +187,14 @@ struct RoadLinesProcessing {
|
||||
singleton = nullptr;
|
||||
}
|
||||
}
|
||||
void set_debug_flags(int debug_flags)
|
||||
{
|
||||
this->debug_flags = debug_flags;
|
||||
}
|
||||
int get_debug_flags() const
|
||||
{
|
||||
return debug_flags;
|
||||
}
|
||||
void road_setup()
|
||||
{
|
||||
RoadLinesData *rld = RoadLinesData::get_singleton();
|
||||
@@ -194,6 +203,7 @@ struct RoadLinesProcessing {
|
||||
road_lines_nodes_hash;
|
||||
road_lines_nodes.clear();
|
||||
road_lines_nodes_hash.clear();
|
||||
rld->set_debug_flags(debug_flags);
|
||||
rld->process_lines(road_lines_nodes_hash, road_lines_nodes);
|
||||
create_nodes(road_lines_nodes);
|
||||
create_edges();
|
||||
@@ -631,8 +641,9 @@ public:
|
||||
};
|
||||
RoadMeshProcessing *RoadMeshProcessing::singleton;
|
||||
|
||||
void RoadProcessing::road_setup(Node *target)
|
||||
void RoadProcessing::road_setup(Node *target, int debug_flags)
|
||||
{
|
||||
RoadLinesProcessing::get_singleton()->set_debug_flags(debug_flags);
|
||||
RoadLinesProcessing::get_singleton()->road_setup();
|
||||
RoadMeshProcessing::get_singleton()->create_road_meshes(target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user