<P> Brad King <<A href="mailto:brad.king@kitware.com">brad.king@kitware.com</A>> wrote:<BR> > vtkSmartPointer cone =<BR> > vtkSmartPointer::New();<BR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</P>
<P> There is a special New() method in the vtkSmartPointer that returns a<BR> smart pointer to an object with a total reference count of 1.</P>
<P>So, that's what I missed.<BR> typedef vtkSmartPointer<vtkConeSource> vtkConeSourcePtr;</P>
<P> vtkConeSourcePtr cone = vtkConeSourcePtr::New();<BR>doesn't compile.<BR>I use "vtk42-LatestRelease.exe".<BR>I will do a CVS update.<BR>So this is a "fresh feature".<BR>When will it be added in an official release ?<BR>Does-it mean that in the future vtkSmartPointer will be often used ?</P><BR><BR>Aurélien REGAT-BARREL<p>Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !<br> Créez votre adresse sur http://mail.yahoo.fr