Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
33 stars 11 forks source link

Visitor pattern for Graphics simplified with Multiple Dispatch #264

Closed joshichaitanya3 closed 6 months ago

joshichaitanya3 commented 6 months ago

This small PR uses the new multiple dispatch functionality to simplify the visitor pattern used in the graphics module, where the graphics primitives are visited by Show and POVRaytracer.

All examples tests are passing.

It also updates the run command in the examples.py file, providing a temporary band-aid for #263 .