Re: DEF-USE

Chris Marrin ([email protected])
Mon, 5 Jun 1995 09:53:26 -0700


> ...
> >variable, then use it later in a function, DEF actually names an object
> >AND inserts it into a scene graph at the point of definition.
> >
> >I just want to clear up any potential confusion.
>
> Chris, could you clear up my confusion, I thought this would create two
> instances of Bob, but stored as a single data-structure in the scene
graph...

Sorry for the confusion. DEF foo <object> USE foo will put 2 instances in
the graph but only one copy of the object need exist. This is, of course,
an implementation issue but Qvlib does it that way. In the latest version
Paul added reference counting so the object will have a reference count of
2.

-- 
chris marrin      Silicon      http://www.sgi.com/Products/WebFORCE/WebSpace
(415) 390-5367    Graphics     http://reality.sgi.com/employees/cmarrin/
[email protected]   Inc.         
         "As a general rule, don't solve puzzles that open portals to Hell."