DiscussionsIssue archiveOther usage issues

Archived discussion

Bug?? SetWidth fucntin in TPrsStd_AISPresentation

Other usage issuesThu, 12/26/2002 - 09:341 reply

Browse this forum
QuestionAuthor

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

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Hi !

Almost impossible to know, only the OpenCascade folks would know that and they don't answer questions ;o)

Commenter-1