Giter VIP home page Giter VIP logo

Comments (3)

waveform80 avatar waveform80 commented on August 15, 2024

There's a lot of good research on ellipse extensions to Bresenham's circle algorithm, and plenty more on general conic sections but everyone's working in 2D and I haven't got the time to research generalizing these into 3D. Some links of use:

Although the conic section stuff is probably the most useful in terms of a completely generic algorithm for ellipses rotated about any point there'd need to be substantial work on making a useful API for it - all the algorithms in the papers I've skimmed so far accept input in terms of the conic section coefficients (i.e. useless as an interface for programmers who'll want something more like center, radius1, radius2, rotation, CoR, etc.)

from picraft.

waveform80 avatar waveform80 commented on August 15, 2024

We've got the beginnings of a circle algorithm now. It's not great. In fact it's probably not even good given that it's based on the root difference algorithm (so it produces pretty ugly circles), but the one major thing going for it is that it supports drawing circles through an arbitrary plane which no other algorithm seems capable of doing. For now, I'll release this in 0.4 and bump this ticket to 1.0 to see if I (or anyone else?) can come up with something better.

from picraft.

waveform80 avatar waveform80 commented on August 15, 2024

Yup, still nothing better. Oh well, declare victory and move on.

from picraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.