To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.announceOpen lugnet.announce in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Announcements / 3772
     
   
Subject: 
New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.announce, lugnet.cad.dev, lugnet.vikings, lugnet.castle
Followup-To: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Wed, 7 May 2008 13:15:46 GMT
Highlighted: 
! (details)
Viewed: 
47429 times
  



This new tool allows easy creation of non-flat patterned LDraw parts. Create a flat pattern and stamp it on a 3D former.

Program, documentation, source code are available here.

To show the usefulness of this tool, I created the four Viking shields:

available on LDraw Parts Tracker.

Enjoy!

Philo

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Wed, 7 May 2008 16:14:30 GMT
Viewed: 
34924 times
  

In lugnet.announce, Philippe Hurbain wrote:

   This new tool allows easy creation of non-flat patterned LDraw parts. Create a flat pattern and stamp it on a 3D former.

What a clever tool. That seems like it will be very useful!

Jim

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 7 May 2008 20:59:41 GMT
Viewed: 
10299 times
  

Wow! That is very cool! I’m going to have to find a curved piece in one of my models that needs a pattern and try it out.

Thanks! Scott

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Wed, 7 May 2008 21:43:27 GMT
Viewed: 
35360 times
  

Very nice. I don’t author parts, so I won’t be trying it out. However, I looked at your tutorial, and I have two suggestions:
  • Add “Un-Project”, where it takes a projected shape and flattens it automatically on an axis specified by the user (X, Y, or Z).
  • Automatically split pattern polygons so that they don’t cross any polygon boundaries of the template part. Use the un-projected geometry that you generated in the above as the “pre-projected” template, and do the splitting while the pattern is still flat.
The first feature above is probably pretty trivial. The second one would likely be a lot more work, but would make the tool a whole lot more powerful.

--Travis

    
          
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 11:34:03 GMT
Viewed: 
35401 times
  

In lugnet.cad.dev, Travis Cobbs wrote:
   Very nice. I don’t author parts, so I won’t be trying it out. However, I looked at your tutorial, and I have two suggestions:
  • Add “Un-Project”, where it takes a projected shape and flattens it automatically on an axis specified by the user (X, Y, or Z).
  • Automatically split pattern polygons so that they don’t cross any polygon boundaries of the template part. Use the un-projected geometry that you generated in the above as the “pre-projected” template, and do the splitting while the pattern is still flat.
The first feature above is probably pretty trivial. The second one would likely be a lot more work, but would make the tool a whole lot more powerful.

--Travis

For unproject MLCad does the job. Symply select everything and set the appropriate matrix row at 0. This is perfect for triangle, quads... If you have primitives you have to later automatically fix the “all zero matrix row” using LDDP.

The pattern split program is actually a special case of a tool I consider writing for a long time. It would take two sheets of tri/quads and cut them at the intersection between the sheets. I am slowly clearing my mind about the whole process... so some day I’ll try to write it. But it is far from obvious!!!

Also if you manually build the pattern as an overlay of the original shape, you optimize it (eg avoid teeny triangles), something an automatic cut wouldn’t do.

Philo

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Wed, 7 May 2008 23:21:58 GMT
Viewed: 
35394 times
  

In lugnet.announce, Philippe Hurbain wrote:
  

This new tool allows easy creation of non-flat patterned LDraw parts. Create a flat pattern and stamp it on a 3D former.

Program, documentation, source code are available here.

To show the usefulness of this tool, I created the four Viking shields:

available on LDraw Parts Tracker.

Enjoy!

Philo

Wow. Awesome. I’ve been meaning to write something like this for ages so I’m very happy. Would it work on minifig faces too?

Tim

    
          
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 07:29:08 GMT
Viewed: 
35763 times
  

In lugnet.cad.dev, Timothy Gould wrote:
   Wow. Awesome. I’ve been meaning to write something like this for ages so I’m very happy. Would it work on minifig faces too?

It should. One interesting aspect is that while photo/scan distorts the pattern, flattening the shape to put it in quad2dat does the same distortion so they compensate each other!

Philo

    
          
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 08:09:17 GMT
Viewed: 
35588 times
  

In lugnet.cad.dev, Philippe Hurbain wrote:
   In lugnet.cad.dev, Timothy Gould wrote:
   Wow. Awesome. I’ve been meaning to write something like this for ages so I’m very happy. Would it work on minifig faces too?

It should. One interesting aspect is that while photo/scan distorts the pattern, flattening the shape to put it in quad2dat does the same distortion so they compensate each other!

Philo

I was curious if it was a direct projection or an area preserving one. A nice variant might be to write an area preserving variant although that would get quite complex.

Tim

    
          
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 08:54:53 GMT
Viewed: 
35641 times
  

In lugnet.cad.dev, Timothy Gould wrote:
   In lugnet.cad.dev, Philippe Hurbain wrote:
   In lugnet.cad.dev, Timothy Gould wrote:
   Wow. Awesome. I’ve been meaning to write something like this for ages so I’m very happy. Would it work on minifig faces too?

It should. One interesting aspect is that while photo/scan distorts the pattern, flattening the shape to put it in quad2dat does the same distortion so they compensate each other!

Philo

I was curious if it was a direct projection or an area preserving one. A nice variant might be to write an area preserving variant although that would get quite complex.

Tim

It’s a direct parallel projection. I think it’s the best since the photo (with a long focal lens) or a scan has the same projection.

Philo

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 10:32:34 GMT
Viewed: 
35031 times
  

In lugnet.announce, Philippe Hurbain wrote:
  
This new tool allows easy creation of non-flat patterned LDraw parts. Create a flat pattern and stamp it on a 3D former.

Program, documentation, source code are available here.

This is great! Like Tim, I’d been thinking about writing a tool like this for a long time. Thank you very much for making this available.

Steve

   
         
     
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Thu, 8 May 2008 11:58:40 GMT
Viewed: 
30510 times
  

In lugnet.announce, Philippe Hurbain wrote:
This new tool allows easy creation of non-flat patterned LDraw parts. Create
a flat pattern and stamp it on a 3D former.

Philo! Awesome tool, can hardly wait to check it out. I've been waiting for a
long, long time for such a prog.

w.

   
         
   
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Tue, 10 Jun 2008 21:00:06 GMT
Viewed: 
35677 times
  

Reading your tutorial made me wonder whether scans of the orignal parts could be vectorized using Inkscape (Inkscape includes an automatic raster-to-vector converter). The resultant SVG (Scalable Vector Graphics) file could then maybe be converted to a “flat” LDraw file. One would then proceed normally as outlined in your tutorial.

-Mike

   
         
   
Subject: 
Re: New Ldraw parts authors tool: Projector
Newsgroups: 
lugnet.cad.dev, lugnet.vikings, lugnet.castle
Date: 
Wed, 11 Jun 2008 08:21:36 GMT
Viewed: 
36596 times
  

In lugnet.cad.dev, Michael Horvath wrote:
   Reading your tutorial made me wonder whether scans of the orignal parts could be vectorized using Inkscape (Inkscape includes an automatic raster-to-vector converter). The resultant SVG (Scalable Vector Graphics) file could then maybe be converted to a “flat” LDraw file. One would then proceed normally as outlined in your tutorial.

Hi Mike,

Yes, I considered this possibility in the beginning, but I was not convinced by the vectorization process. One key issue is that silk-screened parts are far from perfect (misprints, color registration problems...). I found that cleaning all these defects would probably be harder than the manual vectorisation process.

And would remain the issue of a flat pattern that need to be cut along former polygon boundaries... but I am working on this one!

Philo

 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR