[vtkusers] Re: quadratic elements
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu Mar 11 11:50:35 EST 2004
James C. Robinson wrote:
> Mathieu,
>
> Thanks for your patience. I have gone back as far a r1.16 and implemented
> each fix manually into my vtkQuadraticHexahedra.cxx. I skipped Ken's one
> pertaining to the doubles. I assume that this is what you meant me to do?
>
> Am I to assume that these are the only fixes that are needed to be made
> since the release version of v4.2, or are there other bugs (not features)
> that have also to be altered?
Just to make sure. vtkQuadHexahedron is using internally vtkQuadQuad,
and I corrected the shape functions:
http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Common/vtkQuadraticQuad.cxx
I would suggest you apply this changes too. BTW are you using linux ?
If so try something like this:
get the CVS head of VTK, then
cvs dif -r1.21 -r1.20 vtkQuadraticQuad.cxx > jim.patch
go back to your VTK 4.2 directory
do :
patch -p0 < jim.patch
and you can do it for any arbitrary revision number.
> There is a slight problem with the following:
>
> V4.0
> virtual vtkInteractorStyle* vtkRenderWindowInteractor::GetInteractorStyle
> ( )
>
> V4.2
> virtual vtkInteractorObserver* vtkRenderWindowInteractor::GetInteractorStyle
> ( )
>
> Why was this done and what do I need to do to circumvent it?
You shouldn't suffer from this:
http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Rendering/vtkRenderWindowInteractor.h.diff?r1=1.89&r2=1.90
As vtkInteractorStyle derive from vtkInteractorObserver. What did you
try ? I guess this should only be a one line change.
HTH
Mathieu
Ps: I am CCing the list as it might interest other people.
More information about the vtkusers
mailing list