[vtkusers] ===SOS=== Need Help!!!how to use vtkMarchingCubes???

6dgis at 163.com 6dgis at 163.com
Wed Aug 10 14:07:41 EDT 2005


Hi, all
	I have trouble in using vtkMarchingCubes to reconstruct the surface of solid from multi-contours(each contour is closed and exterior).

It is what I have done:
1) I create a structrued points

2) Set the points's state value. 
	I test each point is whether or not on(outside, inside) the contour. If the point is on the contour, the state value will be assigned 0, outside will be assigned -1, inside will be assigned 1.

2) Set the points's distance value.
	Test each structrued point's state value, if 0 the distance value will be assigned 0;if the sum the point's state value and it's adjacent 8 vertexs's state value are 27 or -27, the distance value will be assgined a large value(it's distance value
are ignored);the distance value of other points will be computed, it reprents the min distance from it to the point on the 
contour.

3)Use vtkMarchingCubes to generate IsoSurface bye invoking function "setValue(0,0)".

but the surface is discrete, how to generate the consecutive surface?
	

 				

        6dgis
        6dgis at 163.com
          2005-08-11


More information about the vtkusers mailing list