Bug 50998 - add "coil" to draw basic shape menu
Summary: add "coil" to draw basic shape menu
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Drawing (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-12 02:30 UTC by cousteau
Modified: 2014-12-13 10:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description cousteau 2012-06-12 02:30:23 UTC
There's no easy way to draw springs, coils, sinusoids, etc.  The only way to do this is with a bézier curve (too much precision required), hand-drawn (even more), or with ellipse arcs (and everyone knows how ugly a "sinusoid" drawn with half ellipses is).

It might be a good idea to include a line shape that allowed to draw
* a sinusoid
* a "coil" or "spring"
* a cycloid or trochoid (I doubt anyone actually wants to draw this, but it would be a particular case of "coil")

The parametric formula (for a horizontal coil) is

  { x = t * L/2pi + e*H/2 * cos(t+t0)
  { y = H/2 * sin(t+t0)
  { for t = 0 ... W / (L/2pi)

where H is the height (amplitude), W the width (length), L the distance between loops (wavelength), e the eccentricity (e=0: sinusoid; e=1: trocoid; 0<e<1: another coil-shaped line), and t0 the initial phase.
Comment 1 tommy27 2014-12-13 10:11:49 UTC
enhancement request. inherited from OOo


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.