mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
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.
This commit is contained in:
parent
8fd76287f8
commit
eb57b012e8
@ -123,7 +123,7 @@ void Voxel_FastConverter::Init()
|
|||||||
{
|
{
|
||||||
TopoDS_Face F = TopoDS::Face(expl.Current());
|
TopoDS_Face F = TopoDS::Face(expl.Current());
|
||||||
Handle(Poly_Triangulation) T = BRep_Tool::Triangulation(F, L);
|
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;
|
triangulate = Standard_True;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user