Exemple #1
0
 def from_sample_nodes(cls, sample_nodes):
     return BeamNGRoadImagery(RoadPoints().add_middle_nodes(sample_nodes))
Exemple #2
0
 def setup_road_nodes(self, road_nodes):
     self.road_nodes = road_nodes
     self.decal_road: DecalRoad = DecalRoad('street_1').add_4d_points(
         road_nodes)
     self.road_points = RoadPoints().add_middle_nodes(road_nodes)
 def from_nodes(cls, nodes: List[Tuple[float, float, float, float]]):
     return RoadPolygon(RoadPoints.from_nodes(nodes))
 def plot(member: BeamNGMember, ax):
     ax.set_title(f'dist to bound', fontsize=12)
     road_points = RoadPoints.from_nodes(member.sample_nodes)
     road_points.plot_on_ax(ax)