|
![](/i/fill.gif) |
Marty Schrader <mar### [at] parsecsystemsinc com> wrote:
> Okay, this is the kind of thing I am trying to sort out. If, for instance, I
> want to make a nose cone component, how do I specify the creation of that shape
> without any reference to whatever other parts may be there in the scene already?
The way to not affect other components is to keep your namespace
clean/consisitent and as Alain said, choose some standards like always
orienting things a certain way. So if you have multiple nosecone types, if
it were me I'd do something like #macro NoseCone_Type_1() rather than
NoseCone() Still, objects that have already been placed in a scene won't
be deleted even if their names get overwritten.
> How do I go about creating macros or whatever so that individual parts can be
> included or not without affecting other components?
You can always put one macro per include file as some people (not myself)
advocate. #ifndef() is very handy for checking to see if something's been
included already or not.
#charles
Post a reply to this message
|
![](/i/fill.gif) |