mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
AutoPtr
This commit is contained in:
parent
71f5a34c74
commit
4370277c1e
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user