Hi List,

since last night im Fighting against C++ and its looking bad for me right now...

For now i just want to get the Absolute Index of a IndexSet.... But somehow this brakes. In my ScriptLog everything seems fine, but in my ICE-Tree i get different Results.

There might just be a simple Error... but i just dont get it...

OutPuts:
ID:    Log:    ICE:
0        0        1
1        1        1
2        2        3
3        3        3
4        4        5
5        5        6
....

Here are the last Lines of my Code wich aren't OutCommented

[Code "Register"]
/    st = nodeDef.AddOutputPort(    ID_OUT_StrandPos,//
//                                siICENodeDataVector3,//
//                                siICENodeStructureArray,//
//                                siICENodeContextComponent0D,//
// L"Strand Positions",L"Strand Positions");//
//    st.AssertSucceeded( ) ;/
[Code End]

[Code "... Evaluate"]
/            CDataArray2DVector3f outData( in_ctxt );//
//
//            CIndexSet indexSet( in_ctxt );//
// for(CIndexSet::Iterator it = indexSet.Begin(); it.HasNext(); it.Next())//
//            {//
// CDataArray2DVector3f::Accessor aOut = outData.Resize( it, 1 );//
//                k = it.GetAbsoluteIndex();//
//
//                Application().LogMessage(    "k: " + CString(k)    );//
//                aOut[0].Set( k, 0, 0); //
//            }/
[Code End]

PS:
Of course this isnt the Code i aim for.
Its just my actual Debugging state. Later i want to have a Array-per-Point-Context, therefor i (suppose) need the 2D-Array

A solution would be to Build a similar Construct like, in the Load-Alembic-Curves-Compound (output a Big VectorArray and SizeArray, and reSelecting them to a per Point-Context in ICE itself). But i think its cleaner to solve this right in the node itself.

Reply via email to