Skip to content

Commit

Permalink
Graphics: use Plaster material by default
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Mar 3, 2022
1 parent 3510c93 commit 2f9229e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/graphics/graphics_object_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ GraphicsObjectDriver::Support GraphicsShapeObjectDriver::supportStatus(const TDF
GraphicsObjectPtr GraphicsShapeObjectDriver::createObject(const TDF_Label& label) const
{
if (XCaf::isShape(label)) {
// Handle_AIS_Shape object = new AIS_Shape(XCaf::shape(label));
Handle_XCAFPrs_AISObject object = new XCAFPrs_AISObject(label);
auto object = new XCAFPrs_AISObject(label);
object->SetDisplayMode(AIS_Shaded);
//object->SetMaterial(Graphic3d_NOM_STEEL);
object->SetMaterial(Graphic3d_NOM_PLASTER);
object->Attributes()->SetFaceBoundaryDraw(true);
object->Attributes()->SetFaceBoundaryAspect(
new Prs3d_LineAspect(Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.));
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/graphics_object_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GraphicsMeshObjectDriver : public GraphicsObjectDriver {
struct DefaultValues {
bool showEdges = false;
bool showNodes = false;
Graphic3d_NameOfMaterial material = Graphic3d_NOM_PLASTIC;
Graphic3d_NameOfMaterial material = Graphic3d_NOM_PLASTER;
Quantity_Color color = Quantity_NOC_BISQUE;
Quantity_Color edgeColor = Quantity_NOC_BLACK;
};
Expand Down

0 comments on commit 2f9229e

Please sign in to comment.