[vtkusers] VTK running OpenGL commands urgent HELP

Arnaldo Luis Lixandrão Filho arnaldo.fisica at gmail.com
Fri Feb 20 13:34:52 EST 2009


Hi,
I want to execute the follow OpenGL commands in VTK

if (bShaded) {
glBegin(GL_TRIANGLES);
for (int i=0; i<mesh.GetSize(); i++) {
glNormal3d(mesh[i].n.x, mesh[i].n.y, mesh[i].n.z);
for (int j=0; j<3; j++) {
glVertex3d(mesh[i].v[j].x,mesh[i].v[j].y,mesh[i].v[j].z);
}
}
glEnd();

Is it possible?

Thanks,

Best Regards.
--
Arnaldo Luis Lixandrão Filho
----------------------------------------------------------------------------------------------------
Centro de Tecnologia da Informação Renato Archer - CTI
Divisão de Tecnologias Tridimensionais - DT3D
Rod. SP 65 km 143,6 – Campinas/SP
CEP: 13069-901 - Amarais
Fone: (19) 3746-6231 / Fax: (19) 3746-6204
----------------------------------------------------------------------------------------------------
NextFab Organization
----------------------------------------------------------------------------------------------------
skype/voipraider: arnaldo.fisica
celular: +55 - 19 - 9695-9076
----------------------------------------------------------------------------------------------------
Sent from: Campinas São Paulo Brasil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090220/ba711d9f/attachment.htm>


More information about the vtkusers mailing list