[vtkusers] Calculating Dimensions from vtkPoints

Brian Curtis bcurtis3 at masonlive.gmu.edu
Thu Jul 5 09:35:04 EDT 2012


Hi David,

Thanks for your reply.

The bounds will compute x,y,z min/max but not number of points for
each dimension. Number of points is what SetDimensions() looks for. My
point set is large and I was hoping that VTK would have a handy
function to gather that information from large point sets. Is this
possible?

~Brian

On Tue, Jul 3, 2012 at 10:59 AM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Jul 3, 2012 at 10:56 AM, Brian Curtis <bcurtis3 at masonlive.gmu.edu>
> wrote:
>>
>> Hi there,
>>
>> I have a set of points, inserted into vtkPoints to which I would like
>> the dimensions from.
>> Is there a .cxx method to compute/get that information from vtkPoints.
>> Should I put the points into something else that will make it easier
>> to get dimensions from? If so what?
>>
>> Thanks for your help.
>> ~Brian
>
>
> Do you mean the "bounds" of the points?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataBounds
>
> Note that this function works on vtkPoints directly as well.
>
> David



-- 
=================
Doctoral Candidate in Computational Sciences and Informatics
School of Physics Astronomy and Computational Sciences
George Mason University
4400 University Drive MSN6A2
Fairfax, VA 22030
=================



More information about the vtkusers mailing list