[vtkusers] Newbie question on Unstructured Grid

Agah D. Garnadi garnadi at caesar.de
Mon Oct 30 04:24:33 EST 2000


Hallo there,

I
I have a set of scalar data  over unstructured Grid.
My Unstructured Grid topology (i.e. Cells ) are edges : VTK_LINE.
Hacking from some examples, I obtain some results.
Ok, so far so good.

However, I would like to view my data over triangle.  Unfortunately, I
stumbled into a wall.
Nothing happens, as if I view my data with the underlying cells are
edges.
Is there anyone out there lend me a hand to rectify my logic ?

Here is my filters sequence snippet :

/------ snip----------/

cruc_temp = vtkGeometryFilter::New();
    cruc_Temp->SetInput(extractGrid->GetOutput());

cruc_tri = vtkTriangleFilter::New();
    cruc_tri->SetInput(cruc_temp->GetOutput());
    cruc_tri->PassLinesOn();

p2c = vtkPointDataToCellData::New();
    p2c->SetInput(cruc_tri->GetOutput());
    p2c->GetPassPointData();
    p2c->PassPointDataOn();

cruc_tempMapper = vtkDataSetMapper::New();
    cruc_tempMapper->SetInput(p2c->GetOutput())

/---- snip-----------------/

without PointDTCellD filter, and fed in the cruc_tri into Mapper, I got
my pretty picture over my grid lines.
So I insert  PointToCell filter.
But I didn't get my values over the triangle. Are there anyone out there
able to pin point where am I doing wrong ?

Cheers,

--
Agah D. Garnadi


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20001030/8391ec65/attachment.htm>


More information about the vtkusers mailing list