qimpy.transport.geometry.parse_svg

parse_svg(svg_file, svg_unit, grid_spacing, contact_names, tol=0.001)

Parse SVG file into QuadSet, sampled with grid_spacing, and with vertex equivalence determined with tolerance tol. All distances are scaled by svg_unit in the output. Note that grid_spacing is in the output units since it sets the simulation resolution, while tol applies in the SVG units before scaling since it deals with design tolerance in the SVG editor.

Parameters:
  • svg_file (str) –

  • svg_unit (float) –

  • grid_spacing (float) –

  • contact_names (Iterable[str]) –

  • tol (float) –

Return type:

QuadSet