csg fixes

This commit is contained in:
Joachim Schoeberl 2013-02-03 14:44:15 +00:00
parent 1bc41b35a4
commit d0629955db
2 changed files with 3 additions and 3 deletions

View File

@ -631,10 +631,10 @@ namespace netgen
VisualScene * CSGeometryVisRegister :: GetVisualScene (const NetgenGeometry * geom) const
{
CSGeometry * geometry = dynamic_cast<CSGeometry*> (ng_geometry);
const CSGeometry * geometry = dynamic_cast<const CSGeometry*> (geom);
if (geometry)
{
vsgeom.SetGeometry (geometry);
vsgeom.SetGeometry (const_cast<CSGeometry*>(geometry));
return &vsgeom;
}
return NULL;

View File

@ -338,7 +338,7 @@ INSOLID_TYPE Polyhedra :: VecInSolid2 (const Point<3> & p,
Vec<3> v2n = v2 - (v2 * v1n) * v1n;
v2n.Normalize();
double cosv2, cosv2max = -1;
double cosv2, cosv2max = -99;
for (int i = 0; i < faces.Size(); i++)