Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-path polygons not supported #26

Closed
stuartpb opened this issue Jun 19, 2013 · 6 comments
Closed

Multi-path polygons not supported #26

stuartpb opened this issue Jun 19, 2013 · 6 comments

Comments

@stuartpb
Copy link

(according to the User Guide)

I would greatly appreciate this feature, as it would allow drawing text using the same method as Spiff.scad.

@kaosat-dev
Copy link
Contributor

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

@stuartpb
Copy link
Author

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.

@kaosat-dev
Copy link
Contributor

kaosat-dev commented Oct 20, 2017

ok thanks for clarifying @stuartpb !

@z3dev
Copy link
Member

z3dev commented Apr 4, 2020

@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.

@stuartpb
Copy link
Author

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.

@z3dev
Copy link
Member

z3dev commented May 15, 2020

Thanks.

@z3dev z3dev closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants