Dear Freinds,
I am working on mdl using c programming on V8.05 (V8) and V8.11 (V8i).
For dynamic display elements mdlElmdscr_display (V8) is used. But it is deprecated in V8i.
So, i am using mdlTransient_xxx functions using. My code snippet is like below
Case 1: ------ unable to get the dynamic display (using global transient element)
intSuccess = mdlElmdscr_createFromVertices (&msedNewElmP, &msedElmP->el, dpModfyPts, intNumPoints, FALSE, 0);
if (SUCCESS == intSuccess)
{
if (myTransient)
{
//mdlTransient_free (&myTransient, FALSE);
myTransient = mdlTransient_replaceElemDescr ( myTransient, msedNewElmP, FALSE, 0x00ff, NORMALDRAW, FALSE, FALSE, FALSE );
}
else
{
myTransient = mdlTransient_addElemDescr ( NULL, msedNewElmP, FALSE, 0x00ff, NORMALDRAW, FALSE, FALSE, FALSE );
//myTransient = mdlTransient_addElemDescr ( myTransient, msedNewElmP, FALSE, 0x00ff, HILITE, FALSE, FALSE, TRUE );
//myTransient = mdlTransient_addElement( myTransient, &msedNewElmP->el, FALSE, 0x00ff, HILITE, FALSE, FALSE, TRUE );
}
}
Case 2: ------ Overlapiing the elements (displaying more elements) until accepting a point (using local transient element)
intSuccess = mdlElmdscr_createFromVertices (&msedNewElmP, &msedElmP->el, dpModfyPts, intNumPoints, FALSE, 0);
if (SUCCESS == intSuccess)
{
TransDescrP myTransient = NULL;
//mdlElmdscr_display (msedNewElmP, elmDetailsP->dgnModelRef, NORMALDRAW);
//mdlDynamic_setElmDescr(msedNewElmP);
myTransient = (TransDescrP) mdlTransient_addElemDescr ( NULL, msedNewElmP, FALSE, 0x00ff, NORMALDRAW, FALSE, FALSE, FALSE );
//mdlTransient_eraseDisplay(myTransient,TRUE);
//if (myTransient) mdlTransient_setViewFlags(myTransient, 0xFFFF, TRUE);
//mdlTransient_normalDisplay (myTransient);
mdlTransient_free (&myTransient, FALSE);
}
Please how can i go through this. I need this mdl for both versions (V8 & V8i).
Thanks..,