From 154d5ce6bdc0dfe4137dde50166a3bb612306eaa Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Wed, 5 Feb 2025 19:22:22 +0100 Subject: [PATCH] Graphics: disable auto-triangulation for BRep shapes Relates to GitHub #255 --- src/graphics/graphics_shape_object_driver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/graphics_shape_object_driver.cpp b/src/graphics/graphics_shape_object_driver.cpp index 4111f5e5..1c5b1996 100644 --- a/src/graphics/graphics_shape_object_driver.cpp +++ b/src/graphics/graphics_shape_object_driver.cpp @@ -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);