Hello! I just read the reference of VTK5.2, and I foud that there are
no Allocate() method in the class of vtkDoubleArray or vtkIntArray. And
can I use the InsertValue instead of InsertNextValue if I specify the
actual point ID?<br>
Can I use it like this:<br><br>vtkIntArray *castkey = vtkIntArray::New();<br> castkey->SetName("cast_type");<br> castkey->Allocate(numPts); // Allocate the memory <br> for (int i=0; i<L; i++) for (int j=0;j<M; j++) for (int k=0; k<N; k++)<br>
{ <br> int idx = i*M*N+j*N+k;<br> castkey->InsertValue(idx, sgn.GetData()[idx] ); <br> }<br> output->GetPointData()-><div id=":8r" class="ii gt">AddArray(castkey);<br></div>
<br clear="all"><br>-- <br><a href="mailto:shenyanwen@gmail.com">shenyanwen@gmail.com</a><br>Mobile Phone:13476177952<br>Tel: 027-87558144<br>