"Wrapping" Tool


Creation of LPC 3D templates example
#19
Quote:so {60 48; 60 -48; -60 -48; -60 48} I understand is a quad. but what does {2 96 10; 2 0 10; 2 0 130; 2 96 130} define?
The first part defines the area in LPC plane (quad) that will be mapped it 3D world on the quad whose coordinated are given in the second part.


I just created a template for a 6005 sticker, here is the method I used.
- Create the top surface of formed sticker, using front surface of 6005 part (file 6005StickerTemplateBase.dat)
- Inline every primitives and leave only required lines (file 6005StickerTemplate.dat)
- Launch LPC, and File -> import from dat -> project on XY front -> import projection data -> select 6005StickerTemplate.dat
- We now see the shape of sticker, with quads forming the curve getting flatter and flatter (and more and more useless...) as we approach top of curve. Thansform this imported projection data into a template: File -> projection data->template (the green lines turn light brown.
- This creates a template file, named _New_Template_1.txt (number may change if you repeat this process!). This file is located in C:\Documents and Settings\Philo\Application Data\Nils Schmidt\LDPatternCreator\template (exact location depends on Windows version).
- We are now going to transform this template to make all quads equal, with the right height, so that we can use a flat image of sticker to draw pattern. This is the painful, tedious and error prone step that would need to be automated with a script... A bit of trigonometry gives the height of each quad (5.265 ldu).
- Using this information, we change height of the quads drawn on screen by LPC
Code:
-10 48
-10 40
10 40
10 48
CUT
10 34.74738
10 40
-10 40
-10 34.74738
CUT
10 29.5833
10 34.74738
-10 34.74738
-10 29.5833
CUT
becomes
Code:
-10 48
-10 40
10 40
10 48
CUT
10 34.735
10 40
-10 40
-10 34.735
CUT
10 29.47
10 34.735
-10 34.735
-10 29.47
CUT
The first rectangle, base of part, is not part of curve and is unchanged, the second has its height slightly modified, the third has its base moved to compensate brevious quad changed, and its height changed to 5.265, and so on.
- In the same spirit, we change the planar to 3D transformation lines:
Code:
{-10 48; -10 40; 10 40; 10 48} {10 48 -50.25; 10 40 -50.25; -10 40 -50.25; -10 48 -50.25}
{10 34.747375; 10 40; -10 40; -10 34.747375} {-10 34.747375 -49.90385; -10 40 -50.25; 10 40 -50.25; 10 34.747375 -49.90385}
{10 29.5833; 10 34.747375; -10 34.747375; -10 29.5833} {-10 29.5833 -48.877475; -10 34.747375 -49.90385; 10 34.747375 -49.90385; 10 29.5833 -48.877475}
is changed to
Code:
{-10 48; -10 40; 10 40; 10 48} {10 48 -50.25; 10 40 -50.25; -10 40 -50.25; -10 48 -50.25}
{10 34.735; 10 40; -10 40; -10 34.735} {-10 34.747375 -49.90385; -10 40 -50.25; 10 40 -50.25; 10 34.747375 -49.90385}
{10 29.47; 10 34.735; -10 34.735; -10 29.47} {-10 29.5833 -48.877475; -10 34.747375 -49.90385; 10 34.747375 -49.90385; 10 29.5833 -48.877475}
- When this lengthy process is done, we save file as 6005_Sticker_Template.txtt in the template folder. Phew!
- We can now start again LPC and load this new template. All the quads of the curve now have the same height! Here is the LPC file of a quick test.

The image below shows LPC screen and resulting sticker.
   


Attached Files
.dat   6005StickerTemplate.dat (Size: 2.43 KB / Downloads: 5)
.txt   _New_Template_1.txt (Size: 3.77 KB / Downloads: 4)
.lpc   6005StickerTest.lpc (Size: 82.32 KB / Downloads: 1)
.txt   6005_Sticker_Template.txt (Size: 3.61 KB / Downloads: 5)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
"Wrapping" Tool - by Gerald Lasser - 2015-02-04, 10:06
Re: "Wrapping" Tool - by Michael Horvath - 2015-02-04, 10:19
Re: "Wrapping" Tool - by Max Martin Richter - 2015-02-04, 10:35
Re: "Wrapping" Tool - by Gerald Lasser - 2015-02-04, 11:48
Re: "Wrapping" Tool - by Philippe Hurbain - 2015-02-04, 10:42
Re: "Wrapping" Tool - by Gerald Lasser - 2015-02-04, 11:52
Re: "Wrapping" Tool - by Max Martin Richter - 2015-02-04, 12:11
Re: "Wrapping" Tool - by Nils Schmidt - 2015-02-05, 2:10
Re: "Wrapping" Tool - by Philippe Hurbain - 2015-02-05, 8:09
Creation of LPC 3D templates example - by Philippe Hurbain - 2015-02-05, 14:47
Re: "Wrapping" Tool - by Gerald Lasser - 2015-02-05, 8:23
Re: "Wrapping" Tool - by Max Martin Richter - 2015-02-05, 8:57
Re: "Wrapping" Tool - by Philippe Hurbain - 2015-02-05, 9:03
Re: "Wrapping" Tool - by Max Martin Richter - 2015-02-05, 9:59
Re: "Wrapping" Tool - by Gerald Lasser - 2015-02-05, 14:41
Re: "Wrapping" Tool - by Ben Supnik - 2015-02-04, 15:12
Re: "Wrapping" Tool - by Orion Pobursky - 2015-02-04, 18:56
Re: "Wrapping" Tool - by Gerald Lasser - 2015-02-04, 22:22
Re: "Wrapping" Tool - by Ben Supnik - 2015-02-05, 0:41

Forum Jump:


Users browsing this thread: 2 Guest(s)