ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: CreateField()
Sender: mutafchiev@gmx.de 5.06.07 09:38

Hello,

I have a question about CreateField() Method.
I want to create IndexedFaceSet and later to fill appearance and the geometry. That's why I want to create first one field
and later with Add() Method to put geometry-Node and the appearance-Node or with Assigh() Method to add them as fields.
I tried this way:

// Simple vrml scene IndexedFaseSet Not Convex
OLECHAR faceSet[] = L" \
Shape {\
appearance Appearance {\
material Material {}\
}\
geometry IndexedFaceSet {\
coord Coordinate {\
point [ -4 4 -3, 0 6 -4, 2 5 -2]\
}\
coordIndex [ 0 1 2 ] \
solid FALSE convex TRUE \
}\
}";

CComPtr<INodeObject> dummiObject;    
m_Engine->CreateNodeFromString( CComBSTR(faceSet), &dummiObject);
    
CComPtr<IFieldObject> dummiField;    
OLECHAR type[] = L"MFNode";
OLECHAR node_name[] = L"DummiField";
m_Engine->CreateField( type, & dummiField);

but it does not work bacause CreateField() does not create
"MFNode" and I can not use the MFNode.Add Method.
Can somebody resolve this problem.

 


CreateField() / mutafchiev@gmx.de / 5.06.07 09:38
     Re: CreateField() / nalex@parallelgraphics.com / 5.06.07 10:33
         Re: CreateField() result is 0 / mutafchiev@gmx.de / 5.06.07 10:42
             Re: CreateField() result is 0 / nalex@parallelgraphics.com / 5.06.07 11:03
                 Re: CreateField() result is 0 / mutafchiev@gmx.de / 6.06.07 03:12
                     Re: CreateField() result is 0 / nalex@parallelgraphics.com / 6.06.07 04:19
                         Re: CreateField() result is 0 / nalex@parallelgraphics.com / 6.06.07 04:20
                             Re: CreateField() result is 0 / mutafchiev@gmx.de / 6.06.07 10:40
         Re: CreateField() / mutafchiev@gmx.de / 5.06.07 10:35

Messages in thread: 9


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.