OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
GNU Lesser General Public License v2.1
811
stars
284
forks
source link
[Question] How to perform a glVertex3d(x,y,z) ? #746
Closed
grotius-cnc closed 2 years ago
I have a problem with previewing 1.000.000+ lines. Loading takes more then 10 minutes.
I would like to call opengl directly with something like :
Handle(OpenGl_Context) a = new OpenGl_Context(); a->core11->glColor3d(1,1,1); a->core11->glBegin(GL_LINE_LOOP); a->core11->glVertex3d(0,0,0); a->core11->glVertex3d(1000,1000,1000); a->core11->glVertex3d(5500,00,1000); a->core11->glVertex3d(1000,900,000); a->core11->glEnd();
But this won't work. Is there a code snipped around that show's how to use a direct opengl call from opencascade?
Thanks.