mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
csg fixes
This commit is contained in:
parent
1bc41b35a4
commit
d0629955db
@ -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;
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user