DiscussionsIssue archiveOCCT:Visualization

Archived issue #0024615

Bug modifying shading aspect (boundary edge width)

CommunityOCCT:Visualizationclosed2 public notes

Search issues

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

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 2
> 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.
02Commenter 2
Dear Commenter 1,

please close the issue.