info-inventor
[Top] [All Lists]

Re: Inquiring mind has a question

To: info-inventor@xxxxxxxxxxx
Subject: Re: Inquiring mind has a question
From: Ole-Morten Duesund <olemd@xxxxxxx>
Date: Tue, 19 Dec 2000 19:35:31 +0100 (CET)
In-reply-to: <10012190940.ZM11943@ernie>
Sender: owner-inventor@xxxxxxxxxxx
On 19 Dec, Matthias Stiller wrote:
> Hello together,
> 
> I don't know if this question is specific to the open source version of
> inventor but I hope that someone here can answer it.
> 
> I wonder why there are some restrictions in setting node names. For example
> Node names beginning with numbers are not allowed and will get changed, e.g.
> 

I guess Paul Strauss' answer explains why there are restrictions on the
name.

> 4superbname will be changed to _4superbname.
> 
> Furthermore characters like . and others are not allowed. Is there a special
> reason for this behaviour ?
> 
> The problem for me is that I am getting these names directly from CAD-Files 
> and
> I need the possibility to keep those names 100%. Is it possible to change this
> behaviour (maybe by setting an define _DONT_USE_NAMECONVENTION)

Sounds like you need SoInfo :
<man SoInfo> 
...
DESCRIPTION
       This class defines a information node in the scene  graph.
       This  node  has  no effect during traversal. It is used to
       store information in the scene graph, typically for appli-
       cation-specific  purposes,  copyright  messages,  or other
       strings. This node differs from the SoLabel node  in  that
       it  stores  its  information  in an SbString instead of an
       SbName; the SbString is more efficient  for  storing  long
       strings  that don't have to be accessed very often. Use an
       SoLabel node for short strings that have  to  be  accessed
       more often.
...

-- 
Ole-Morten Duesund
----------------------------------------------------------------------
 _______________________________________________________________________________
/\                                                                              
\
\_| I used to have nightmares that the Grinch's dog would kidnap me and make me 
|
  | dress up in a halter-top and hot pants and listen to Burl Ives records.     
|
  |                 -- Robin, "Anything But Love", 12/18/91.                    
|
  |   
__________________________________________________________________________|_
   
\_/____________________________________________________________________________/


<Prev in Thread] Current Thread [Next in Thread>