To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 15935
15934  |  15936
Subject: 
Dealing with bad lines of L(EGO)Draw parts (tutorial)
Newsgroups: 
lugnet.cad
Date: 
Thu, 8 Jan 2009 15:24:42 GMT
Viewed: 
9080 times
  
LDraw parts converted from the LEGO Universe Team data suffer from some erroneous edge lines and conditional lines. The conversion tool uses only the angle between facets to decide whether a normal line or an edge line must be created. With a well chosen threshold this algorithm gives a good but not perfect result. Some edge lines are present where they should not (these are easy to delete) but some are missing, and creating them is not so easy!

Here is a practical process to deal with this issue.

The part as we received from LEGO Universe Team:



The first step will be to process the file with Lee Gaiteri’s Edger to create missing conditional lines (the conversion process does not create conditional lines for concave surface junctions). These conditional lines are appended to the part file.

Using a good text editor, change all occurences of “/new line/5 24” with “/new line/2 4”. This effectively transforms all conditional lines into red edge lines (extraneous data from control points is ignored):



Then begins the tedious manual process. Load the file in MLCad, and change color of wrong lines (set them “edge color” for normal lines, red for conditional lines). Note that selecting lines is eased if you use thick lines. (Settings > General > Change, Rendering tab, chose line width 2 or 3).



When you are finished, check the result with LDView:



If everything is OK, in MLCad select all red elements using the “select same color” tool and delete them:



Process again the resulting file with Edger to recreate conditional lines and append them to part file:



Happy parts cleaning !!!

Philo



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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