To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9379
9378  |  9380
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: primer/tutorial on BFC?
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 31 Dec 2003 01:35:04 GMT
Viewed: 
1849 times
  
In lugnet.cad.dev, Andrew Westrate wrote:
For the two-dimensional primitives (disc, ndis, ring, chrd) you can do the
following:

Say you have a disc in the x-z plane, like:
1 16 0 0 0 10 0 0 0 1 0 0 0 10 4-4disc.dat

If this has the wrong BFC winding, you can just flip (mirror) the primitive by
changing the matrix to:
1 16 0 0 0 10 0 0 0 -1 0 0 0 10 4-4disc.dat

Any reason why that isn't valid?  (I do it all the time)

That shouldn't work -- the rendering program should detect that you've mirrored the
object, and adjust accordingly.  Unfortunately, I see that it does 'work' in L3Lab.
LDView is crashing my system right now, so I couldn't check it.

What you should do is flip the 2D object.  Inverting both X and Y is the same as
rotating 180 degrees around the Z axis:
1 16 0 0 0 -10 0 0 0 -1 0 0 0 10 4-4disc.dat

Steve



Message has 2 Replies:
  Re: primer/tutorial on BFC?  [DAT]
 
(...) I do agree that it isn't supposed to work, because the BFC spec very carefully states that any polygons drawn with an aggregate matrix that causes mirroring must be flipped back. (...) I'm sorry that LDView is crashing your system, but it (...) (21 years ago, 3-Jan-04, to lugnet.cad.dev)
  Re: primer/tutorial on BFC?
 
(...) If this is the case then we need to go back through all the BFC'd parts and find instances of this type of matrix. Since L3Lab allows inverting the sign of the Y component and it's currently the only program to easily check for correct (...) (21 years ago, 3-Jan-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: primer/tutorial on BFC?  [DAT]
 
(...) For the two-dimensional primitives (disc, ndis, ring, chrd) you can do the following: Say you have a disc in the x-z plane, like: 1 16 0 0 0 10 0 0 0 1 0 0 0 10 4-4disc.dat If this has the wrong BFC winding, you can just flip (mirror) the (...) (21 years ago, 30-Dec-03, to lugnet.cad.dev)

19 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