Giter Club home page Giter Club logo

Comments (3)

sjkelly avatar sjkelly commented on June 12, 2024

This code ideally would be entirely legitimate. The problem is there is no Circle implemented yet, and it is pulling in the type from GeometryTypes. Re: #26

I think I stopped at figuring out how I wanted 2D shapes to behave. The easiest way is to treat them as 3D shapes, so let's try that first.

from descartes.jl.

sjkelly avatar sjkelly commented on June 12, 2024

I pushed the finished up the 2D API for Circles and Squares and pushed it to master. I stuck with similar constraints to what OpenSCAD imposes for now, but later I think these could be relaxed and you should be able to translate a 2D geometry in 3D space.

This is a rough pass and there may be bugs in translating the resultant extrude, so I will keep this issue open.

There is an example here, and output: https://github.com/sjkelly/Descartes.jl/blob/master/examples/2d.jl
image

from descartes.jl.

sjkelly avatar sjkelly commented on June 12, 2024

formulations for rounded boxes: https://iquilezles.org/www/articles/distfunctions/distfunctions.htm

I'd actually prefer atomic issues for each subject so there are clear action items.

I agree that the current naming is ambiguous for square. it is supposed to be similar to OpenSCAD. I may move OpenSCADisms into a submodule an go with generic names such as Cuboid, which actually isn't truely correct as implemented AFAIK.

BTW: I have a policy of not looking at libfive source links since it is GPL. Descartes is MIT, so I do not want to risk any issues.

from descartes.jl.

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.