Re: Rephrase: Objects in strings

New Message Reply Date view Thread view Subject view Author view

Daniel Williams (dwilliams++at++sarnoff.com)
Tue, 14 Apr 1998 09:06:38 -0400


William Sherman wrote:
>
> The gist of what I am looking for is not the ability to turn
> strings into Performer objects, but to turn the objects described
> by the strings into Performer objects.
>

    pfdResetBldrGeometry ();
    pfdResetBldrState ();

    SoInteraction::init ();

    SoInput in;
    in.setBuffer (your_string, strlen (your_string));
    SoSeparator* root = SoDB::readAll (&in);
    if (root) {
        root->ref ();
        //
        // manual page has signature wrong
        //
        pfNode* scene_graph = pfdConvertFrom (root, ".iv");
        root->unref ();
        return (scene_graph);
    }
    else
        return (NULL);

--
Daniel Williams, Systems & Scientific Software
Voice: (215) 885-1573 Email: sass++at++acm.com
Independent Consultant to: Sarnoff Corporation
Voice: (609) 734-2153 Email: dwilliams++at++sarnoff.com
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:57:14 PDT

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