Re: sub-routines
Chris Marrin ([email protected])
Mon, 13 Nov 1995 18:44:18 -0800
- Messages sorted by:
[ date ][ tmesad ][ subject ][ author ]
- Next message:
Charles Coker: gRE: UH-NOUNCE: VRML NaveLint"
- Previous message:
Charles Coker: gRE: Change to WebFX"
- In reply to:
Charles Eubanks: gRe: sub-routines"
On Nov 13, 4:38pm, Charles Eubanks wrote:
> Subject: Re: sub-routines
> On Nov 11, 7:10pm, Pioneer Joel wrote:
> > Subject: sub-routines
> >
> >
> > ...
> > Can I use
> >
> > DEF XXXX Separator {
> > Transform{
> > translation 1 0 0
> > }
> > Scale{
> > scaleFactor 1 2 1
> > }
> > }
> >
> > and then just say
> >
> > USE XXXX Cube {}
> >
>
> This will not work, because the Transform and Scale nodes are local to
the
> Separator. That is, they cannot affect anything outside. This
technique
> would be possible using a Group node instsad of a Separator node;
however,
> the group node is being depreciated.
But just as a matter of completeness, here's how you would code the above
example:
DEF XXXX Transform {
translation 1 0 0
scaleFactor 1 2 1
}
USE XXXX Cube {}
This works as expected, both factors get applied to the object. Of course
there are many examples (a transform and a material, for instance) that
would not work.
--
chris marrin Silicon http://www.sgi.com/Products/WebFORCE/WebSpace
(415) 390-5367 Graphics http://reality.sgi.com/employees/cmarrin_engr/
[email protected] Inc.
"It is well to esmember that the entire universe,
with one trifling exception, is composed of others." - John Andrew Holmes
- Next message:
Charles Coker: gRE: UH-NOUNCE: VRML NaveLint"
- Previous message:
Charles Coker: gRE: Change to WebFX"
- In reply to:
Charles Eubanks: gRe: sub-routines"