mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
reimplemented mesh evaluation: from meshDoc index to MeshModel*
This commit is contained in:
parent
088bedaff6
commit
694bd993d7
@ -530,9 +530,14 @@ int EnvWrap::evalEnum( const QString& nm )
|
||||
return evalInt(nm);
|
||||
}
|
||||
|
||||
int EnvWrap::evalMesh(const QString& nm)
|
||||
MeshModel* EnvWrap::evalMesh(const QString& nm)
|
||||
{
|
||||
return evalInt(nm);
|
||||
int ii = evalInt(nm);
|
||||
QScriptValue mdsv = env->globalObject().property(ScriptAdapterGenerator::meshDocVarName());
|
||||
MeshDocumentScriptInterface* mdsi = dynamic_cast<MeshDocumentScriptInterface*>(mdsv.toQObject());
|
||||
if (mdsi != NULL)
|
||||
return mdsi->md->getMesh(ii);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QColor EnvWrap::evalColor( const QString& nm )
|
||||
|
||||
@ -170,7 +170,7 @@ public:
|
||||
/*QString getExpType(const QString& nm);*/
|
||||
QString evalString(const QString& nm);
|
||||
int evalEnum( const QString& nm );
|
||||
int evalMesh(const QString& nm);
|
||||
MeshModel* evalMesh(const QString& nm);
|
||||
};
|
||||
|
||||
QScriptValue EnvWrap_ctor(QScriptContext* c,QScriptEngine* e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user