[Ipe-discuss] Fwd: How to draw a spring?

Hemza hemza.dz at gmail.com
Thu Feb 18 16:43:26 CET 2021


Thank you Nathaniel and otfried,  that is very helpful.
I already used svgtoipe to convert some Tikz generated spring to ipe (see
attached files).
It is also very interesting to know that tikz could be used within Ipe,
however my aim to use ipe is to avoid Tikz which save me time and effort.
Tikz is powerful and I already use it for some nice drawing but, compared
to tools like inkscape and ipe, it requires more time to learn. Thus I keep
it for some other types of drawings.

Writing an Ipelet is the best thing to do in my case, unfortunately, one
needs to learn Lua, maybe when I find more time and be more confident with
ipe !!!!

Hemza

On Thu, 18 Feb 2021 at 15:37, Nathaniel Cunningham <
nathaniel.cunningham at gmail.com> wrote:

> p.s. this parametric plotting approach was used to create the "I" in the
> Ipe program icon!
> [image: ipe128.png]
>
> Nathaniel
>
> On Thu, Feb 18, 2021 at 8:33 AM Nathaniel Cunningham <
> nathaniel.cunningham at gmail.com> wrote:
>
>> Yes, as Otfried said -- I plot multiple cycles of a parametric circle
>> (x=cos(t), y=sin(t) or similar) with an added translation (extra t term in
>> x or y).
>>
>> I attach a screenshot showing an example including the values used in the
>> plot ipelet.
>>
>> Nathaniel
>>
>> [image: ipe plot springs.png]
>>
>>
>> On Thu, Feb 18, 2021 at 2:13 AM Hemza <hemza.dz at gmail.com> wrote:
>>
>>> cool, I know about ipeplot and use it for basic functions plotting.
>>> could you elaborate more on how to describe a spring parametrically?
>>>
>>>
>>> On Wed, 17 Feb 2021 at 20:31, Nathaniel Cunningham via Ipe-discuss <
>>> ipe-discuss at lists.science.uu.nl> wrote:
>>>
>>>> The "plots" ipelet is a great way to create springs and other shapes
>>>> that can be mathematically defined!
>>>> https://github.com/lahvak/ipeplots
>>>>
>>>> -- Nathaniel
>>>>
>>>> On Wed, Feb 17, 2021 at 1:26 PM Nathaniel Cunningham <
>>>> nathaniel.cunningham at gmail.com> wrote:
>>>>
>>>>> The "plots" ipelet is a great way to create springs and other shapes
>>>>> that can be mathematically defined!
>>>>> https://github.com/lahvak/ipeplots
>>>>>
>>>>>
>>>>> On Wed, Feb 17, 2021 at 11:31 AM Hemza via Ipe-discuss <
>>>>> ipe-discuss at lists.science.uu.nl> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> ---------- Forwarded message ---------
>>>>>> From: Hemza <hemza.dz at gmail.com>
>>>>>> Date: Wed, 17 Feb 2021 at 08:24
>>>>>> Subject: Re: [Ipe-discuss] How to draw a spring?
>>>>>> To: Fabien Lafont <lafont.fabien at gmail.com>
>>>>>>
>>>>>>
>>>>>> Thanks for the tips. svgtoipe is a good way to do it.
>>>>>>
>>>>>> On Wed, 17 Feb 2021 at 07:51, Fabien Lafont <lafont.fabien at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> With Bézier curves and the snap to grid you can easily make one.
>>>>>>> Then you can stretch it. Another solution is to use one that you like and
>>>>>>> use svgtoipe or pdftoipe.
>>>>>>>
>>>>>>> On Wed, Feb 17, 2021, 08:30 Hemza <hemza.dz at gmail.com> wrote:
>>>>>>>
>>>>>>>> it is possible to sketch 'zig zag' springs, but coils like springs
>>>>>>>> are not easy to sketch.
>>>>>>>>
>>>>>>>> On Wed, 17 Feb 2021 at 07:19, Fabien Lafont <
>>>>>>>> lafont.fabien at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Just stretch it. Keyboard shortcut : e
>>>>>>>>>
>>>>>>>>> On Wed, Feb 17, 2021, 08:10 Hemza via Ipe-discuss <
>>>>>>>>> ipe-discuss at lists.science.uu.nl> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> I just began to learn how to use Ipe. It is a great tool and
>>>>>>>>>> already saved me many hours on drawing physics illustrations.
>>>>>>>>>> One thing that I find frustrating to draw is drawing 'springs'
>>>>>>>>>> (which are crucial things in mechanics problems). In Tikz, you could
>>>>>>>>>> control how the spring looks like (see e.g
>>>>>>>>>> https://tex.stackexchange.com/questions/41608/draw-mechanical-springs-in-tikz).
>>>>>>>>>> Is there anything I can do to mimic this on Ipe?
>>>>>>>>>>
>>>>>>>>>> Hemza.
>>>>>>>>>>
>>>>>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210218/a1cf9236/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipe plot springs.png
Type: image/png
Size: 72696 bytes
Desc: not available
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210218/a1cf9236/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipe128.png
Type: image/png
Size: 19148 bytes
Desc: not available
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210218/a1cf9236/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spring.svg
Type: image/svg+xml
Size: 39282 bytes
Desc: not available
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210218/a1cf9236/attachment-0001.svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spring.ipe
Type: application/octet-stream
Size: 29301 bytes
Desc: not available
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210218/a1cf9236/attachment-0001.obj>


More information about the Ipe-discuss mailing list