Archived issue #0024615
Bug modifying shading aspect (boundary edge width)
Description
I add a new shape and modify its shading aspect. Everything works OK except the line width. If you create a new ShadingAspect and set it, it seems to work but if you edit it, it doesn't work.
Steps to reproduce
aNewShape->Attributes()->SetFaceBoundaryDraw(Standard_True);
aNewShape->Attributes()->FaceBoundaryAspect()->SetColor(Quantity_NOC_BLACK);
aNewShape->Attributes()->FaceBoundaryAspect()->SetTypeOfLine(Aspect_TOL_SOLID);
aNewShape->Attributes()->FaceBoundaryAspect()->SetWidth(2.0); // This line doesn't seem to work
aNewShape->Attributes()->FaceBoundaryAspect()->SetColor(Quantity_NOC_BLACK);
aNewShape->Attributes()->FaceBoundaryAspect()->SetTypeOfLine(Aspect_TOL_SOLID);
aNewShape->Attributes()->FaceBoundaryAspect()->SetWidth(2.0); // This line doesn't seem to work
Public activity
2 archived notes
Participants are labeled by their role within this record.
> If you create a new ShadingAspect and set it, it seems to work but if you edit it, it doesn't work.
this is API misuse - when custom aspect is needed you have to define it.
Some improvements (making current API more clear) have been done in scope of #0025773.
this is API misuse - when custom aspect is needed you have to define it.
Some improvements (making current API more clear) have been done in scope of #0025773.
Dear Commenter 1,
please close the issue.
please close the issue.