MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / add_triangle

Function add_triangle

PythonAPI/examples/microsim.py:79–82  ·  view source on GitHub ↗
(triangle, **args)

Source from the content-addressed store, hash-verified

77 **args))
78
79 def add_triangle(triangle, **args):
80 dwg.add(dwg.polygon(
81 [to_svg(triangle.v0), to_svg(triangle.v1), to_svg(triangle.v2)],
82 **args))
83
84 lanes_with_connections = set()
85 lanes_with_connections.update(network.edges[c.from_edge].lanes[c.from_lane].id for c in network.connections)

Callers

nothing calls this directly

Calls 2

to_svgFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected