gumyr / build123d

A python CAD programming library
Apache License 2.0
402 stars 75 forks source link

Error with 360 degree JernArc #192

Closed jdegenstein closed 1 year ago

jdegenstein commented 1 year ago

The following should draw a circle, but throws an error:

from build123d import *
rad = 5

with BuildLine() as l:
    l1 = JernArc(start=(0,0,0),tangent=(1,0,0),radius=rad,arc_size=360)

show_object(l.line)

Standard_ConstructionError: gp_Dir::Crossed() - result vector has zero norm

This works fine for e.g. 359 degrees

gumyr commented 1 year ago

Enhanced to allow the creation of a complete circle.