- gp_Pnt aP1 = aMgr->getPosition(aObj1, this);
- gp_Pnt aP2 = aMgr->getPosition(aObj2, this);
-
- Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup(thePresentation);
- aGroup->SetPrimitivesAspect(myAspect);
- myPntArray->SetVertice(1, aP1);
- myPntArray->SetVertice(2, aP2);
- aGroup->AddPrimitiveArray(myPntArray);
+ gp_Pnt aP1 = aMgr->getPosition(aObj1, this, theStep);
+ gp_Pnt aP2 = aMgr->getPosition(aObj2, this, theStep);
+ myPntArray = new Graphic3d_ArrayOfPoints(2, withColor);
+ myPntArray->AddVertex(aP1);
+ myPntArray->AddVertex(aP2);
+ return true;