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
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
- 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}
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}
- 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.