[vtkusers] [vtk-developers] Help with vtkDataSetSurfaceFilter - Reposting

Bill Lorensen bill.lorensen at gmail.com
Thu Feb 14 11:21:37 EST 2013


That should work. You could check the output of DataSetSurfaceFilter.

dsf->Update();
dsf->GetOutput()->GetNumberOfCells();

On Thu, Feb 14, 2013 at 10:55 AM, Bhanu Hariharan <bhanu at petrotel.com> wrote:
> Hello All,
>
> I am not sure if this is the right place to ask for help but I didnt have
> any help with vtkusers so I had posted here too. I hope that some vtk expert
> takes a look and responds.
> I am reposting my query. Thanks very much.
>
> ---------- Forwarded message ----------
> From: Bhanu Hariharan <bhanu at petrotel.com>
> Date: Tue, Feb 12, 2013 at 11:01 AM
> Subject: Help with vtkDataSetSurfaceFilter
> To: vtk-developers at vtk.org
>
>
>
> Hello,
> I was wondering if I can get some help with using vtkDataSetSurfaceFilter in
> my code.
>
>
> I have a large 3D Grid - UnstructuredGrid where each grid block has 8
> coordinates/nodes. To improve rendering speed, I want to render only the
> grid blocks that lie on the outer surface since inside grid blocks are not
> needed in the visualization unless the user slices through the layers.
>
> I think vtkDataSetSurfaceFilter can be used for this purpose.
>
> So this is what I did, I created my vtkUnstructuredGrid, specifying points
> and cells. Then I pass the vtkUnstructuredGrid through some filters using
> vtkThreshold.
> I am specifying the output of that filter to be the input to
> vtkDataSetSurfaceFilter like this.
>
> dataSetSurfaceFilter->SetInput( value_threshold_filter->GetOutput());
>
> Using like this, I am not seeing any performance difference. So I dont know
> if its even doing anything.
>
> My question is if this is the right way to do it. Can dataSetSurfaceFilter
> take vtkTreshold's output as input.
> or does it work only with specific inputs like Structured Grids or
> Unstructured Grids only. How can I tell anyway.
>
>
> If someone can suggest a better way to see just surface cells (skin ?)  or
> suggest anything wrong with how I am doing,  I will really appreciate it.
>
> Thanks very much.
> Bhanu
>
>
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list