[vtkusers] About vtkPoints::InsertPoint()

Chris Wedlake cwedlake at robarts.ca
Thu Apr 26 09:51:44 EDT 2012


x[3] is also not valid memory space which could be the issue.

- Chris Wedlake

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of David Doria
Sent: Thursday, April 26, 2012 9:49 AM
To: Robert Maynard
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] About vtkPoints::InsertPoint()

On Thu, Apr 26, 2012 at 9:42 AM, Robert Maynard <robert.maynard at kitware.com> wrote:
> To be extra clear, you are trying to insert a point into unallocated memory.
> Before calling SetPoint you need to first specify the number of points 
> you want stored with the call SetNumberOfPoints.

Robert,

Hm, actually after reading the description:
http://www.vtk.org/doc/nightly/html/classvtkPoints.html#ab7f990c73fb291737abe4203994ce2a2

it sounds like what he was doing originally with InsertPoint(n,x) should work? I've never used this function, but it sounds like you would NOT have to call SetNumberOfPoints prior to using InsertPoint (unlike using SetPoint). Is that correct? If so, I guess Wenlong's originally question stands? Wenlong - can you make a minimal working example that demonstrates your problem on one OS and not the other?

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list