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.
|
|