[vtkusers] RE: Quadratic triangle + linear edge - cell scalars incorrect (vtk 4.5)
John Platt
jcplatt at lineone.net
Mon May 24 17:08:03 EDT 2004
Hi Mathieu,
Hope the direct post is not too much of an intrusion but there appears
to be some problem with the list at the moment.
I tried your suggestion but it did not affect the output. To remove any
doubt on the scoping issue, I replaced
topology->InsertNextId( ptId++ );
topology->InsertNextId( ptId );
by
topology->InsertNextId( 6 );
topology->InsertNextId( 7 );
but still no change.
As for the suitability of VC++6 for real development, OK, I admit that
ParaView does cause it to crash if you double click
ParaviewComplete.dsw. Perhaps I should send the report to MS next this
happens? - or maybe you just need a multiprocessor machine (I did get it
to build) :-).
Many thanks for your suggestions and continued help.
John.
-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
Sent: 24 May 2004 20:50
To: John Platt
Cc: vtkusers at vtk.org
Subject: Re: Quadratic triangle + linear edge - cell scalars incorrect
(vtk 4.5)
John,
This is the problem with using VC++6 for real development :)
More seriously, VC++6 does not respect scoping for 'for', and
thus lead
people to make errors. Could you change your code :
for ( int ptId = 0; ptId < 6; ptId++ )
into
int ptId;
for ( ptId = 0; ptId < 6; ptId++ )
Only then you can later reuse ptId.
HTH
Mathieu
John Platt wrote:
> Hi Users,
>
>
>
> When I add a linear edge to an unstructured grid consisting of a
single
> quadratic triangle, the centre linear triangle of the triangulated
> quadratic triangle and the edge have swapped cell scalars - see
> attachment (triangle should be all red & edge blue).
>
>
>
> When either of the cells is drawn in isolation there is no problem.
>
>
>
> The cell scalars coming out of
> vtkDataSetSurfaceFilter::UnstructuredGridExecute() appear OK.
>
>
>
> Does anybody else have this problem? I have attached the c++ code just
> in case it is a fault on my part.
>
>
>
> Many thanks for your help.
>
>
>
> John.
>
>
>
------------------------------------------------------------------------
>
More information about the vtkusers
mailing list