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 / 14166
     
   
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Thu, 2 Nov 2006 20:31:33 GMT
Viewed: 
3008 times
  

In lugnet.cad, Jim Foltz wrote:
   As a side note, there is at least one part that gives me problems: 6120.dat . Importing 6120.dat (minifig ski) gives me ski. I can fix this by switching the order of the vertices in the .dat file, but I don’t know how to automatically detect which order to use in the plugin.

If you look at LDLoader/LDLQuadLine.cpp in the LDView source code, you will find my code for fixing the winding of bow-tie quads. (Specifically, look at LDLQuadLine::swapPointsIfNeeded.) If the algorithm I use isn’t apparent, or you’re not familiar with C++, let me know and I’ll describe it for you.

I don’t know if sketchup has a concept of front and back faces for polygons (I’m guessing it does), but if it does, you won’t be able to determine the proper front surface of polygons for any parts that aren’t BFC-certified. You can, however, automatically generate two polygons containing the same points with opposite windings for any polgons where you don’t know the winding.

--Travis

   
         
   
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Thu, 2 Nov 2006 22:38:36 GMT
Viewed: 
3007 times
  

In lugnet.cad, Travis Cobbs wrote:
  

If you look at LDLoader/LDLQuadLine.cpp in the LDView source code, you will find my code for fixing the winding of bow-tie quads. (Specifically, look at LDLQuadLine::swapPointsIfNeeded.) If the algorithm I use isn’t apparent, or you’re not familiar with C++, let me know and I’ll describe it for you.

I can’t find it anywhere. I downloaded the source from: http://ldview.sourceforge.net/LDView-2101s.zip. Is this the right zip file?

   
         
   
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Thu, 2 Nov 2006 23:34:21 GMT
Viewed: 
3130 times
  

In lugnet.cad, Jim Foltz wrote:
   In lugnet.cad, Travis Cobbs wrote:
  

If you look at LDLoader/LDLQuadLine.cpp in the LDView source code, you will find my code for fixing the winding of bow-tie quads. (Specifically, look at LDLQuadLine::swapPointsIfNeeded.) If the algorithm I use isn’t apparent, or you’re not familiar with C++, let me know and I’ll describe it for you.

I can’t find it anywhere. I downloaded the source from: http://ldview.sourceforge.net/LDView-2101s.zip. Is this the right zip file?

No, that’s not the right version, and doesn’t have the file. You can get the latest release’s source from here:

http://prdownloads.sourceforge.net/ldview/LDView-3100s.zip?download

I’ll update my downloads page to include direct links to the more current source. It’s obviously confusing at the momemt.

--Travis

   
         
   
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Fri, 3 Nov 2006 04:56:04 GMT
Viewed: 
3182 times
  

Just FYI, I updated the LDView downloads page, and it’s now much more clear how to get the current LDView source code. The source code section of that page is here:

http://ldview.sourceforge.net/Downloads.html#SourceCode

--Travis

   
         
     
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Fri, 3 Nov 2006 16:54:45 GMT
Viewed: 
3160 times
  

In lugnet.cad, Travis Cobbs wrote:
   Just FYI, I updated the LDView downloads page, and it’s now much more clear how to get the current LDView source code. The source code section of that page is here:

http://ldview.sourceforge.net/Downloads.html#SourceCode

--Travis

Thanks Travis, I will have a look.

In the mean time, I have been using the blog to announce the importer/exporter updates. Sketchy Endeavors.

   
         
   
Subject: 
Re: I found an LDRAW importer for Google SketchUp
Newsgroups: 
lugnet.cad
Date: 
Sat, 4 Nov 2006 06:09:44 GMT
Viewed: 
3219 times
  

In lugnet.cad, Travis Cobbs wrote:
   Just FYI, I updated the LDView downloads page, and it’s now much more clear how to get the current LDView source code. The source code section of that page is here:

http://ldview.sourceforge.net/Downloads.html#SourceCode

--Travis

Tanks Travis, I got it working. Your code was neat and clear; you must do it professionally.

Here’s a before and after:





 

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