Skip to content
Snippets Groups Projects
Commit ddd4ef0f authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug with the road marks.

parent 5eb7a9c3
No related branches found
No related tags found
1 merge request!2Solved a bug when creating a new geometry object: the sale factor is...
......@@ -424,10 +424,10 @@ void COSMRoadSegment::generate_opendrive_geometry(void)
COpendriveRoadSegment *COSMRoadSegment::convert_to_opendrive(void)
{
//COpendriveLane new_lane(this->parent_way->get_lane_width(),50.0,OD_MARK_SOLID);
COpendriveLane new_lane(4.0,50.0,OD_MARK_SOLID);
COpendriveLane new_lane(4.0,50.0,OD_MARK_BROKEN);
COpendriveRoadSegment *new_segment;
new_segment=new COpendriveRoadSegment(this->parent_way->get_name(),OD_MARK_BROKEN,this->parent_way->get_id(),false);
new_segment=new COpendriveRoadSegment(this->parent_way->get_name(),OD_MARK_SOLID,this->parent_way->get_id(),false);
for(unsigned int i=0;i<this->parent_way->get_num_forward_lanes();i++)
new_segment->add_right_lane(new_lane);
for(unsigned int i=0;i<this->parent_way->get_num_backward_lanes();i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment