Ok. I will recheck my matlab program which writes the vtk file and get back to you.<br><br>For Paraview, did you mean only the mesh points without the scalar values? I checked the unstructured grid with scalars on them. They look exactly the same as in my VTK code. <br>
<br>Sanket<br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 7:55 AM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</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;">
Perhaps your scalar values are not associated with the proper points?<br>
Have you looked at the original unstructured grid with paraview?<br>
<div><div></div><div class="h5"><br>
On Thu, Oct 29, 2009 at 10:21 PM, Sanket Jain &lt;<a href="mailto:jainsanket1@gmail.com">jainsanket1@gmail.com</a>&gt; wrote:<br>
&gt; Yes, I tried for number of isovalues. But all of them have similar<br>
&gt; characteristics. Is it anything to do with the vtk file being in<br>
&gt; unstructured grid rather than polygonal data? For the mesh, I imported from<br>
&gt; COMSOL, I cannot use polygonal data.<br>
&gt;<br>
&gt; Sanket Jain<br>
&gt; On Thu, Oct 29, 2009 at 6:33 PM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; It does look strange. Have you tried changing the isosurface value?<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Oct 29, 2009 at 5:44 PM, Sanket Jain &lt;<a href="mailto:jainsanket1@gmail.com">jainsanket1@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; I have attached a snapshot of my viewer. The isosurface is predicting<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; volume activated during monopolar stimulation. So, theoretically you<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; expect a sphere at a particular iso value.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I tried using vtkPolyDataNormals. The figure attached is the output<br>
&gt;&gt; &gt; after<br>
&gt;&gt; &gt; including this filter. But I still think this is not smooth.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I verified by opening my vtk file in Paraview (with, Compute Normal ON).<br>
&gt;&gt; &gt; Even then i get the same kind of response. So, do you think this is the<br>
&gt;&gt; &gt; best<br>
&gt;&gt; &gt; i can get? Or there might be some problem in the vtk file which is<br>
&gt;&gt; &gt; exported<br>
&gt;&gt; &gt; from COMSOL (I verified it multiple times).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Sanket<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Thu, Oct 29, 2009 at 4:01 PM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Sorry, reading your e-mail in more detail. Are you generating the<br>
&gt;&gt; &gt;&gt; isosurfaces in vtk using vtkContourFIiter or some equivalent. If so,<br>
&gt;&gt; &gt;&gt; you should run the output through vtkPolyDataNormals.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Thu, Oct 29, 2009 at 4:59 PM, Bill Lorensen<br>
&gt;&gt; &gt;&gt; &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; What do you mean by rough? Perhaps the faces are flat shaded? How are<br>
&gt;&gt; &gt;&gt; &gt; you displaying the model in vtk?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Are your isosurfaces composed of only triangles? If so, did you<br>
&gt;&gt; &gt;&gt; &gt; provide surface normals at each point?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; On Thu, Oct 29, 2009 at 4:30 PM, Sanket Jain &lt;<a href="mailto:jainsanket1@gmail.com">jainsanket1@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; Hello Experts,<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; I have just started to use VTK to fulfill my visualization needs. I<br>
&gt;&gt; &gt;&gt; &gt;&gt; am<br>
&gt;&gt; &gt;&gt; &gt;&gt; trying out few fundamental steps which would be crucial for my<br>
&gt;&gt; &gt;&gt; &gt;&gt; future<br>
&gt;&gt; &gt;&gt; &gt;&gt; development.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; I exported an  Finite Element Model (FEM) from COMSOL and wrote it<br>
&gt;&gt; &gt;&gt; &gt;&gt; as<br>
&gt;&gt; &gt;&gt; &gt;&gt; vtk<br>
&gt;&gt; &gt;&gt; &gt;&gt; unstructured grid in matlab (points, connections and data). I am<br>
&gt;&gt; &gt;&gt; &gt;&gt; just<br>
&gt;&gt; &gt;&gt; &gt;&gt; trying<br>
&gt;&gt; &gt;&gt; &gt;&gt; to read my vtk file and trying to visualize the isosurfaces at some<br>
&gt;&gt; &gt;&gt; &gt;&gt; value.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; The problem is the isosurfaces are very rough even when I increased<br>
&gt;&gt; &gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt; &gt;&gt; mesh<br>
&gt;&gt; &gt;&gt; &gt;&gt; density in my COMSOL model. I tried to perform the same task in<br>
&gt;&gt; &gt;&gt; &gt;&gt; paraview and<br>
&gt;&gt; &gt;&gt; &gt;&gt; even there i saw the same problem.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Do you think that increasing the mesh density should solve it? I<br>
&gt;&gt; &gt;&gt; &gt;&gt; cannot<br>
&gt;&gt; &gt;&gt; &gt;&gt; increase the mesh density because of computational issues. Any ideas<br>
&gt;&gt; &gt;&gt; &gt;&gt; on<br>
&gt;&gt; &gt;&gt; &gt;&gt; this<br>
&gt;&gt; &gt;&gt; &gt;&gt; problem will be appreciated.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thank you,<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Sanket Jain<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Sanket Jain<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Sanket Jain<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sanket Jain<br>