projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd7628
)
0023966: Voxel_FastConverter performs unnecessary triangulation.
author
Pawel
<pawel-kowalski@wp.pl>
Wed, 15 May 2013 15:53:23 +0000
(17:53 +0200)
committer
Pawel
<pawel-kowalski@wp.pl>
Fri, 31 May 2013 12:50:36 +0000
(16:50 +0400)
Avoiding creating new triangulation in case a triangulation with a deflection value not greater than the one specified exists.
src/Voxel/Voxel_FastConverter.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/Voxel/Voxel_FastConverter.cxx
b/src/Voxel/Voxel_FastConverter.cxx
index
2b86d72
..
f04089c
100755
(executable)
--- 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;