[vtkusers] Trouble creating isosurface from unstructuredGrid of Tetras - Fixed!!!

Bill Lorensen bill.lorensen at gmail.com
Fri Aug 25 07:34:00 EDT 2017


Or you could replace:
isoMapper.SetInputData( contour.GetOutput() )
with
isoMapper.SetInputConnection(contour.GetOutputPort())


On Fri, Aug 25, 2017 at 4:13 AM, scotsman60 <doug at beachmailing.com> wrote:
> So,
>
> The problem is that we need to call the Update method on the
> vtkContourFiler() before passing it to the vtkPolyDataMapper.......
>
> # Generate an isosurface
> contour = vtk.vtkContourFilter()
> #contour = vtk.vtkMarchingCubes()
> contour.SetInputData( tetMesh )
> contour.ComputeNormalsOn()
> contour.SetValue( 0, 0.00 )
> *contour.Update()*
>
> Everything seems to be OK now.......
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Trouble-creating-isosurface-from-unstructuredGrid-of-Tetras-tp5744578p5744579.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list