DiscussionsIssue archiveOCCT:Visualization

Archived issue #0025391

Graphic3d_MaterialAspect: getting/setting color discrepancy.

CommunityOCCT:Visualizationclosed5 public notes

Search issues

Description

Graphic3d_MaterialAspect::SetColor stores the provided color in 'myDiffuseColor' variable and modifes 'myAmbientColor' using a hard-coded coefficient.

Graphic3d_MaterialAspect::Color() returns the value of 'myAmbientColor'.

If an application relies on the combination of SetColor() / Color() calls undesired effects would occur therefore I suggest to return 'myDiffuseColor' in Graphic3d_MaterialAspect::Color().

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Oct 17 13:55:16 2014 +0200

    Graphic3d_MaterialAspect::Color() returns the value of 'myDiffuseColor' in order to be consistent with Graphic3d_MaterialAspect::SetColor.
02Author
CR25391 has been pushed. Please review.
03Commenter 3
Dear Author,

the issue is duplicate of #0025349, which has already waiting for testing the similar patch.
04Commenter 3
Dear Commenter 1,

please close the issue as duplicate.
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records