Hi, teachers,
I want to draw a surface comprising triangular faces. Each point forming the triangular faces has different colors arranged. The codes are as follows.
However, it looks that the surface displayed is not SMOOTH with many sawtooths (color sawtooths).
How can I do?
Thanks.
glEnable(GL_POLYGON_SMOOTH);
for(j=0;j<NumberOfTriangle; j++)
{
glBegin{GL_POLYGON};
for{i=0;i<3;i++}
{
glColor3fv{Color[j][i]};
glNormal3fv{VerNorm[j][i]};
Vertex3f{x[j][i],y[j][i],z[j][i]}
}
glEnd{};
}



