From: Pawel Date: Wed, 15 May 2013 15:53:23 +0000 (+0200) Subject: 0023966: Voxel_FastConverter performs unnecessary triangulation. X-Git-Tag: V6_7_0_beta~262 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=eb57b012e80f2e2094d8a0a7f013fdc53b011420;p=occt-copy.git 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. --- 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;