Coder Social home page Coder Social logo

Comments (6)

kaosat-dev avatar kaosat-dev commented on June 27, 2024

hi @stuartpb I know this has been years, but could you explain what you mean by multi-path polygons ?

from openjscad.org.

stuartpb avatar stuartpb commented on June 27, 2024

See https://en.wikibooks.org/wiki/OpenJSCAD_User_Guide#Polygon:

polygon({ points: [ [0,0],[3,0],[3,3],[0,6] ], paths: [ [0,1,2],[1,2,3] ] }); // multiple paths not yet implemented

A two-dimensional vector for paths specifies shapes to subtract from the initial path. See the documentation for OpenSCAD's polygon function.

from openjscad.org.

kaosat-dev avatar kaosat-dev commented on June 27, 2024

ok thanks for clarifying @stuartpb !

from openjscad.org.

z3dev avatar z3dev commented on June 27, 2024

@stuartpb sorry but this functionality will not be part of V2. We are breaking from SCAD for many reasons. I think this functionality can be reproduced by simple boolean operations.

If you still want this functionality then you will need to write a special โ€˜polygonโ€™ function.

from openjscad.org.

stuartpb avatar stuartpb commented on June 27, 2024

That's reasonable: the documentation notes that successive polygons are just difference()d, and I've never seen a case where OpenSCAD's "lists of indexes into a flat list of points" model makes more sense for 2D polygons than multiple lists of points would.

from openjscad.org.

z3dev avatar z3dev commented on June 27, 2024

Thanks.

from openjscad.org.

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.