occ-visual

This commit is contained in:
Joachim Schoeberl 2009-04-30 12:13:49 +00:00
parent 777f9c65f2
commit b8d71dd7a5
4 changed files with 8 additions and 13 deletions

View File

@ -336,7 +336,4 @@ namespace netgen
return sqrt(cosalpha + 1.)/(min2(l1,l2)*(1.-cosalpha));
}
}

View File

@ -74,12 +74,6 @@ void VisualSceneGeometry :: DrawScene ()
double transp = vispar.transp;
glMaterialf (GL_FRONT_AND_BACK, GL_SHININESS, shine);
glLogicOp (GL_COPY);

View File

@ -80,6 +80,8 @@ namespace netgen
glMaterialf (GL_FRONT_AND_BACK, GL_SHININESS, shine);
glLogicOp (GL_COPY);
glEnable (GL_NORMALIZE);
float mat_col[] = { 0.2f, 0.2f, 0.8f, 1.0f};
glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, mat_col);

View File

@ -2035,9 +2035,11 @@ namespace netgen
vsol->soltype==SOL_VIRTUALFUNCTION)
*/
// if (autoscale)
// GetMinMax (vecfunction, 0, minval, maxval);
/*
// was commented out, JS Apr 2009
if (autoscale && !scalfunction)
GetMinMax (vecfunction, 0, minval, maxval);
*/
glColor3d (1.0, 1.0, 1.0);
// glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);