Coder Social home page Coder Social logo

Comments (3)

elalish avatar elalish commented on July 20, 2024

I have this: https://elalish.github.io/manifold/classmanifold_1_1_manifold.html#a8631da9e82e21ccf91a53e016aa18c30

Polygons are just a vector of vectors; it could use more methods of its own for sure.

from manifold.

bhouston avatar bhouston commented on July 20, 2024

Polygon implies it is a closed loop (whatever the 2D equivalent of a manifold is.) I think that requiring that on Curves/Polylines to always be closed isn't accurate. I think you often want to create them as not closed and then you may connect a few together to create one or more polygons as a result.

I think that a 2D drawing is fundamentally a collection of lines, many of which are connected and then from that set of connected lines you can extract a set of closed regions, e.g. polygons. But the mapping of lines to polygons it not 1:1.

from manifold.

bhouston avatar bhouston commented on July 20, 2024

The lines are absolutely fundamental because these are usually the primitives in the CAD tool upon which the constraints act. Thus keeping these in a proper representation matters a lot.

Basically everything in CAD is derived from the line set, both polygons and trimeshes in your case. Thus you need to have these as a first class representation.

from manifold.

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.