<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:'Microsoft YaHei UI',Calibri,'Segoe UI',Meiryo,'Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>Hi:</div><div data-signatureblock="true"><div> I have a problem now.<br> I just tried to fit surface from discrete points by using class<br> "vtkSurfaceReconstructionFilter" at first, but I found that the surface<br> which I fitted always departures from the points I set before. <br> I just would like that the points are on the surface , but they departure<br> from each other.<br> What should I do?<br> Thanks.<br>Tom</div><div>发自 Windows 邮件</div><div> </div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face="Calibri, 'Segoe UI', Meiryo, 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Khmer UI', 'Nirmala UI', Tunga, 'Lao UI', Ebrima, sans-serif" style='line-height: 15pt; letter-spacing: 0.02em; font-family: Calibri, "Segoe UI", Meiryo, "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "Khmer UI", "Nirmala UI", Tunga, "Lao UI", Ebrima, sans-serif; font-size: 11pt;'><b>发件人:</b> vtkusers-request@vtk.org<br><b>发送时间:</b> 2013年11月16日, 星期六 1:00<br><b>收件人:</b> vtkusers@vtk.org</font></div></div><div> </div>Send vtkusers mailing list submissions to<br> vtkusers@vtk.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://www.vtk.org/mailman/listinfo/vtkusers<br>or, via email, send a message with subject or body 'help' to<br> vtkusers-request@vtk.org<br><br>You can reach the person managing the list at<br> vtkusers-owner@vtk.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of vtkusers digest..."<br><br><br>Today's Topics:<br><br> 1. Re: VTK on Xeon Phi (Santiago Alonso P?rez Rubiano)<br> 2. Re: VTK on Xeon Phi (David Gobbi)<br> 3. Re: VTK on Xeon Phi (Santiago Alonso P?rez Rubiano)<br> 4. Re: vtkInteractorStyleTrackballCamera: panning gets heavy<br> then goes into reverse (Aashish Chaudhary)<br> 5. Re: vtkExodusIIReader/Writer examples in Python<br> (Andrew.Wilkins@csiro.au)<br> 6. Issue: Contour shows on hole point rather than field point<br> (Chao Liang)<br> 7. Volume extraction (Massinissa Bandou)<br> 8. Pixel Value on Mouse Over with java (amal jerbi)<br> 9. Re: Volume extraction (D?enan Zuki?)<br> 10. Re: Depth sorter question (Biddiscombe, John A.)<br> 11. Re: Pixel Value on Mouse Over with java (David Doria)<br> 12. Re: vtkExodusIIReader/Writer examples in Python (David Thompson)<br> 13. Surface Mesh of Equilateral Triangles (Harold)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 14 Nov 2013 18:38:29 -0500<br>From: Santiago Alonso P?rez Rubiano <srubiano@purdue.edu><br>Subject: Re: [vtkusers] VTK on Xeon Phi<br>To: David E DeMarle <dave.demarle@kitware.com><br>Cc: VTK Users <vtkusers@vtk.org>, Berk Geveci<br> <berk.geveci@kitware.com><br>Message-ID:<br> <CAMbvBhgNgnnV79q4SX2MsN3kymKBguQmT9G+i4SQSSRa-LFvZw@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Unfortunately I don't have good news on this. I'm trying to cross-compile<br>libMesa with offscreen support but at some point the compilation fails<br>because of some unsupported assembler instructions on Xeon Phi's intel<br>compiler. I have reported this on Intel forum (<br>http://software.intel.com/en-us/forums/topic/489151) and Mesa's mailing<br>list (<br>http://lists.freedesktop.org/archives/mesa-users/2013-November/000704.html)<br>and keep working on this.<br><br><br>On Wed, Nov 13, 2013 at 9:48 AM, David E DeMarle<br><dave.demarle@kitware.com>wrote:<br><br>> As Berk said we haven't tried the Xeon Phi yet.<br>><br>> VTK does work with OSMesa, See the pure offscreen rendering section of<br>> http://paraview.org/Wiki/ParaView/Users_Guide/Parallel_Rendering<br>> for CMake options to try first.<br>><br>> To find out how to configure Mesa for the Phi first ask the Mesa mailing<br>> list. On the off chance they can't help, see ParaViewSuperbuild. Here we<br>> take Mesa 7.6.1 (old habits are hard to break) and configure it to cross<br>> compile on Cray's and Blue Gene's. There may be some patterns you could<br>> follow there that might help configure it for the Phi.<br>><br>> Let us know how it goes. I would like to see this working.<br>><br>><br>><br>><br>><br>> David E DeMarle<br>> Kitware, Inc.<br>> R&D Engineer<br>> 21 Corporate Drive<br>> Clifton Park, NY 12065-8662<br>> Phone: 518-881-4909<br>><br>><br>> On Wed, Nov 13, 2013 at 9:38 AM, Berk Geveci <berk.geveci@kitware.com>wrote:<br>><br>>> Hi Santiago,<br>>><br>>> I am very glad that you are working on this. Please let us know how<br>>> things work out. Also, check out my recent post about support for shared<br>>> memory parallelism.<br>>><br>>> Unfortunately, I don't think that anyone at Kitware has tried building<br>>> the whole thing on Xeon Phi so we probably won't be able to help.<br>>><br>>> Best,<br>>> -berk<br>>><br>>><br>>> On Tue, Nov 12, 2013 at 10:36 PM, Santiago Alonso P?rez Rubiano <<br>>> srubiano@purdue.edu> wrote:<br>>><br>>>> Has anyone tried (or succeeded at) cross-compiling VTK for Xeon Phi. Is<br>>>> it possible to run VTK using only OSMesa?<br>>>><br>>>> I'm trying to compile libMesa 9.2.2 on the Xeon Phi but I'm having<br>>>> problems configuring the compilation. Has anyone tried something similar?<br>>>><br>>>> _______________________________________________<br>>>> Powered by www.kitware.com<br>>>><br>>>> Visit other Kitware open-source projects at<br>>>> http://www.kitware.com/opensource/opensource.html<br>>>><br>>>> Please keep messages on-topic and check the VTK FAQ at:<br>>>> http://www.vtk.org/Wiki/VTK_FAQ<br>>>><br>>>> Follow this link to subscribe/unsubscribe:<br>>>> http://www.vtk.org/mailman/listinfo/vtkusers<br>>>><br>>>><br>>><br>>> _______________________________________________<br>>> Powered by www.kitware.com<br>>><br>>> Visit other Kitware open-source projects at<br>>> http://www.kitware.com/opensource/opensource.html<br>>><br>>> Please keep messages on-topic and check the VTK FAQ at:<br>>> http://www.vtk.org/Wiki/VTK_FAQ<br>>><br>>> Follow this link to subscribe/unsubscribe:<br>>> http://www.vtk.org/mailman/listinfo/vtkusers<br>>><br>>><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131114/e5e2e404/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 14 Nov 2013 16:50:48 -0700<br>From: David Gobbi <david.gobbi@gmail.com><br>Subject: Re: [vtkusers] VTK on Xeon Phi<br>To: Santiago Alonso P?rez Rubiano <srubiano@purdue.edu>, VTK Users<br> <vtkusers@vtk.org><br>Message-ID:<br> <CANwS1=GJVBCXMG7-ggKChMaRAwjoRyUffWGM=jq03YLOsdA-zw@mail.gmail.com><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Have you tried an older version of Mesa? For example, Mesa 7.7.1?<br>I've often found Mesa to be difficult to compile, but the Mesa 7<br>series seemed to be easier to work with than anything that came<br>before or after.<br><br>On Thu, Nov 14, 2013 at 4:38 PM, Santiago Alonso P?rez Rubiano<br><srubiano@purdue.edu> wrote:<br>> Unfortunately I don't have good news on this. I'm trying to cross-compile<br>> libMesa with offscreen support but at some point the compilation fails<br>> because of some unsupported assembler instructions on Xeon Phi's intel<br>> compiler. I have reported this on Intel forum<br>> (http://software.intel.com/en-us/forums/topic/489151) and Mesa's mailing<br>> list<br>> (http://lists.freedesktop.org/archives/mesa-users/2013-November/000704.html)<br>> and keep working on this.<br>><br>><br>> On Wed, Nov 13, 2013 at 9:48 AM, David E DeMarle <dave.demarle@kitware.com><br>> wrote:<br>>><br>>> As Berk said we haven't tried the Xeon Phi yet.<br>>><br>>> VTK does work with OSMesa, See the pure offscreen rendering section of<br>>> http://paraview.org/Wiki/ParaView/Users_Guide/Parallel_Rendering<br>>> for CMake options to try first.<br>>><br>>> To find out how to configure Mesa for the Phi first ask the Mesa mailing<br>>> list. On the off chance they can't help, see ParaViewSuperbuild. Here we<br>>> take Mesa 7.6.1 (old habits are hard to break) and configure it to cross<br>>> compile on Cray's and Blue Gene's. There may be some patterns you could<br>>> follow there that might help configure it for the Phi.<br>>><br>>> Let us know how it goes. I would like to see this working.<br>>><br>>><br>>><br>>><br>>><br>>> David E DeMarle<br>>> Kitware, Inc.<br>>> R&D Engineer<br>>> 21 Corporate Drive<br>>> Clifton Park, NY 12065-8662<br>>> Phone: 518-881-4909<br>>><br>>><br>>> On Wed, Nov 13, 2013 at 9:38 AM, Berk Geveci <berk.geveci@kitware.com><br>>> wrote:<br>>>><br>>>> Hi Santiago,<br>>>><br>>>> I am very glad that you are working on this. Please let us know how<br>>>> things work out. Also, check out my recent post about support for shared<br>>>> memory parallelism.<br>>>><br>>>> Unfortunately, I don't think that anyone at Kitware has tried building<br>>>> the whole thing on Xeon Phi so we probably won't be able to help.<br>>>><br>>>> Best,<br>>>> -berk<br>>>><br>>>><br>>>> On Tue, Nov 12, 2013 at 10:36 PM, Santiago Alonso P?rez Rubiano<br>>>> <srubiano@purdue.edu> wrote:<br>>>>><br>>>>> Has anyone tried (or succeeded at) cross-compiling VTK for Xeon Phi. Is<br>>>>> it possible to run VTK using only OSMesa?<br>>>>><br>>>>> I'm trying to compile libMesa 9.2.2 on the Xeon Phi but I'm having<br>>>>> problems configuring the compilation. Has anyone tried something similar?<br>>>>><br>>>>> _______________________________________________<br>>>>> Powered by www.kitware.com<br>>>>><br>>>>> Visit other Kitware open-source projects at<br>>>>> http://www.kitware.com/opensource/opensource.html<br>>>>><br>>>>> Please keep messages on-topic and check the VTK FAQ at:<br>>>>> http://www.vtk.org/Wiki/VTK_FAQ<br>>>>><br>>>>> Follow this link to subscribe/unsubscribe:<br>>>>> http://www.vtk.org/mailman/listinfo/vtkusers<br>>>>><br>>>><br>>>><br>>>> _______________________________________________<br>>>> Powered by www.kitware.com<br>>>><br>>>> Visit other Kitware open-source projects at<br>>>> http://www.kitware.com/opensource/opensource.html<br>>>><br>>>> Please keep messages on-topic and check the VTK FAQ at:<br>>>> http://www.vtk.org/Wiki/VTK_FAQ<br>>>><br>>>> Follow this link to subscribe/unsubscribe:<br>>>> http://www.vtk.org/mailman/listinfo/vtkusers<br>>>><br>>><br>><br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the VTK FAQ at:<br>> http://www.vtk.org/Wiki/VTK_FAQ<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.vtk.org/mailman/listinfo/vtkusers<br>><br><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 14 Nov 2013 18:58:33 -0500<br>From: Santiago Alonso P?rez Rubiano <srubiano@purdue.edu><br>Subject: Re: [vtkusers] VTK on Xeon Phi<br>To: David Gobbi <david.gobbi@gmail.com><br>Cc: VTK Users <vtkusers@vtk.org>, Santiago Alonso P?rez Rubiano<br> <srubiano@purdue.edu><br>Message-ID:<br> <CAMbvBhhbj0Th8Xb8b8dV4AQxjvvRcXA4YWdHtHJWNDi7nF9nyA@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Actually I've been working on compiling Mesa 7.5.1 but yet I have the same<br>problems.<br><br><br>On Thu, Nov 14, 2013 at 6:50 PM, David Gobbi <david.gobbi@gmail.com> wrote:<br><br>> Have you tried an older version of Mesa? For example, Mesa 7.7.1?<br>> I've often found Mesa to be difficult to compile, but the Mesa 7<br>> series seemed to be easier to work with than anything that came<br>> before or after.<br>><br>> On Thu, Nov 14, 2013 at 4:38 PM, Santiago Alonso P?rez Rubiano<br>> <srubiano@purdue.edu> wrote:<br>> > Unfortunately I don't have good news on this. I'm trying to cross-compile<br>> > libMesa with offscreen support but at some point the compilation fails<br>> > because of some unsupported assembler instructions on Xeon Phi's intel<br>> > compiler. I have reported this on Intel forum<br>> > (http://software.intel.com/en-us/forums/topic/489151) and Mesa's mailing<br>> > list<br>> > (<br>> http://lists.freedesktop.org/archives/mesa-users/2013-November/000704.html<br>> )<br>> > and keep working on this.<br>> ><br>> ><br>> > On Wed, Nov 13, 2013 at 9:48 AM, David E DeMarle <<br>> dave.demarle@kitware.com><br>> > wrote:<br>> >><br>> >> As Berk said we haven't tried the Xeon Phi yet.<br>> >><br>> >> VTK does work with OSMesa, See the pure offscreen rendering section of<br>> >> http://paraview.org/Wiki/ParaView/Users_Guide/Parallel_Rendering<br>> >> for CMake options to try first.<br>> >><br>> >> To find out how to configure Mesa for the Phi first ask the Mesa mailing<br>> >> list. On the off chance they can't help, see ParaViewSuperbuild. Here we<br>> >> take Mesa 7.6.1 (old habits are hard to break) and configure it to cross<br>> >> compile on Cray's and Blue Gene's. There may be some patterns you could<br>> >> follow there that might help configure it for the Phi.<br>> >><br>> >> Let us know how it goes. I would like to see this working.<br>> >><br>> >><br>> >><br>> >><br>> >><br>> >> David E DeMarle<br>> >> Kitware, Inc.<br>> >> R&D Engineer<br>> >> 21 Corporate Drive<br>> >> Clifton Park, NY 12065-8662<br>> >> Phone: 518-881-4909<br>> >><br>> >><br>> >> On Wed, Nov 13, 2013 at 9:38 AM, Berk Geveci <berk.geveci@kitware.com><br>> >> wrote:<br>> >>><br>> >>> Hi Santiago,<br>> >>><br>> >>> I am very glad that you are working on this. Please let us know how<br>> >>> things work out. Also, check out my recent post about support for<br>> shared<br>> >>> memory parallelism.<br>> >>><br>> >>> Unfortunately, I don't think that anyone at Kitware has tried building<br>> >>> the whole thing on Xeon Phi so we probably won't be able to help.<br>> >>><br>> >>> Best,<br>> >>> -berk<br>> >>><br>> >>><br>> >>> On Tue, Nov 12, 2013 at 10:36 PM, Santiago Alonso P?rez Rubiano<br>> >>> <srubiano@purdue.edu> wrote:<br>> >>>><br>> >>>> Has anyone tried (or succeeded at) cross-compiling VTK for Xeon Phi.<br>> Is<br>> >>>> it possible to run VTK using only OSMesa?<br>> >>>><br>> >>>> I'm trying to compile libMesa 9.2.2 on the Xeon Phi but I'm having<br>> >>>> problems configuring the compilation. Has anyone tried something<br>> similar?<br>> >>>><br>> >>>> _______________________________________________<br>> >>>> Powered by www.kitware.com<br>> >>>><br>> >>>> Visit other Kitware open-source projects at<br>> >>>> http://www.kitware.com/opensource/opensource.html<br>> >>>><br>> >>>> Please keep messages on-topic and check the VTK FAQ at:<br>> >>>> http://www.vtk.org/Wiki/VTK_FAQ<br>> >>>><br>> >>>> Follow this link to subscribe/unsubscribe:<br>> >>>> http://www.vtk.org/mailman/listinfo/vtkusers<br>> >>>><br>> >>><br>> >>><br>> >>> _______________________________________________<br>> >>> Powered by www.kitware.com<br>> >>><br>> >>> Visit other Kitware open-source projects at<br>> >>> http://www.kitware.com/opensource/opensource.html<br>> >>><br>> >>> Please keep messages on-topic and check the VTK FAQ at:<br>> >>> http://www.vtk.org/Wiki/VTK_FAQ<br>> >>><br>> >>> Follow this link to subscribe/unsubscribe:<br>> >>> http://www.vtk.org/mailman/listinfo/vtkusers<br>> >>><br>> >><br>> ><br>> ><br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the VTK FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131114/b0c80b22/attachment-0001.htm><br><br>------------------------------<br><br>Message: 4<br>Date: Thu, 14 Nov 2013 19:02:36 -0500<br>From: Aashish Chaudhary <aashish.chaudhary@kitware.com><br>Subject: Re: [vtkusers] vtkInteractorStyleTrackballCamera: panning<br> gets heavy then goes into reverse<br>To: Tim Hutton <tim.hutton@gmail.com><br>Cc: vtkusers <vtkusers@vtk.org><br>Message-ID:<br> <CAEw35Z9TsRrfsj+5p0t75KGvF5EnSUrhB=7hLPjii11gNxnhzA@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>is this problem dependent on distance from the focal point?<br><br>- Aashish<br><br><br>On Thu, Nov 14, 2013 at 6:05 PM, Tim Hutton <tim.hutton@gmail.com> wrote:<br><br>> I've an odd problem with panning in vtkInteractorStyleTrackballCamera.<br>> Above a certain threshold of complexity, panning (holding down shift and<br>> left-dragging) will stop working properly. With more items the scene can no<br>> longer be dragged around far enough - it feels like it is has got heavy and<br>> stays in the middle. With even more items the panning actually pulls in the<br>> opposite direction. Attached an image of such a scene - it's pretty<br>> reasonable and renders reasonably fast.<br>><br>> I've tested it in VTK 5.10.1 and 6.0.0 and it happens in both.<br>><br>> I've tested on Windows 7 and Windows 8 and Linux (Ubuntu 13.10) and<br>> strangely it only happens on Windows (both 7 and 8).<br>><br>> Has anyone seen this problem before?<br>><br>> --<br>> Tim Hutton - http://www.sq3.org.uk -<br>> http://profiles.google.com/tim.hutton/<br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the VTK FAQ at:<br>> http://www.vtk.org/Wiki/VTK_FAQ<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.vtk.org/mailman/listinfo/vtkusers<br>><br>><br><br><br>-- <br>| Aashish Chaudhary<br>| R&D Engineer<br>| Kitware Inc.<br>| www.kitware.com<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131114/5a6678ef/attachment-0001.htm><br><br>------------------------------<br><br>Message: 5<br>Date: Fri, 15 Nov 2013 03:35:50 +0000<br>From: <Andrew.Wilkins@csiro.au><br>Subject: Re: [vtkusers] vtkExodusIIReader/Writer examples in Python<br>To: <MEEHANBT@nv.doe.gov>, <vtkusers@vtk.org><br>Message-ID:<br> <57596E6532C9F54F9DF09BCDFE7B1D3A8647F911@exmbx06-cdc.nexus.csiro.au><br>Content-Type: text/plain; charset="us-ascii"<br><br>Hi Tim,<br><br>See my code below. My code was checking that the exodusIIWriter eliminates all side-set (etc) information if you pass it a multiblock VTK. (If you pass it an exodus it does the correct thing.)<br><br>Code snippet:<br><br># Read filename exo_with_ss<br>r_ss = vtk.vtkExodusIIReader()<br>r_ss.SetFileName(exo_with_ss)<br>r_ss.GenerateGlobalNodeIdArrayOn()<br>r_ss.GenerateGlobalElementIdArrayOn()<br>r_ss.ExodusModelMetadataOn()<br>r_ss.UpdateInformation()<br># ensure that sidesets are actually loaded, since by default they're not<br>for ss_id in range(r_ss.GetNumberOfSideSetArrays()):<br> r_ss.SetSideSetArrayStatus(r_ss.GetSideSetArrayName(ss_id), 1)<br><br># translate the exodus information to multiblock vtk<br>r_ss.Update()<br>r_ss = r_ss.GetOutput()<br><br># print some information<br> for i in range(r_ss.GetNumberOfBlocks()):<br> blk = r_ss.GetBlock(i)<br> if blk.GetNumberOfBlocks() > 0:<br> print " " + r_ss.GetMetaData(i).Get(vtk.vtkCompositeDataSet.NAME())<br> for j in range(blk.GetNumberOfBlocks()):<br> print " " + blk.GetMetaData(j).Get(vtk.vtkCompositeDataSet.NAME())<br><br># write an exodus file<br>writer = vtk.vtkExodusIIWriter()<br>writer.SetFileName(output_file)<br>writer.SetInputConnection(r_ss.GetProducerPort())<br>writer.Write()<br><br><br>Ph: +61 7 3327 4497. Fax: +61 7 3327 4666<br>Queensland Centre for Advanced Technologies<br>PO Box 883, Kenmore, Qld, 4069<br><br>From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On Behalf Of Meehan, Bernard<br>Sent: Thursday, 14 November 2013 8:49 AM<br>To: vtkusers@vtk.org<br>Subject: [vtkusers] vtkExodusIIReader/Writer examples in Python<br><br>Hi - does anyone have Python examples of how to use vtkExodusIIReader/Writer other than the ones in the documentation?<br>(namely, TestContourGrid.py)<br><br>Thanks,<br>Tim<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/c90bcd78/attachment-0001.htm><br><br>------------------------------<br><br>Message: 6<br>Date: Thu, 14 Nov 2013 20:55:34 -0700<br>From: Chao Liang <chaolian@mtu.edu><br>Subject: [vtkusers] Issue: Contour shows on hole point rather than<br> field point<br>To: vtkusers <vtkusers@vtk.org><br>Message-ID:<br> <CAD4LrppoyYQPzRbRELLc6KpXLuQ2yHdnNtN5g1RkL=vOwh50Og@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I just modified vtkMultiBlockPLOT3DReader to make that iblanking = 0 means<br>field point while iblanking = 1 means hole point. And mesh shows correctly<br>and as what I expect.<br><br>But when I generate contour, the strange thing is that it draws contour on<br>hole point rather than field point, which is not correct. I really don't<br>know why.<br><br>Can anybody help me on this?<br>Thanks in advance,<br><br>Chao<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131114/9f004f1b/attachment-0001.htm><br><br>------------------------------<br><br>Message: 7<br>Date: Fri, 15 Nov 2013 00:11:08 -0800 (PST)<br>From: Massinissa Bandou <Massinissa.Bandou@USherbrooke.ca><br>Subject: [vtkusers] Volume extraction<br>To: vtkusers@vtk.org<br>Message-ID: <1384503068980-5724460.post@n5.nabble.com><br>Content-Type: text/plain; charset=us-ascii<br><br>Hello VTK!!<br><br>I used vtkMarchingCubes to generate an isosurface of a region of a volume<br>and I'm wondering how can I use vtkExtractVOI or something else to extract<br>the volume within a closed isosurface.<br><br>thank you for your help!<br><br>Massi<br><br><http://vtk.1045678.n5.nabble.com/file/n5724460/test.png> <br><br><br><br>--<br>View this message in context: http://vtk.1045678.n5.nabble.com/Volume-extraction-tp5724460.html<br>Sent from the VTK - Users mailing list archive at Nabble.com.<br><br><br>------------------------------<br><br>Message: 8<br>Date: Fri, 15 Nov 2013 09:16:15 +0100<br>From: amal jerbi <am.jerbi@gmail.com><br>Subject: [vtkusers] Pixel Value on Mouse Over with java<br>To: vtkusers@vtk.org<br>Message-ID:<br> <CABf2nGXoO04FO8n-zSbWAAMOSTH8=onfGixE62bN1XTgS095Ag@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I want to pick the pixel value of an image i found this C++ example on net<br><br>http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27<br><br>but no idea how to write this code with java:<br><br> 1. unsigned short* pPix = (unsigned short*)pImageData->GetScalarPointer()<br> ;<br> 2. unsigned short usPix = pPix[nVolIdx];<br> 3. FmtStr(m_strDetails, "Pixel val = [" << usPix << "] at<br> index [" << nVolIdx << "], coordinates(" << ptMapped[0] << "," <<<br> ptMapped[1] << ")");<br><br> Indeed, with vtk wrapped java i dont find the method GetScalarPointer<br><br> Best,<br> Amal<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/6101c3c5/attachment-0001.htm><br><br>------------------------------<br><br>Message: 9<br>Date: Fri, 15 Nov 2013 10:58:00 +0100<br>From: D?enan Zuki? <dzenanz@gmail.com><br>Subject: Re: [vtkusers] Volume extraction<br>To: Massinissa Bandou <Massinissa.Bandou@usherbrooke.ca><br>Cc: vtkusers <vtkusers@vtk.org><br>Message-ID:<br> <CAPf2UMQKUKMU_YEf=0dAqvoQ3q+yn_9gcWdcpD53+nVJ01rnmw@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>What do you mean by extract? Clip the image - set to 0 all values outside<br>the mesh, and perhaps resize the image to the non-zero bounding box? Or<br>clip the polygonal mesh such that triangles outside some bounding box are<br>removed from the mesh?<br><br>In the first case you should start by looking at the appropriate<br>example<http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI>.<br>To create voxel mask of the closed surface, take a look at this<br>example<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData>.<br>Then you can multiply voxel mask with image values to get a clipped volume.<br><br>In the second case, you should consider<br>http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html or<br>http://www.vtk.org/doc/nightly/html/classvtkExtractGeometry.html<br><br><br>On Fri, Nov 15, 2013 at 9:11 AM, Massinissa Bandou <<br>Massinissa.Bandou@usherbrooke.ca> wrote:<br><br>> Hello VTK!!<br>><br>> I used vtkMarchingCubes to generate an isosurface of a region of a volume<br>> and I'm wondering how can I use vtkExtractVOI or something else to extract<br>> the volume within a closed isosurface.<br>><br>> thank you for your help!<br>><br>> Massi<br>><br>> <http://vtk.1045678.n5.nabble.com/file/n5724460/test.png><br>><br>><br>><br>> --<br>> View this message in context:<br>> http://vtk.1045678.n5.nabble.com/Volume-extraction-tp5724460.html<br>> Sent from the VTK - Users mailing list archive at Nabble.com.<br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the VTK FAQ at:<br>> http://www.vtk.org/Wiki/VTK_FAQ<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.vtk.org/mailman/listinfo/vtkusers<br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/aae3f254/attachment-0001.htm><br><br>------------------------------<br><br>Message: 10<br>Date: Fri, 15 Nov 2013 10:48:38 +0000<br>From: "Biddiscombe, John A." <biddisco@cscs.ch><br>Subject: Re: [vtkusers] Depth sorter question<br>To: Serge Lalonde <serge@infolytica.com>, David E DeMarle<br> <dave.demarle@kitware.com><br>Cc: "vtkusers@vtk.org" <vtkusers@vtk.org><br>Message-ID:<br> <50320452A334BD42A5EC72BAD2145099096D88BB@MBX110.d.ethz.ch><br>Content-Type: text/plain; charset="us-ascii"<br><br>Serge<br><br>The answer is no then.<br><br>I have made my own depth sorting routines (for individual datasets) and considered having a composite depth mapper which accepts multiple datasets and sorts them accordingly, but it would be quite a bit of work, because the ideal solution would traverse the individual datasets in place without requiring a copy into one monster dataset. Worth thinking about though.<br><br>JB<br><br><br>From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On Behalf Of Serge Lalonde<br>Sent: 14 November 2013 22:17<br>To: David E DeMarle<br>Cc: vtkusers@vtk.org<br>Subject: Re: [vtkusers] Depth sorter question<br><br>Sorry, I should have mentioned that this is the backup transparency method for when the depth peeling isn't available.<br>On 11/14/2013 3:46 PM, David E DeMarle wrote:<br>Try depth peeling instead of vtkDepthSortPolyData since it will sort the entire scene, not just one object.<br>ie<br>http://www.vtk.org/Wiki/VTK/Depth_Peeling<br>instead of<br>http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DepthSortPolyData<br><br>On Thu, Nov 14, 2013 at 1:36 PM, Serge Lalonde <serge@infolytica.com<mailto:serge@infolytica.com>> wrote:<br>Is it possible to use the depth sorter for transparency when there are multiple actors, each with their own mapper, in the same renderer?<br><br>We have this setup because we want to be able to use the vtkInteractorStyleTrackballCamera in actor mode to manipulate the multiple actors individually.<br><br>Thanks!<br>--<br>www.infolytica.com <http://:/www.infolytica.com><br>300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3<br>(514) 849-8752 x236, Fax: (514) 849-4239<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/d616cd06/attachment-0001.htm><br><br>------------------------------<br><br>Message: 11<br>Date: Fri, 15 Nov 2013 08:07:47 -0500<br>From: David Doria <daviddoria@gmail.com><br>Subject: Re: [vtkusers] Pixel Value on Mouse Over with java<br>To: amal jerbi <am.jerbi@gmail.com><br>Cc: "vtkusers@vtk.org" <vtkusers@vtk.org><br>Message-ID:<br> <CABDpjTmRVYuXBcdBz56m5n1soAx3UKjtWQ6zsLOxBXex04KC9A@mail.gmail.com><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>On Fri, Nov 15, 2013 at 3:16 AM, amal jerbi <am.jerbi@gmail.com> wrote:<br>> Hi,<br>><br>> I want to pick the pixel value of an image i found this C++ example on net<br>><br>> http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27<br>><br>> but no idea how to write this code with java:<br>><br>> unsigned short* pPix = (unsigned short*)pImageData->GetScalarPointer();<br>> unsigned short usPix = pPix[nVolIdx];<br>> FmtStr(m_strDetails, "Pixel val = [" << usPix << "] at index ["<br>> << nVolIdx << "], coordinates(" << ptMapped[0] << "," << ptMapped[1] <<<br>> ")");<br>><br>> Indeed, with vtk wrapped java i dont find the method GetScalarPointer<br>><br>> Best,<br>> Amal<br><br>Unfortunately I don't know how to do this, but when you figure it out,<br>I'd be great if you would add an example here:<br>http://www.vtk.org/Wiki/VTK/Examples/Java<br><br>David<br><br><br>------------------------------<br><br>Message: 12<br>Date: Fri, 15 Nov 2013 08:50:46 -0500<br>From: David Thompson <david.thompson@kitware.com><br>Subject: Re: [vtkusers] vtkExodusIIReader/Writer examples in Python<br>To: "Meehan, Bernard" <MEEHANBT@nv.doe.gov><br>Cc: "vtkusers@vtk.org" <vtkusers@vtk.org><br>Message-ID: <345B0798-6AAF-47B5-9008-4E979E9498B1@kitware.com><br>Content-Type: text/plain; charset=us-ascii<br><br>> ... The datasets that I have contain two features that I would like to get at<br>> - global information, like total energy input, total kinetic energy, etc.,<br>> that I would like to be able to graph,<br><br>Those will be read if you add:<br><br>rdr.SetAllArrayStatus(rdr.GLOBAL,1)<br><br>to the script.<br><br>> and then unstructured blocks<br>> hexahedrons with point and cell data that I would like to (for example) be<br>> able to probe with a plane. I have looked at the files with 'ncdump' but<br>> wasn't sure how the various structures end up the vtkExodusIIReader<br>> object. I could have the wrong idea about Exodus II files as well - my<br>> understanding of the format does not go much past "they end in .exo"<br><br>There is manual for the Exodus library API that includes some information about storage conventions on the SourceForge page:<br> http://sourceforge.net/projects/exodusii/files/Documentation/Documentation/<br><br>> <br>> I think I have a good-ish idea of what should be in the file, just not so<br>> good of an idea of how to get it and plot it, etc. If I were to have a<br>> wish list of things for examples it might read something like:<br>> <br>> Print out the list of global information (like 'EKIN', the kinetic<br>> energy), select one and plot it in 2D.<br><br>You might look at using the vtkExtractArraysOverTime filter to get a time series of global information, but I am not sure how fast that will be. The ExodusIIReader has a mechanism called "FastPath" (you'll see it in the reader's documentation) that will extract one point- or cell-value over time, but I don't think it works for global variables -- so the reader may have to cycle through all the time steps manually to extract it.<br><br>> Print out a list of the node or cell information (like 'DENSITY'), and<br>> plot it in 3D.<br><br>I'm not sure what you mean by "plot it in 3-D" means... do you mean color the mesh with the variable? Or a 3-D scatter plot? There should by python examples on the VTK wiki that deal with the former. The latter is possible but not terribly straightforward.<br><br>You can list the node and cell variables for any dataset like so:<br><br>ugrid = rdr.GetOutput().GetBlock(0).GetBlock(0)<br>print 'Point Data:'<br>fields = ugrid.GetPointData()<br>for i in range(fields.GetNumberOfArrays()):<br> print ' ' + fields.GetAbstractArray(i).GetName()<br>print 'Cell Data:'<br>fields = ugrid.GetCellData()<br>for i in range(fields.GetNumberOfArrays()):<br> print ' ' + fields.GetAbstractArray(i).GetName()<br><br> David<br><br><br>> On 11/14/13 6:47 AM, "David Thompson" <david.thompson@kitware.com> wrote:<br>> <br>>> Hi Tim,<br>>> <br>>>> ... does anyone have Python examples of how to use<br>>>> vtkExodusIIReader/Writer other than the ones in the documentation?<br>>>> (namely, TestContourGrid.py)<br>>> <br>>> Not using both together, but attached is a simple reader example that<br>>> fetches some data and computes order statistics (quantiles) on one array.<br>>> You'll have to edit the "SetFileName" line to point to a checkout of the<br>>> ParaViewData directory. Was there some particular feature you are having<br>>> trouble with?<br>>> <br>>> David<br>>> <br>> <br>> <br><br><br><br>------------------------------<br><br>Message: 13<br>Date: Fri, 15 Nov 2013 06:51:46 -0800 (PST)<br>From: Harold <boogiedoll@yahoo.com><br>Subject: [vtkusers] Surface Mesh of Equilateral Triangles<br>To: "vtkusers@vtk.org" <vtkusers@vtk.org><br>Message-ID:<br> <1384527106.34126.YahooMailNeo@web125603.mail.ne1.yahoo.com><br>Content-Type: text/plain; charset="us-ascii"<br><br>Is there any method to generate a surface mesh of equilateral triangles in vtk from iso-surface?<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/270ce6f9/attachment-0001.htm><br><br>------------------------------<br><br>_______________________________________________<br>vtkusers mailing list<br>vtkusers@vtk.org<br>http://www.vtk.org/mailman/listinfo/vtkusers<br><br><br>End of vtkusers Digest, Vol 115, Issue 22<br>*****************************************<br></div></body></html>