gumyr / build123d

A python CAD programming library
Apache License 2.0
395 stars 72 forks source link

Circle SVG imported as multiple ellipses #520

Open MatthiasJ1 opened 5 months ago

MatthiasJ1 commented 5 months ago
circle_svg = StringIO("""
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
  <circle cx="50" cy="50" r="50" />
</svg>
""")

circle = import_svg(circle_svg)
v = circle.vertices()
print(circle.edges()[0].geom_type())
circle.edges()[0].geom_type() = 'ELLIPSE'
Screenshot
gumyr commented 5 months ago

build123d uses the svg importer from here: https://github.com/snoyer/ocpsvg. Try raising the issue there.