mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0029516: Visualization - eliminate redundant property Graphic3d_MaterialAspect::ReflectionMode()
Decomposition of Ambient, Diffuse, Specular and Emissive properties has been eliminated within *Graphic3d_MaterialAspect* definition, so that following methods of *Graphic3d_MaterialAspect* class have been removed: SetReflectionMode(), SetReflectionModeOn(), Ambient(), Diffuse(), Emissive(), Specular(), SetAmbient(), SetDiffuse(), SetSpecular(), SetEmissive(). Graphic3d_NOM_NEON_GNC non-physical material definition has been corrected and define WHITE emission color coefficient instead of YELLOW. Added method Graphic3d_ClipPlane::SetCappingColor() for more straight-forward modification of Capping color in case of non-physical material. Prs3d_ShadingAspect::Color() has been fixed to return InteriorColor instead of material color coefficient in case of non-physical material.
This commit is contained in:
@@ -76,9 +76,13 @@ const Quantity_Color& Prs3d_ShadingAspect::Color (const Aspect_TypeOfFacingModel
|
||||
default:
|
||||
case Aspect_TOFM_BOTH_SIDE:
|
||||
case Aspect_TOFM_FRONT_SIDE:
|
||||
return myAspect->FrontMaterial().Color();
|
||||
return myAspect->FrontMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT
|
||||
? myAspect->InteriorColor()
|
||||
: myAspect->FrontMaterial().Color();
|
||||
case Aspect_TOFM_BACK_SIDE:
|
||||
return myAspect->BackMaterial().Color();
|
||||
return myAspect->BackMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT
|
||||
? myAspect->BackInteriorColor()
|
||||
: myAspect->BackMaterial().Color();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user