[vtkusers] Structured Grid -vs- Structured Points
Sylvain Jaume
sylvain.jaume at kitware.com
Wed Nov 2 17:11:38 EST 2005
Hi Don Casteel,
The VTK book explains very well the different data types:
http://www.kitware.com/products/vtktextbook.html
Best,
Sylvain
don.casteel wrote:
>Thanks Jaume,
>
>Great explanation, (too bad the documentation doesn't spell this stuff
>out). I'll give it a try.
>
>Don Casteel
>
>-----Original Message-----
>From: Sylvain Jaume [mailto:sylvain.jaume at kitware.com]
>
>Sent: Wednesday, November 02, 2005 2:13 PM
>To: Casteel, Don
>Subject: Re: [vtkusers] Structured Grid -vs- Structured Points
>
>Hi Don Casteel,
>
>vtkStructuredPoints has the topology and the geometry of a rectangular
>grid.
>vtkStructuredGrid has the topology of a rectangular grid, but its
>
>geometry can be anything (like a distorted grid).
>
>To convert your vtkStructuredPoints (sPoints) to vtkStructuredGrid
>
>(sGrid), you need to define the new geometry:
>
>vtkPoints *newPoints = vtkPoints::New();
>for ( int i = 0; i < numPoints; i++ )
>newPoints->InsertNextPoint( sPoints->GetPoint(i) );
>
>vtkStructuredGrid *sGrid = vtkStructuredGrid::New();
>sGrid->SetDimensions( sPoints->GetDimensions() );
>sGrid->SetPoints(newPoints);
>
>Cheers,
>Sylvain
>
>don.casteel wrote:
>
>
>
>>Is there a difference between Structured Grid and Structured Points?
>>
>>Some of the functionality I need is available for a StructuredGrid,
>>
>>
>
>
>
>>and some is available for StructuredPoints, but I can't find any way
>>
>>
>
>
>
>>to convert one to another?
>>
>>For instance, if I want to read in a series of BMP files, use x,y, and
>>
>>
>
>
>
>>slice number for the grid, and use RGB as vectors, then introduce
>>
>>
>
>
>
>>streamlines, it seems I need to be able to convert from
>>
>>
>
>
>
>>StructuredPoints to a StructuredGrid but I can't find a way to do
>>
>>
>this?
>
>
>>What am I not understanding?
>>
>>Thanks
>>
>>Don Casteel
>>
>>
>>
>>
>************************************************************************
>****************
>
>
>>Note: If the reader of this message is not the intended recipient, or
>>
>>
>
>
>
>>an employee or agent responsible for delivering this message to the
>>
>>
>
>
>
>>intended recipient, you are hereby notified that any dissemination,
>>
>>
>
>
>
>>distribution or copying of this communication is strictly prohibited.
>>
>>
>
>
>
>>If you have received this communication in error, please notify us
>>
>>
>
>
>
>>immediately by replying to the message and deleting it from your
>>
>>
>
>
>
>>computer. Thank you.
>>
>>
>>
>>
>************************************************************************
>****************
>
>
>>-----------------------------------------------------------------------
>>
>>
>-
>
>
>>_______________________________________________
>>This is the private VTK discussion list.
>>
>>
>
>
>
>>Please keep messages on-topic. Check the FAQ at:
>>
>>
>http://www.vtk.org/Wiki/VTK_FAQ
>
>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>
>
>
>
>****************************************************************************************
>
>Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
>
>
>****************************************************************************************
>
>
>
More information about the vtkusers
mailing list