This commit is contained in:
Gerhard Kitzler 2013-02-27 15:11:46 +00:00
parent 71f5a34c74
commit 4370277c1e

View File

@ -19,7 +19,7 @@ extern "C" int Ng_STL_Init (Tcl_Interp * interp);
namespace netgen namespace netgen
{ {
extern NetgenGeometry * ng_geometry; extern AutoPtr<NetgenGeometry> ng_geometry;
extern AutoPtr<Mesh> mesh; extern AutoPtr<Mesh> mesh;
static VisualSceneSTLGeometry vsstlgeom; static VisualSceneSTLGeometry vsstlgeom;
@ -122,7 +122,7 @@ namespace netgen
{ {
//cout << "STL doctor" << endl; //cout << "STL doctor" << endl;
STLGeometry * stlgeometry = STLGeometry * stlgeometry =
dynamic_cast<STLGeometry*> (ng_geometry); dynamic_cast<STLGeometry*> (ng_geometry.Ptr());
stldoctor.drawmeshededges = stldoctor.drawmeshededges =
@ -418,7 +418,7 @@ namespace netgen
double data[10]; double data[10];
static char buf[20]; static char buf[20];
STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry); STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry.Ptr());
if (!stlgeometry) if (!stlgeometry)
{ {
@ -520,7 +520,7 @@ namespace netgen
Ng_SetMeshingParameters (clientData, interp, argc, argv); Ng_SetMeshingParameters (clientData, interp, argc, argv);
STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry); STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry.Ptr());
if (mesh.Ptr() && stlgeometry) if (mesh.Ptr() && stlgeometry)
{ {
mesh -> SetLocalH (stlgeometry->GetBoundingBox().PMin() - Vec3d(10, 10, 10), mesh -> SetLocalH (stlgeometry->GetBoundingBox().PMin() - Vec3d(10, 10, 10),