[vtkusers] vtkEnSightWriter--VTK_WEDGE?
kenichiro yoshimi
rccm.kyoshimi at gmail.com
Thu Oct 8 12:23:21 EDT 2009
Dear Berk,
thanks for answering.
I'm sorry I'm a beginner of VTK and I'm not good at English.
I made the vtkEnSightReaderTemp class from the vtkEnSightReader class, and
added to the followings:
1. In "void WriteData()"
elementTypes.push_back(VTK_HEXAHEDRON);
elementTypes.push_back(VTK_WEDGE); <---- add
elementTypes.push_back(VTK_PYRAMID);
2. In "void WriteElementTypeToFile(int elementType,FILE* fd)"
case(VTK_HEXAHEDRON):
this->WriteStringToFile("hexa8",fd);
break;
case(VTK_WEDGE): <---- add
this->WriteStringToFile("penta6",fd); <---- add
break; <---- add
case(VTK_PYRAMID):
this->WriteStringToFile("pyramid5",fd);
break;
3. I silmilarly added to next element types, but I haven't tested them yet:
VTK_QUADRATIC_WEDGE
VTK_QUADRATIC_EDGE
this->GhostLevelMultiplier+VTK_WEDGE
this->GhostLevelMultiplier+VTK_QUADRATIC_WEDGE
Is there a problem?
thanks a lot,
yoshimi
2009/10/8 Berk Geveci <berk.geveci at kitware.com>
>
> Hi Yoshimi,
>
> Would you mind posting a patch? The vtk-developers is probably a
> better place to post it.
>
> Thanks,
> -berk
>
> On Thu, Oct 8, 2009 at 5:23 AM, kenichiro yoshimi
> <rccm.kyoshimi at gmail.com> wrote:
> > Hi, All
> >
> > I'm trying to save EnSight data files with the vtkEnSightWriter.
> > But elemet type VTK_WEDGE is ignored.
> >
> > I have modified vtkEnSightWriter to adjust to VTK_WEDGE, and
> > it seems to work well.
> >
> > Would you tell me whether this change causes side-effects or not?
> >
> > Thanks,
> >
> > yoshimi
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
More information about the vtkusers
mailing list