Skip to content

Commit 2f9229e

Browse files
committed
Graphics: use Plaster material by default
1 parent 3510c93 commit 2f9229e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/graphics/graphics_object_driver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ GraphicsObjectDriver::Support GraphicsShapeObjectDriver::supportStatus(const TDF
103103
GraphicsObjectPtr GraphicsShapeObjectDriver::createObject(const TDF_Label& label) const
104104
{
105105
if (XCaf::isShape(label)) {
106-
// Handle_AIS_Shape object = new AIS_Shape(XCaf::shape(label));
107-
Handle_XCAFPrs_AISObject object = new XCAFPrs_AISObject(label);
106+
auto object = new XCAFPrs_AISObject(label);
108107
object->SetDisplayMode(AIS_Shaded);
109-
//object->SetMaterial(Graphic3d_NOM_STEEL);
108+
object->SetMaterial(Graphic3d_NOM_PLASTER);
110109
object->Attributes()->SetFaceBoundaryDraw(true);
111110
object->Attributes()->SetFaceBoundaryAspect(
112111
new Prs3d_LineAspect(Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.));

src/graphics/graphics_object_driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class GraphicsMeshObjectDriver : public GraphicsObjectDriver {
8989
struct DefaultValues {
9090
bool showEdges = false;
9191
bool showNodes = false;
92-
Graphic3d_NameOfMaterial material = Graphic3d_NOM_PLASTIC;
92+
Graphic3d_NameOfMaterial material = Graphic3d_NOM_PLASTER;
9393
Quantity_Color color = Quantity_NOC_BISQUE;
9494
Quantity_Color edgeColor = Quantity_NOC_BLACK;
9595
};

0 commit comments

Comments
 (0)