On 2017-10-20 14:31, shadowwynd wrote:
The issue has to do with OpenSCAD's top-level union, which is
automatically
applied. This means it can do 3D well, 2.5D with limitations (great as
long
as the "D" are the same (e.g. a plate with holes and slots)), and is
very
poor at 2D.
OpenSCAD is a CSG (Constructive Solid Geometry) modeller for 2D or 3D.
It is not a line drawing program, neither in 2D nor 3D.
If you needed
three concentric circles for a drawing (with no filled areas) (such as
for a
graphic), you are out of luck.
In OpenSCAD, everything is a solid (in 2D or 3D). If what you want is a
line drawing tool, then OpenSCAD is the wrong choice.
Carsten Arnholm
I have use this SVG JavaScript library on several projects.
On Fri, Oct 20, 2017 at 6:19 AM, arnholm@arnholm.org wrote:
On 2017-10-20 14:31, shadowwynd wrote:
The issue has to do with OpenSCAD's top-level union, which is
automatically
applied. This means it can do 3D well, 2.5D with limitations (great as
long
as the "D" are the same (e.g. a plate with holes and slots)), and is very
poor at 2D.
OpenSCAD is a CSG (Constructive Solid Geometry) modeller for 2D or 3D. It
is not a line drawing program, neither in 2D nor 3D.
If you needed
three concentric circles for a drawing (with no filled areas) (such as
for a
graphic), you are out of luck.
In OpenSCAD, everything is a solid (in 2D or 3D). If what you want is a
line drawing tool, then OpenSCAD is the wrong choice.
Carsten Arnholm
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Perhaps you could use D3.js library.
It's graph oriented but there's many other kind of example :
https://github.com/d3/d3/wiki/Gallery
It's use SVG model.
--
Sent from: http://forum.openscad.org/
Or consider using a programmatic 2D tool such as Processing...
https://en.m.wikipedia.org/wiki/Processing_(programming_language)
Colin Smart (07968 049660)
On 20 Oct 2017, at 12:07, Troberg troberg.anders@gmail.com wrote:
I'd say that what I'm looking for is something like "script controlled
PaintShop", much like one could say that OpenSCAD is a "script controlled
SketchUp" (and don't nitpick that definition, I'm just trying to get a
general idea across here...).
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Processing looks promising! I'll give it a try. Thanks!
--
Sent from: http://forum.openscad.org/
moshel wrote
Processing looks promising! I'll give it a try. Thanks!
I recently wrote a library which could help for your problem. It's about
lasercutting stuff with OpenSCAD, see
http://forum.openscad.org/laserscad-A-library-for-efficient-lasercutting-with-OpenSCAD-td22429.html
http://forum.openscad.org/laserscad-A-library-for-efficient-lasercutting-with-OpenSCAD-td22429.html
).
Cheers,
mbugert
--
Sent from: http://forum.openscad.org/
ImageMagick can do scripting for 2d bitmaps
--
Sent from: http://forum.openscad.org/
Imagemagick is good for some types of processing, but not for creating images
from scratch.
I'm looking for a tool where I can script things like this:
Start with a blank bitmap. Load another bitmap from disk. Draw a circle on
it, then invert what's in the circle. Paint the modified bitmap in several
positions on the screen. Draw a border of evenly spaced circles. Load a logo
bitmap from disk and put in the corner. Add some text in a new layer, set to
semitransparent and add to the main picture as a water mark. Convert the
result to greyscale.
Basically, a combined bitmap and vector tool, like a bunch of paint programs
out there, but with the mindset of OpenSCAD, where everything is scripted
and there is no GUI for drawing. Basically, scripted drawing for engineers.
--
Sent from: http://forum.openscad.org/
Guess one can do most of that with a hand coded svg with embedded bitmaps and
possibly even scriptable canvas tag.
--
Sent from: http://forum.openscad.org/
There’s always maker.js: https://maker.js.org/
-Marius