[vtkusers] How to extract the geometry a small list of points in the whole vtkPolyData ??? Please Help !!!!
Bruno da Silva de Oliveira
bruno at esss.com.br
Thu Nov 17 14:45:16 EST 2005
(keep the conversation in the vtkusers mailing list, so it can help
other users in the future)
Hi,
a vtkUnstructuredGrid is the most generic grid type, it will support any
type of cell (including those supported by polydata), so you will have
no problems. To render a vtkUnstructuredGrid, use a vtkDataSetMapper.
HTH,
Deepak Roy wrote:
> hello bruno,
>
> thanks for the reply.
>
> But vtkThreshold seems to return a vtkUnstructuredGrid.......not a
> vtkPolyData.......how do i convert it to vtkPolyData.
>
> I am afraid if this difference in format would create problems.
>
> Please reply.
>
> Thanks in advance.
>
> Bye
>
> Deepak
>
> */Bruno da Silva de Oliveira <bruno at esss.com.br>/* wrote:
>
> Try to use vtkImplicitDataSet to generate a known value inside you
> vtkPolyData of the human body (say, 0) and assign a different
> value for
> the points lying "outside" of the vtkPolyData with the nose. This
> way,
> you can use vtkThreshold to extract the desired data.
>
> []s,
>
> Deepa k Roy wrote:
>
> > hello,
> >
> > I have an open surface in the form of a vtkPolyData.
> >
> > Now my algorithm gives a list of connected points in the whole
> model.
> >
> > For example, if u consider the model of a human body, and say my
> > algorithm gives the list of all points on the nose in the form of
> > another vtkPolyData
> >
> > Now i want to use these list of points to extract the nose from the
> > whole vtkPolyData model of the human body.
> >
> > One thing to note, the geometry corresponding to the list of
> points,
> > will be connected , so no need to worry in that sense.
> >
> > Can anyone tell what filters of VTK i can use to achieve this
> task ?
> > Given the list of points the filter should give me the
> corresponding
> > geometry extracted from the whole model. It should pull out all the
> > cells corresponding to these points.
> >
> > Can vtkClipPolyData do this ?
> >
> > I can easily create a scalar array, with label for each point if
> it is
> > inside or ouside my list of points. Will this be useful. OR is
> there
> > anyother way ?
> >
> > Please help Me !!!!!
> >
> > Bye
> >
> > Deepak
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > Yahoo! FareChase - Search multiple travel sites in one click.
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >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
> >
> >
>
> --
> Bruno da Silva de Oliveira
> bruno at esss.com.br
> ESSS - Engineering Simulation and Scientific Software
> http://www.esss.com.br
>
>
> ------------------------------------------------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
> <http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/>
--
Bruno da Silva de Oliveira
bruno at esss.com.br
ESSS - Engineering Simulation and Scientific Software
http://www.esss.com.br
More information about the vtkusers
mailing list