Skip to content

Commit

Permalink
Graphics: disable auto-triangulation for BRep shapes
Browse files Browse the repository at this point in the history
Relates to GitHub #255
  • Loading branch information
HuguesDelorme committed Feb 5, 2025
1 parent c7bfb00 commit 154d5ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphics/graphics_shape_object_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ GraphicsObjectPtr GraphicsShapeObjectDriver::createObject(const TDF_Label& label
object->Attributes()->SetFaceBoundaryAspect(
new Prs3d_LineAspect(Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.)
);
object->Attributes()->SetAutoTriangulation(false);
object->Attributes()->SetIsoOnTriangulation(true);
//object->Attributes()->SetShadingModel(Graphic3d_TypeOfShadingModel_Pbr, true/*overrideDefaults*/);
object->SetOwner(this);
Expand Down

0 comments on commit 154d5ce

Please sign in to comment.