[vtkusers] Recalculation of contours into an contour representation

Marcelino Rodriguez Cancio marcelinorc at uclv.edu.cu
Thu Nov 24 11:52:10 EST 2011


Sven,

Why dont you try with a vtkCutter to extract your slice? Take a look at the vtkCutter test:

/Graphics/Testing/Tcl/probe.tcl

Cheers
Marcelino

-----Mensaje original-----
De: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] En nombre de Sven Olaf Lüttmann
Enviado el: jueves, 24 de noviembre de 2011 11:31 a.m.
Para: vtkusers
Asunto: [vtkusers] Recalculation of contours into an contour representation

Dear vtk users,
I have a question gerading contours in a
vtkContourRepresentation.

What I have is a deformed model as vtkPolyData,
representing an anatomical structure, and a
corresponding volume dataset (MR-Images).

Now I'd like to recalculate a contour from the
model of a specific slice in the dataset and pass
it back to a vtkContourWidget to readjust it again.

Therefore I iterate through all points in my
vtkPolyData model and compare the z coordinate of
the point with that from the slice. That is
already working.
I saw that I can add Points to a contour
representation by calling
AddNodeAtWorldPosition(), for example.

Unfortunately that is not working as expected.

Does someone has an idea how to achieve that, is
there a better way to extract single contours from
an vtkPolyData model and add them to a contour widget.

Thanks very much for your help
  Sven
_______________________________________________
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

-Universidad Central "Marta Abreu" de Las Villas. http://www.uclv.edu.cu
-Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba.  http://www.congresouniversidad.cu
-Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/



-Universidad Central "Marta Abreu" de Las Villas. http://www.uclv.edu.cu
-Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba.  http://www.congresouniversidad.cu
-Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/





More information about the vtkusers mailing list