To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.ideasOpen lugnet.cad.dat.ideas in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Ideas / 219
218  |  220
Subject: 
Re: non-lego rendering using various LDraw tools
Newsgroups: 
lugnet.cad.dat.ideas
Date: 
Thu, 23 Sep 2004 23:45:13 GMT
Viewed: 
4536 times
  
In lugnet.cad.dat.ideas, Steve Bliss wrote:
   In lugnet.cad.dat.ideas, Don Heyse wrote:
   Err, reverse course. I peeked at the autotrace source and it says in pxl-outline.c “Outside outlines are traced counterclockwise”. So if you want to make things easier for me, do it that way. ;^)

OK. My edges already were counterclockwise. :) Umm, for inside outlines (inlines?) to be clockwise, that’s ‘clockwise’ from a global view, right? If so, then my inlines are already clockwise. But I don’t know which ones are inlines, and which one are outlines. :O

You lost me there. How could you not know which is which if they already go in the opposite direction? Just take a cross product at the topmost point. If it’s negative, then it’s clockwise and thus a hole.

Don



Message has 1 Reply:
  Re: non-lego rendering using various LDraw tools
 
(...) I mostly meant that I knew what their windings had to be (because of the way the edges are constructed), but the code isn't aware of it. However, like you say, it's easy enough to find an extreme point and test the winding. Steve (20 years ago, 24-Sep-04, to lugnet.cad.dat.ideas, FTX)

Message is in Reply To:
  Re: non-lego rendering using various LDraw tools
 
(...) OK. My edges already were counterclockwise. :) Umm, for inside outlines (inlines?) to be clockwise, that's 'clockwise' from a global view, right? If so, then my inlines are already clockwise. But I don't know which ones are inlines, and which (...) (20 years ago, 23-Sep-04, to lugnet.cad.dat.ideas, FTX)

8 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
    

Custom Search

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