Removed copy of mesh inside the slice editing tool

This commit is contained in:
Paolo Cignoni cignoni 2008-10-28 21:57:46 +00:00
parent b26290cd58
commit 233fd1a2e1
2 changed files with 7 additions and 7 deletions

View File

@ -126,12 +126,12 @@ void ExtraMeshSlidePlugin::RestoreDefault(){
pr.numRow=1;
mesh_grid = new TriMeshGrid();
mesh_grid->Set(m.cm.face.begin() ,m.cm.face.end());
mesh_grid->Set(m->cm.face.begin() ,m->cm.face.end());
//pr.scale = (pr.viewBox[0]/pr.numCol) /(edgeMax*(1.4142)) ;
//pr.textDetails = svgpro->showText ;
for(int i=0; i<point_Vector.size(); i++){
Point3f rotationCenter=m.cm.bbox.Center(); //the point where the plans rotate
Point3f po=point_Vector[i]-m.cm.bbox.Center();
Point3f rotationCenter=m->cm.bbox.Center(); //the point where the plans rotate
Point3f po=point_Vector[i]-m->cm.bbox.Center();
Plane3f p;
p.SetDirection(dir);
/*
@ -190,11 +190,11 @@ void ExtraMeshSlidePlugin::UpdateVal(SVGPro* sv, SVGProperties * pr)
{
this->gla=gla;
this->m=m;
this->m=&m;
if(!gla->isEnabled()){
dialogsliceobj->close();
}
DrawPlane(this->gla,this->m);
DrawPlane(this->gla,*(this->m));
}
void ExtraMeshSlidePlugin::EndEdit(MeshModel &m, GLArea *gla ){
@ -211,7 +211,7 @@ void ExtraMeshSlidePlugin::UpdateVal(SVGPro* sv, SVGProperties * pr)
dialogsliceobj=new dialogslice(gla->window());
dialogsliceobj->show();
dialogsliceobj->setAllowedAreas(Qt::NoDockWidgetArea);
this->m=m;
this->m=&m;
QObject::connect(dialogsliceobj, SIGNAL(exportMesh()), this,SLOT(SlotExportButton()));
QObject::connect(dialogsliceobj, SIGNAL(Update_glArea()), this, SLOT(upGlA()));
QObject::connect(dialogsliceobj, SIGNAL(RestoreDefault()), this, SLOT(RestoreDefault()));

View File

@ -63,7 +63,7 @@ private:
QString fileName, dirName, fileN;
bool isDragging;
GLArea * gla;
MeshModel m;
MeshModel *m;
vcg::Box3f b;
SVGPro *svgpro;
float edgeMax;