<DIV>
<DIV>I&nbsp; have created an isosurface for data stored at points of an unstructured grid (octree as hexahedral mesh), but but there are offsets occuring at cell boundaries, how can this be avoided/fixed to make the surface continuos?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tahwwhat</DIV>
<DIV>&nbsp;</DIV>
<DIV>My code is as follows:</DIV>
<DIV>&nbsp;</DIV>
<DIV>=======================</DIV>
<DIV>package require vtk<BR>package require vtkinteraction</DIV>
<DIV><BR>vtkUnstructuredGridReader reader<BR>&nbsp;&nbsp;&nbsp; reader SetFileName "C:\\octree.vtk"<BR>&nbsp;&nbsp;&nbsp; reader SetScalarsName "scalar_field2"</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkContourFilter cf<BR>&nbsp;&nbsp;&nbsp; cf SetInput [reader GetOutput]<BR>&nbsp;&nbsp;&nbsp; cf SetValue 0 2.125<BR>&nbsp;&nbsp;&nbsp; cf SetValue 1 1.1<BR>vtkPolyDataMapper contourMapper<BR>&nbsp;&nbsp;&nbsp; contourMapper SetInput [cf GetOutput]<BR>vtkActor contours<BR>&nbsp;&nbsp;&nbsp; contours SetMapper contourMapper</DIV>
<DIV><BR>vtkRenderer ren1<BR>vtkRenderWindow renWin<BR>&nbsp;&nbsp;&nbsp; renWin AddRenderer ren1<BR>vtkRenderWindowInteractor iren<BR>&nbsp;&nbsp;&nbsp; iren SetRenderWindow renWin</DIV>
<DIV><BR>ren1 AddActor contours</DIV>
<DIV><BR>[ren1 GetActiveCamera] Azimuth 60<BR>[ren1 GetActiveCamera] Roll -90<BR>[ren1 GetActiveCamera] Dolly 2<BR>ren1 ResetCameraClippingRange</DIV>
<DIV>ren1 SetBackground 1 1 1<BR>renWin SetSize 750 400</DIV>
<DIV>iren Initialize<BR>iren AddObserver UserEvent {wm deiconify .vtkInteract}</DIV>
<DIV><BR>wm withdraw .</DIV>
<DIV>================================</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV><p><br><hr size=1>
Find local movie times and trailers on <a href="http://au.rd.yahoo.com/mail/tagline/*http://au.movies.yahoo.com" target=_blank><b>Yahoo! Movies.</b></a><br>