<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">hi;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR> I have to design a polygonal viewer than display that polygonal data, Could you please help me? Do you have any example code or suggestions?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thank you</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">tony<BR>-- <BR><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Secolas UA <secolasua@gmail.com><BR>To: tony hakki <tony2007vtk@yahoo.com><BR>Sent: Monday, December 11, 2006 5:58:50 PM<BR>Subject: Re: [vtkusers] Microsoft Visual Studio 2005<BR><BR>
<DIV>I see... Well you can run both extensions, but .cpp it's easier... Don't forget to include the vtk library files and such, if you installed in VC6 the process is the same. The rest is too the same... code it, compile it, run it... </DIV>
<DIV> </DIV>
<DIV>Regards </DIV>
<DIV>Ricardo Seco<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 12/11/06, <B class=gmail_sendername>tony hakki</B> <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I mean by saying step by step: how will I run the program in M VStudio2005 ,tell me about more details ,because I have not used MVS 2005 before. When I will run it M vStudio 2005 ,what will the extension of the file? cxx or .cpp ? I think .cpp ,right? <BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><SPAN class=q>----- Original Message ----<BR>From: Secolas UA <<A href="mailto:secolasua@gmail.com" target=_blank rel=nofollow> secolasua@gmail.com</A>><BR>To: tony hakki <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com</A>><BR></SPAN>
<DIV><SPAN class=e id=q_10f727092f4d5a28_2>Sent: Monday, December 11, 2006 5:40:55 PM<BR>Subject: Re: [vtkusers] Microsoft Visual Studio 2005<BR><BR>
<DIV>Well, then just copy paste the code i sent you... I've already tested it with VC2005 and it works fine.</DIV>
<DIV>What do you mean by "explain me step by step"?<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 12/11/06, <B class=gmail_sendername>tony hakki</B> <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">yes I run it in VC 6.0 And I have already been succesful, either of yours or mine<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><SPAN>----- Original Message ----<BR>From: Secolas UA <<A href="mailto:secolasua@gmail.com" target=_blank rel=nofollow> secolasua@gmail.com</A>><BR>To: tony hakki <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com</A>><BR></SPAN>
<DIV><SPAN>Sent: Monday, December 11, 2006 5:30:25 PM<BR>Subject: Re: [vtkusers] Microsoft Visual Studio 2005<BR><BR>Have you runned this example in VC 6.0?<BR><BR>
<DIV><SPAN class=gmail_quote>On 12/11/06, <B class=gmail_sendername>tony hakki</B> <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">hello ;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">I have not run this on Mic. Visual Studio 2005. I attached my data(Tp09_Catia_File.stl) to this mail. If you test it and tell me about how to running program step by step it will be very helpful useful for my studyings. </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">thank you</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">Tony</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"><SPAN>----- Original Message ----<BR>From: Secolas UA <<A href="mailto:secolasua@gmail.com" target=_blank rel=nofollow> secolasua@gmail.com</A>><BR>To: tony hakki <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com</A>><BR></SPAN>
<DIV><SPAN>Sent: Monday, December 11, 2006 4:37:27 PM<BR>Subject: Re: [vtkusers] Microsoft Visual Studio 2005<BR><BR>Well, it's pretty straight foward, you just need to add 2 libraries, cause they miss in the example...<BR>Here it goes... <BR><BR>// A stl( stereo lithography) file is read by this program. <BR><BR>#include "vtkSTLReader.h "<BR><BR>#include "vtkPolyDataMapper.h"<BR><BR>#include "vtkLODActor.h"<BR><BR>#include " vtkRenderer.h"<BR><BR>#include "vtkRenderWindow.h"<BR><BR>#include "vtkRenderWindowInteractor.h "<BR><BR>#include "vtkProperty.h"<BR><BR>#include "vtkCamera.h" <BR><BR>#include <iostream> <BR><BR>void main () <BR><BR>{<BR><BR>// Standard reading class<BR><BR>vtkSTLReader *read = vtkSTLReader::New(); <BR><BR>read->SetFileName("Tp09_Catia_File.stl");<BR><BR>read->Update(); <BR><BR><BR> <BR><BR>vtkPolyDataMapper *readmap=vtkPolyDataMapper::New();<BR><BR>readmap->SetInput(read->GetOutput());<BR><BR>
<BR><BR> <BR><BR>vtkLODActor *lodactor=vtkLODActor::New();<BR><BR>lodactor->SetMapper(readmap); <BR><BR>lodactor->GetProperty()->SetColor(0,1,1); //this indicates the visualization color<BR><BR>lodactor->RotateX( 30.0); //these two indicates first seeing angle<BR><BR>lodactor->RotateY(60.0);<BR><BR> <BR><BR> <BR><BR>vtkRenderer *ren1=vtkRenderer::New();<BR><BR>vtkRenderWindow *renwin=vtkRenderWindow::New();<BR><BR>renwin->AddRenderer(ren1); <BR><BR>vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();<BR><BR>iren->SetRenderWindow(renwin);<BR><BR> <BR><BR> <BR><BR>ren1->AddActor(lodactor);<BR><BR>ren1->SetBackground(0,0,0);<BR><BR>renwin->SetSize(500,500); <BR><BR> <BR><BR>ren1->ResetCamera();<BR><BR>ren1->GetActiveCamera()->Zoom( 1.5);<BR><BR>renwin->Render();<BR><BR>iren->Start();<BR><BR>}<BR><BR>I've tested and it compiled perfectly... <BR>For further testing i will need
Tp09_Catia_File.stl file, so if you have problems send me the file for complete testing... <BR><BR>Best Regards<BR><BR>Ricardo Seco<BR><BR>
<DIV><SPAN class=gmail_quote>On 12/11/06, <B class=gmail_sendername>tony hakki</B> <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">Hi Ricardo,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">first of all i want to thank to your answer. I prepared a simple example which is written on Microsoft Visual C++ 6.0, Could you please help me to convert it Microsoft Visual Studio 2005 form. Thanks a lot </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">Tony<BR><BR> </DIV>
<DIV><SPAN>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">----- Original Message ----<BR>From: Secolas UA <<A href="mailto:secolasua@gmail.com" target=_blank rel=nofollow> secolasua@gmail.com</A>><BR>To: tony hakki <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com</A>><BR>Sent: Monday, December 11, 2006 1:12:52 PM <BR>Subject: Re: [vtkusers] Microsoft Visual Studio 2005<BR><BR>Yes, they can! There are some differences cause the Input/Output functions in VS2005 are a little bit different in the way they work. But in terms of using VTK there's no major difference. <BR><BR>Cheers<BR><BR>Ricardo Seco <BR><BR>
<DIV><SPAN class=gmail_quote>On 12/11/06, <B class=gmail_sendername>tony hakki</B> <<A href="mailto:tony2007vtk@yahoo.com" target=_blank rel=nofollow>tony2007vtk@yahoo.com </A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV>
<DIV>hi friends;</DIV>
<DIV>can vtk codes be created on Microsoft Visual Studio 2005? what is the diffrence between Microsoft Visual Studio 2005 and Microsoft Visual c++ 6.0?</DIV>
<DIV> </DIV>
<DIV>Tony</DIV></DIV></DIV><SPAN><BR>
<HR SIZE=1>
Want to start your own business? Learn how on <A href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index" target=_blank rel=nofollow>Yahoo! Small Business. </A></SPAN></DIV><SPAN></SPAN><BR>_______________________________________________<BR>This is the private VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank rel=nofollow>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank rel=nofollow>http://www.vtk.org/mailman/listinfo/vtkusers </A><BR><BR><BR></BLOCKQUOTE></DIV><BR> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif"><BR> </DIV></SPAN></DIV></DIV><SPAN><BR>
<HR SIZE=1>
Need a quick answer? Get one in minutes from people who know. Ask your question on <A href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx" target=_blank rel=nofollow>Yahoo! Answers </A>.</SPAN></DIV><SPAN></SPAN></BLOCKQUOTE></DIV><BR></SPAN></DIV></DIV><BR> </DIV></DIV><SPAN><BR>
<HR SIZE=1>
Any questions? Get answers on any topic at <A href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx" target=_blank rel=nofollow>Yahoo! Answers</A>. Try it now.</SPAN></DIV><BR clear=all></BLOCKQUOTE></DIV><BR></SPAN></DIV></DIV><SPAN><BR></SPAN></DIV></DIV><SPAN><BR>
<HR SIZE=1>
Check out <A href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta" target=_blank rel=nofollow>the all-new Yahoo! Mail beta</A> - Fire up a more powerful email and get things done faster. </SPAN></DIV><SPAN></SPAN></BLOCKQUOTE></DIV><BR></SPAN></DIV></DIV><BR> </DIV></DIV>
<DIV><SPAN class=e id=q_10f727092f4d5a28_4><BR>
<HR SIZE=1>
Check out <A href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta" target=_blank rel=nofollow>the all-new Yahoo! Mail beta</A> - Fire up a more powerful email and get things done faster. </SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
<hr size=1>Want to start your own business? Learn how on <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index">Yahoo! Small Business.</a></body></html>