with ViewOverlay OpenGL.GL_POINTS doesn't work

Experimenter
Experimenter

Hi everybody, I want to draw some key points in the view. but the code below doesn't work.

 

gl.glPointSize(point.Diameter);
gl.glHint(SharpGL.OpenGL.GL_POINT_SMOOTH_HINT, CSharpGL.OpenGL.GL_FASTEST);
{
gl.glBegin(SharpGL.OpenGL.GL_POINTS);//***** System.Runtime.InteropServices.COMException

gl.glVertex3d(point.X, point.Y, point.Z);

gl.glEnd();
}

 

I don´t know what to do...

 

2 REPLIES

Re: with ViewOverlay OpenGL.GL_POINTS doesn't work

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Not sure if GL_POINTS is supported.

Did you look at the sample code?

https://github.com/SolidEdgeCommunity/Samples/blob/master/AddIn/DemoAddIn/vb/DemoAddIn/MyViewOverlay...

 

LMGi
www.TLMGi.com

Re: with ViewOverlay OpenGL.GL_POINTS doesn't work

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

C# version can be found here: https://github.com/SolidEdgeCommunity/Samples/blob/master/AddIn/DemoAddIn/cs/DemoAddIn/MyViewOverlay...

 

My understanding is that the GL implentation via the IGL interface is limited. To what extent I am unsure. You would likely need to submit an IR for additional information on the limitations. I am by no means a GL expert but I can say that I had quite a bit of difficulty translating existing GL examples found on the Internet and getting them to work propertly via the IGL interface. Some things seemed to work, some didn't.

Jason Newell
Applications Architect
www.jasonnewell.net