discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Tool like OpenSCAD, but for 2D images?

A
arnholm@arnholm.org
Fri, Oct 20, 2017 1:19 PM

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

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
TO
Trevor Orr
Fri, Oct 20, 2017 3:47 PM

I have use this SVG JavaScript library on several projects.

http://snapsvg.io/

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

I have use this SVG JavaScript library on several projects. http://snapsvg.io/ 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 >
A
ashuan
Fri, Oct 20, 2017 3:57 PM

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/

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/
CS
Colin Smart
Fri, Oct 20, 2017 7:48 PM

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

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
M
moshel
Sat, Oct 21, 2017 3:48 AM

Processing looks promising! I'll give it a try. Thanks!

--
Sent from: http://forum.openscad.org/

Processing looks promising! I'll give it a try. Thanks! -- Sent from: http://forum.openscad.org/
M
mbugert
Sun, Oct 22, 2017 7:26 AM

moshel wrote

Processing looks promising! I'll give it a try. Thanks!

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/
T
TLC123
Mon, Oct 23, 2017 2:05 PM

ImageMagick can do scripting for 2d bitmaps

--
Sent from: http://forum.openscad.org/

ImageMagick can do scripting for 2d bitmaps -- Sent from: http://forum.openscad.org/
T
Troberg
Mon, Oct 23, 2017 3:14 PM

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/

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/
T
TLC123
Mon, Oct 23, 2017 8:29 PM

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/

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/
MK
Marius Kintel
Tue, Oct 24, 2017 1:12 AM

There’s always maker.js: https://maker.js.org/

-Marius

There’s always maker.js: https://maker.js.org/ -Marius