<div>Hello,</div> <div> Thanks for answers.I am also not using any user interaction.As I ahve only points,first I need to get cellId .And after that GellCellPoints can give me points ids sharing the cell.But how can I get normal of a cell?</div> <div> </div> <div>Oliver.<BR><BR><B><I>Aina Nagma <aina_nagma@yahoo.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>Hi,</DIV> <DIV> I have following two suggestions regarding the query:</DIV> <DIV> 1) I think instead of GetCellPoints() ,it is better to use either foundCellId/FindAndGetCell ( I am not sure though).</DIV> <DIV> 2)As far as I know vtkPolyDataNormals give point normals.Others can suggest regarding getting cell nomals.</DIV> <DIV> </DIV> <DIV>Best regards,</DIV> <DIV> </DIV> <DIV>A.
N.<BR><BR><B><I>John Platt <jcplatt@dsl.pipex.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="Microsoft Word 10 (filtered)" name=Generator> <STYLE> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {margin-right:0cm; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";} span.emailstyle18 {font-family:Arial; color:navy;} span.emailstyle19 {font-family:Arial; color:navy;} span.EmailStyle20 {font-family:Arial; color:navy;} @page Section1 {size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </STYLE> <DIV class=Section1> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi,</SPAN></FONT></DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I should have read your mail more closely. If your surface is polydata, have you tried vtkPolyData::GetCellPoints()?</SPAN></FONT></DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I am guessing that the point normals are the average of the
cell normals sharing the point.</SPAN></FONT></DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">HTH</SPAN></FONT></DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">John.</SPAN></FONT></DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> vtkusers-bounces+jcplatt=dsl.pipex.com@vtk.org [mailto:vtkusers-bounces+jcplatt=dsl.pipex.com@vtk.org] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Sawsan Ahmed<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> </SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">22 January 2007</SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">12:46</SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> John Platt<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> vtkusers@vtk.org<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [vtkusers] Simple
queries</SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hi,</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> I am not using any user interaction.Without user interaction how can I do that?</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Oliver.<BR><BR><B><I><SPAN style="FONT-WEIGHT: bold; FONT-STYLE: italic">John Platt <jcplatt@dsl.pipex.com></SPAN></I></B> wrote:</SPAN></FONT></DIV></DIV> <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; MARGIN-TOP: 5pt; PADDING-LEFT: 4pt;
MARGIN-BOTTOM: 5pt; PADDING-BOTTOM: 0cm; MARGIN-LEFT: 3.75pt; BORDER-LEFT: #1010ff 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none"> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi,</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Have you tried using vtkCellPicker in your interactor?</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt;
COLOR: navy; FONT-FAMILY: Arial"> vtCellPicker* cellPicker = vtkCellPicker::New();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> myInteractor->SetPicker(cellPicker);</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> cellPicker->Delete();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Then add observers for the standard pick event (P key)</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal
style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> vtkCallbackCommand* pickEventCBC = vtkCallbackCommand::New();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> pickEventCBC->SetCallback(MyPickEventHandler );</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> vtkAbstractPicker* picker = myInteractor->GetPicker();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE:
10pt; COLOR: navy; FONT-FAMILY: Arial"> picker->AddObserver( vtkCommand::StartPickEvent, pickEventCBC, 0.5 );</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> picker->AddObserver( vtkCommand::PickEvent, pickEventCBC, 0.5 );</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> picker->AddObserver( vtkCommand::EndPickEvent, pickEventCBC, 0.5 );</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> pickEventCBC->Delete();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal
style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Do your work in MyPickEventHandler() e.g.</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> pickedCell = picker->GetCellId();</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <TABLE class=MsoNormalTable style="MARGIN-LEFT: 36pt" cellSpacing=0 cellPadding=0 border=0> <TBODY>
<TR> <TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm" vAlign=top noWrap> <DIV> <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV></TD> <TD style="PADDING-RIGHT: 0cm; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; PADDING-TOP: 0cm" vAlign=bottom> <DIV> <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV></TD></TR></TBODY></TABLE> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">HTH</SPAN></FONT></DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy;
FONT-FAMILY: Arial">John.</SPAN></FONT></DIV></DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> vtkusers-bounces+jcplatt=dsl.pipex.com@vtk.org [mailto:vtkusers-bounces+jcplatt=dsl.pipex.com@vtk.org] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Oliver Diessel<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> </SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">22 January 2007</SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">07:41</SPAN></FONT><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> vtkusers@vtk.org<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [vtkusers] Simple queries</SPAN></FONT></DIV></DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV> <DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hi Everybody,</SPAN></FONT></DIV></DIV></DIV> <DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> I am quite new in VTK.I have some queries.I have got a point on the surface of an object.I want to know the cell id which contains the point and I also want to know the normal of the cell ( Is there any difference between point normal and cell
normal?) </SPAN></FONT></DIV></DIV></DIV> <DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Thanks everyone in advance.</SPAN></FONT></DIV></DIV></DIV> <DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV></DIV></DIV> <DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Oliver.</SPAN></FONT></DIV></DIV></DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> Send instant messages to your online friends http://au.messenger.yahoo.com </SPAN></FONT></DIV></DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers</SPAN></FONT></DIV></BLOCKQUOTE> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </DIV> <DIV style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV> <DIV style="MARGIN-LEFT: 36pt"> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR align=center width="100%" SIZE=1> </SPAN></FONT></DIV></DIV> <DIV class=MsoNormal style="MARGIN-LEFT: 36pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Expecting? Get great news right away with <A
href="http://us.rd.yahoo.com/evt=49982/*http:/advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</A><BR>Try the <A href="http://us.rd.yahoo.com/evt=49982/*http:/advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</A></SPAN></FONT></DIV></DIV>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><BR> <div> <HR SIZE=1> <A href="http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL">Get your own web address.</A><BR>Have a HUGE year through <A href="http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL">Yahoo! Small Business.</A>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep
messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><BR><p> Send instant messages to your online friends http://au.messenger.yahoo.com