deadsy / sdfx

A simple CAD package using signed distance functions
MIT License
533 stars 52 forks source link

Convert panics #26

Closed stevegt closed 3 years ago

stevegt commented 3 years ago

This is the first dump of the 50+ panic() fixes that @koshchei is working on --- see #24. Let us know whether you'd prefer appending commits to this PR, or if we should send a separate PR for each set. He'll be working on it over the weekend and should be done with all of them by Monday or Tuesday.

We're also converting top-level fmt.Printf(); os.Exit(1) sequences in the examples into log.Fatalf() as we go.