From eb57b012e80f2e2094d8a0a7f013fdc53b011420 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 15 May 2013 17:53:23 +0200 Subject: [PATCH] 0023966: Voxel_FastConverter performs unnecessary triangulation. Avoiding creating new triangulation in case a triangulation with a deflection value not greater than the one specified exists. --- src/Voxel/Voxel_FastConverter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Voxel/Voxel_FastConverter.cxx b/src/Voxel/Voxel_FastConverter.cxx index 2b86d727e9..f04089c60b 100755 --- a/src/Voxel/Voxel_FastConverter.cxx +++ b/src/Voxel/Voxel_FastConverter.cxx @@ -123,7 +123,7 @@ void Voxel_FastConverter::Init() { TopoDS_Face F = TopoDS::Face(expl.Current()); Handle(Poly_Triangulation) T = BRep_Tool::Triangulation(F, L); - if (T.IsNull() || fabs(T->Deflection() - myDeflection) > Precision::Confusion()) + if (T.IsNull() || (T->Deflection() > myDeflection)) { triangulate = Standard_True; break;