Skip to content

Commit 232faa9

Browse files
committed
update README.md - add Viewer section, include road network mesh in example
1 parent cc53083 commit 232faa9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ odr::RoutingGraph routing_graph = odr_map.get_routing_graph();
2626
odr::LaneKey from("516" /*road id*/, 0.0 /*lane section s0*/, 1 /*lane id*/);
2727
odr::LaneKey to("501", 0.0, -1);
2828
std::vector<odr::LaneKey> path = routing_graph.shortest_path(from, to);
29+
30+
// get road network mesh
31+
odr::RoadNetworkMesh road_network_mesh = odr_map.get_road_network_mesh(0.1 /*eps*/);
32+
std::cout << road_network_mesh.get_mesh().get_obj() << std::endl;
2933
```
3034
3135
## Build
@@ -40,3 +44,8 @@ This also builds an executable to test the library:
4044
```bash
4145
./build/test-xodr test.xodr
4246
```
47+
48+
## Viewer
49+
Check out the viewer at [odrviewer.io](https://odrviewer.io) which uses this library.
50+
51+
<sub>Info: The Viewer and WebAssembly bindings are no longer part of this project. This is to focus more on the library functionality and avoid having to keep the bindings up-to-date. Use [v0.3.0](https://github.com/grepthat/libOpenDRIVE/releases/tag/0.3.0) to get the last version that still includes Viewer and WebAssembly bindings. </sub>

0 commit comments

Comments
 (0)