Subject:
|
Re: I found an LDRAW importer for Google SketchUp
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Thu, 2 Nov 2006 20:31:33 GMT
|
Viewed:
|
3207 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 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
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: I found an LDRAW importer for Google SketchUp
|
| Hello, I just wanted to say hi and that I am trying to work on the plugin everyday. Even so, it's a slow process. I have some basic functionality but there are a lot of problems. Right now, it's posible to import primitives, parts, and models. (...) (18 years ago, 2-Nov-06, to lugnet.cad, FTX)
|
16 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|