I have attached a snapshot of my viewer. The isosurface is predicting the volume activated during monopolar stimulation. So, theoretically you will expect a sphere at a particular iso value. <br><br>I tried using vtkPolyDataNormals. The figure attached is the output after including this filter. But I still think this is not smooth. <br>
<br>I verified by opening my vtk file in Paraview (with, Compute Normal ON). Even then i get the same kind of response. So, do you think this is the best i can get? Or there might be some problem in the vtk file which is exported from COMSOL (I verified it multiple times).<br>
<br>Thank you,<br><br>Sanket<br><br><div class="gmail_quote">On Thu, Oct 29, 2009 at 4:01 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry, reading your e-mail in more detail. Are you generating the<br>
isosurfaces in vtk using vtkContourFIiter or some equivalent. If so,<br>
you should run the output through vtkPolyDataNormals.<br>
<div><div></div><div><br>
On Thu, Oct 29, 2009 at 4:59 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br>
> What do you mean by rough? Perhaps the faces are flat shaded? How are<br>
> you displaying the model in vtk?<br>
><br>
> Are your isosurfaces composed of only triangles? If so, did you<br>
> provide surface normals at each point?<br>
><br>
> On Thu, Oct 29, 2009 at 4:30 PM, Sanket Jain <<a href="mailto:jainsanket1@gmail.com" target="_blank">jainsanket1@gmail.com</a>> wrote:<br>
>> Hello Experts,<br>
>><br>
>> I have just started to use VTK to fulfill my visualization needs. I am<br>
>> trying out few fundamental steps which would be crucial for my future<br>
>> development.<br>
>><br>
>> I exported an Finite Element Model (FEM) from COMSOL and wrote it as vtk<br>
>> unstructured grid in matlab (points, connections and data). I am just trying<br>
>> to read my vtk file and trying to visualize the isosurfaces at some value.<br>
>><br>
>> The problem is the isosurfaces are very rough even when I increased the mesh<br>
>> density in my COMSOL model. I tried to perform the same task in paraview and<br>
>> even there i saw the same problem.<br>
>><br>
>> Do you think that increasing the mesh density should solve it? I cannot<br>
>> increase the mesh density because of computational issues. Any ideas on this<br>
>> problem will be appreciated.<br>
>><br>
>> Thank you,<br>
>><br>
>> Sanket Jain<br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sanket Jain<br>