<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello again!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After I could link the cone example, I made some
</FONT></DIV>
<DIV><FONT face=Arial size=2>modifications. Below is the code.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I run it, If found that setting the cone
resolution</FONT></DIV>
<DIV><FONT face=Arial size=2>above 25, it doesn't render good. ¿Why? ¿Is this a
bug?</FONT></DIV>
<DIV><FONT face=Arial size=2>¿There is a problem with my opengl
drv?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bye,</FONT></DIV>
<DIV><FONT face=Arial size=2>Javier</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#include "vtkRenderer.h"<BR>#include
"vtkRenderWindow.h"<BR>#include "vtkConeSource.h"<BR>#include
"vtkPolyDataMapper.h"<BR>#include "vtkRenderWindowInteractor.h"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>int main ()<BR>{<BR> vtkActor *coneActor =
vtkActor::New();<BR> vtkRenderer *renderer =
vtkRenderer::New();<BR> vtkConeSource *coneGeometry =
vtkConeSource::New();<BR> vtkRenderWindow *renderWindow =
vtkRenderWindow::New();<BR> vtkPolyDataMapper *coneMapper =
vtkPolyDataMapper::New();<BR> vtkRenderWindowInteractor *interactor =
vtkRenderWindowInteractor::New();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> renderer->SetViewport( 0.0, 0.0, 1.0, 1.0
);<BR> renderer->SetBackground( 0.8, 0.4, 0.2
);<BR> renderWindow->SetSize( 700,700
);<BR> coneGeometry->SetResolution( 36 );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> coneMapper->SetInput(
coneGeometry->GetOutput() );<BR> coneActor->SetMapper( coneMapper
);<BR> renderer->AddActor( coneActor
);<BR> renderWindow->AddRenderer( renderer
);<BR> interactor->SetRenderWindow( renderWindow
);<BR> renderWindow->Render();<BR> interactor->SetDesiredUpdateRate(
0.1 );<BR> interactor->Start();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> // Don't forget to clear
memory</FONT></DIV>
<DIV><FONT face=Arial
size=2> coneGeometry->Delete();<BR> renderer->Delete();<BR> coneActor->Delete();<BR> coneMapper->Delete();<BR> renderWindow->Delete();<BR> interactor->Delete();<BR> return
0;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>}<BR></FONT></DIV></BODY></HTML>