
Thu, 12/26/2002 - 09:34
Forums:
Hi:
In OCAF, I did
Handle(TPrsStd_AISPresentation) prs;
if (!L.FindAttribute(TPrsStd_AISPresentation::GetID(),prs))
prs = TPrsStd_AISPresentation::Set(L,TNaming_NamedShape::GetID());
prs->SetColor(Quantity_NameOfColor(TSO.Color()));
//Transparency
prs->SetTransparency(TSO.Transparency());
prs->SetMaterial(nameofmaterial);
That is OK for redo & undo functions. But, if I add "prs->SetWidth(..)". The undo is OK. But, it will cause redo function crashing. Is it a bug? thanks a lot.
Best regards,
Shawn
Fri, 01/31/2003 - 12:05
Hi !
Almost impossible to know, only the OpenCascade folks would know that and they don't answer questions ;o)
Mikael