help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make a drawing with Emacs


From: Leo Butler
Subject: Re: make a drawing with Emacs
Date: Thu, 24 Sep 2020 11:53:13 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Jean Louis <bugs@gnu.support> writes:

> ********************************************************
> Caution: This message was sent from outside the University of Manitoba.
> ********************************************************
>
> * tomas@tuxteam.de <tomas@tuxteam.de> [2020-09-01 11:19]:
>> On Mon, Aug 31, 2020 at 10:52:59PM +0200, Emanuel Berg via Users list for 
>> the GNU Emacs text editor wrote:
>> > Yuri Khan wrote:
>> > 
>> > >>> If you are thinking 3D, then OpenSCAD might suit
>> > >>> you: pametric, script-centric, text-friendly.
>> > >>
>> > >> No no, 2D, top-view! Like an old school
>> > >> engineering drawing, but less detailed. But with
>> > >> real units...
>> > >
>> > > You want 2D, get LibreCAD.
>> > 
>> > I want to write code (data) and then have it
>> > translate into a drawing. See the original post.
>> > So no GUI, no actual "drawing". CAD doesn't sound
>> > like that, but maybe I'm wrong?
>> 
>> TiKZ and OpenSCAD qualify, but they cover different areas (the one
>> is for (gorgeous!) diagranms and the other is for (dimensional)
>> drawings.
>
> Maybe you wish to say 3D dimensional, as if you only mean dimensional,
> then anything in this world including any types of graphs are
> dimensional.
>
> So if you do mean that OpenSCAD is 3D dimensional, well, it has that
> capacity, but nothing prevents you being 2D dimensional.
>
> See here for exporting files:
> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export
>
> For references of the simple drawing language, see here:
> http://www.openscad.org/documentation.html?version=2015.03
>
> I am using Emacs to simply write the drawing, then such can easily be
> exported. It is possible to configure Emacs, if necessary, to open the
> exported file and display it after saving such. So the OpenSCAD window
> need not be seen at all.
>
> Just use the automatic preview option in OpenSCAD, edit the file and
> OpenSCAD will show the drawing after each saving of the file.
>
> You do not need to launch the OpenSCAD for quick previews, you could
> launch it from command line, upon the emacs save hook so that file is
> each time generated as you wish.
>
> Try following, adapt the font name.
>
> module logo(logo,size) {
>      rotate([90]) {
>         color("gold") text(logo, font = "Impact", size = size, haling = 
> "center", valign = "bottomline");
>      }
> }
>
> logo("Emacs");
>
>
> Jean

Thanks for the reference. I was unaware of OpenSCAD, but after looking
at the references, it looks quite interesting.

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]