To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.partsOpen lugnet.cad.dat.parts in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / 3495
3494  |  3496
Subject: 
Re: What about BFC-ing studs? (was: Two questions on primitives)
Newsgroups: 
lugnet.cad.dat.parts, lugnet.cad.dat.parts.primitives, lugnet.cad.dev
Date: 
Wed, 3 Apr 2002 15:46:39 GMT
Viewed: 
2889 times
  
In lugnet.cad.dat.parts, Tony Hafner wrote:

Okay... if this is the case, then what's the status on bringing the
less-primitive primitives into BFC certification?

Sorry, I got distracted.  I'll get back to BFC'ing and submitting those
primitives.

[snip]

But bottom studs are quite commonly used upside-down (ie a negative y size).
This means that either:
- The primitive has to be certified in a really odd way
   (top disc as you look at the raw primitive is flipped)
- All parts that use the stud need to be redone to handle
   the stud in the "correct" orientation (and INVERTNEXT
   won't work right because then the cylinders get
   hosed... right?)

You're working on an incorrect assumption here.  Reflecting a subfile
(ie, negating the multipliers for one dimension) will not invert the
subfile.  Reflection is frequently used in LDraw files, and has never
been intended to imply inversion.  Take a look at <part: 3935 Wing 4 x 4
Right>.  It only has a single line of code: a reflection of <part: 3936
Wing 4 x 4 Left>.

Since reflection is an allowed operation on subfiles, BFC-capable
rendering programs have to detect reflection and make accomodations for
it (since reflection reverses the vectors used in BFC processing).

The part author (or person BFC'ing existing part files) doesn't have to
take any special steps to deal with cases of reflected subfiles.

We went around and around on this awhile ago; I had figured that
reflection would handle all inversions, and no separate statement or
coding would be necessary.  I don't remember the technical reasons now,
but relying on reflections for inverting subfiles is not a good way to
go.  Besides being a lot of work to straighten out all the existing
code. :)

Steve



Message is in Reply To:
  What about BFC-ing studs? (was: Two questions on primitives)
 
(...) Okay... if this is the case, then what's the status on bringing the less-primitive primitives into BFC certification? Take studs for example. Studs strike me as a great candidate for getting BFC'd because of the potentially huge payoff. Of (...) (23 years ago, 2-Apr-02, to lugnet.cad.dat.parts, lugnet.cad.dat.parts.primitives, lugnet.cad.dev)

10 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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