| | | | |
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 dont 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 isnt apparent, or
youre not familiar with C++, let me know and Ill describe it for you.
I dont know if sketchup has a concept of front and back faces for polygons (Im
guessing it does), but if it does, you wont be able to determine the proper
front surface of polygons for any parts that arent BFC-certified. You can,
however, automatically generate two polygons containing the same points with
opposite windings for any polgons where you dont know the winding.
--Travis
| | | | | | | | | | | | | 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 isnt apparent, or
youre not familiar with C++, let me know and Ill describe it for you.
|
I cant find it anywhere. I downloaded the source from:
http://ldview.sourceforge.net/LDView-2101s.zip. Is this the right zip file?
| | | | | | | | | | | | | | | | | 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 isnt apparent,
or youre not familiar with C++, let me know and Ill describe it for you.
|
I cant find it anywhere. I downloaded the source from:
http://ldview.sourceforge.net/LDView-2101s.zip. Is this the right zip file?
|
No, thats not the right version, and doesnt have the file. You can get the
latest releases source from here:
http://prdownloads.sourceforge.net/ldview/LDView-3100s.zip?download
Ill update my downloads page to include direct links to the more current
source. Its obviously confusing at the momemt.
--Travis
| | | | | | | | | | | | | | | | | Just FYI, I updated the LDView downloads page, and its 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
| | | | | | | | | | | | | | | | | | In lugnet.cad, Travis Cobbs wrote:
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.
| | | | | | | | | | | | | | | | | | In lugnet.cad, Travis Cobbs wrote:
Tanks Travis, I got it working. Your code was neat and clear; you must do it
professionally.
Heres a before and after:
| | | | | | |