<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2096" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Users,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Could anybody suggest as to why
is the following code regarding an array of pointers-to-vtkPoints giving RUNTIME
assertion in 1st line of the loop (where vtkPoints::New() is being
called)?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkPoints **newPts = NULL;<BR> for(int i=0;
i<10; i++)<BR> {<BR> newPts[i] =
vtkPoints::New();<BR> newPts[i]->InsertPoint(i, (double)i,
(double)(i+1), (double)(i+2));<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>A similar dynamica allocation of vtkActors works
perfectly fine!</FONT></DIV>
<DIV><FONT face=Arial size=2>(as suggested once by David Cole from Kitware, <A
href="http://public.kitware.com/pipermail/vtkusers/2005-March/078807.html">http://public.kitware.com/pipermail/vtkusers/2005-March/078807.html</A>).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>warm regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>D. Rathore</FONT></DIV></BODY></HTML>