John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Covering a complex curved surface with a flat piece of fabric is not trivial. A more specific example, I was trying to make a seat cushin with a "bullnose" design, which entails taking a long rectangle and bending it into a "U" shape to form the top, bottom, and front; then add sides that are flat U's.
Given shapes carefully drawn on slightly larger pieces of cloth, the effort is to match the edges of the two U's. I'm sure someone with experience would simply chalk that up to "skill", knowing just how to match the edges, how it feels when it's stretched just right, etc.
But what about me, a humble programmer who has trouble even holding a needle?
If I mark the edge of the long piece with dots every 5mm (for example), then do the same along the side "U", then I can simply make sure each stitch hits the corresponding dot on each layer being joined. It's like the difference between impressionistic painting and drafting, and I'm back on "technical" turf.
Making accurate dots on a curve (not a straight line) is not easy, if it's to be accurate enough to be any good.
But a program, though, would find it simple. I can do sin's and cos's, measure off pi/2 inches, or whatever, without being bothered by the physical limitations of a tape measure.
In short, I want to write a Perl script to generate a pattern that I can print out.
It reminds me of when I was much younger, playing around with BASIC on simple computers, amusing myself (as well as learning a lot) by writing programs that drew "black hole" plots, perspective drawings, spirograph-type curves, etc.
Well, Perl doesn't have a PLOT statement, or LINETO, or anything like that built-in (sigh).
What should I use? I suppose a package designed for web graphics plots could work with a large (e.g. 180 dpi) bitmap. Any suggestions on one to use on a Windows system? But, it might be better to use a vector-based system. I heard something about a PDF writer. Is that something I can use to encapsulate vector art? Any vector-drawing things out there than I can then print out?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and sewing
by allolex (Curate) on Sep 10, 2003 at 20:35 UTC | |
|
Re: Perl and sewing
by perrin (Chancellor) on Sep 10, 2003 at 20:21 UTC | |
by John M. Dlugosz (Monsignor) on Sep 10, 2003 at 20:54 UTC | |
by perrin (Chancellor) on Sep 10, 2003 at 21:32 UTC | |
|
Re: Perl and sewing
by tachyon (Chancellor) on Sep 11, 2003 at 09:27 UTC | |
|
Re: Perl and sewing
by jdtoronto (Prior) on Sep 10, 2003 at 20:30 UTC | |
|
Re: Perl and sewing
by markguy (Scribe) on Sep 11, 2003 at 13:35 UTC | |
|
Re: Perl and sewing
by Willard B. Trophy (Hermit) on Sep 11, 2003 at 21:36 UTC |