SoTransform in new 1.3 Inventor loader ...

New Message Reply Date view Thread view Subject view Author view

Cedric Gautier (gce++at++syseca.fr)
Thu, 6 Apr 95 18:00:20 +0200


Hi ... I have just a little question about how to retains a DCS for a
dynamic transformation when an SoTransform is encountered in a Inventor
file ... because my differents trys seems not to work ! ...

Is that some kind of :

    DEF DCS Transform {
    translation 0 0 0
    rotation 0 0 1 0
    scaleFactor 1 1 1
    scaleOrientation 0 0 1 0
    center 0 0 0
    }

or

    DEF DCSfoo Transform {
    translation 0 0 0
    rotation 0 0 1 0
    scaleFactor 1 1 1
    scaleOrientation 0 0 1 0
    center 0 0 0
    }

or something else ? ... and what about using SoTranslation, SoRotation,
SoRotationXYZ, SoScale for marking another type of DCS ! ...

I tryed the simple following exemple with a pfuTravPrintNodes after to
get the name and type of performer nodes but it seems not to work ! ...
What am I doing wrong that way :

#Inventor V2.0 ascii

    DEF DCSfoo Transform {
        translation 0 0 0
        rotation 0 0 1 45
        scaleFactor 1 1 1
        scaleOrientation 0 0 1 0
        center 0 0 0
        }
        Cube {
        width 2
        height 2
        depth 2
        }

or that way

#Inventor V2.0 ascii

    DEF DCS Transform {
        translation 0 0 0
        rotation 0 0 1 45
        scaleFactor 1 1 1
        scaleOrientation 0 0 1 0
        center 0 0 0
        }
        DEF foo Cube {
        width 2
        height 2
        depth 2
        }

No DCS is found in the performer tree ! ... So where have I to put "DCS" or
"dcs" in the file to make the loader recognize it as a DCS ? ...

Thank's for any remarks ...

Cedric
gce++at++syseca.fr


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.