VTK basic learning

1, vtkPolyDataMapper: : SetInputConnection () : VTK visual line of the input data interface, the corresponding output data visualization pipeline interface for GetOutPort (); Versions prior to VTK5.0 use setInput () and getOutput () as input and output interfaces. However, after the 7.1 version, it seems that this is not possible. There is no SetInput for the Mapper directly.

2. VTKMarchingCubes requires the input to be VTKImageData. If the input is VTKPolyData, the program will report an error

3, the use of VTKContourFilter can achieve contour extraction.
http://lzchenheng.blog.163.com/blog/static/8383353620108130751672/
4. Sometimes it is necessary to judge the coordinates of the intersection of a straight line and a specific object, which can be achieved with the help of VTKModifiedBSPTree. See Resources for details
http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/ModifiedBSPTree_IntersectWithLine
5, the measurement of the curve, can be approximate to the length of the broken line measurement; You can also use spline curve fitting and then calculate the length of the spline curve.
According to the description in reference [1], a polyline is composed of many straight line segments, and the length of a polyline can be obtained by adding up the length of each segment.

[1]http://vtk.1045678.n5.nabble.com/get-length-of-vtkpolyline-td1228133.html
[2]http://vtk.1045678.n5.nabble.com/how-to-compute-the-length-of-spline-td5729305.html#a5729341
6. Summary of VTK 3D reconstruction
http://blog.csdn.net/q1302182594/article/details/45892995

Read More: