1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00
occt/tests/bugs/demo/bug25445
oan 74da0216d7 0025378: Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
New parameter MinSize has been introduced to BRepMesh and GCPnts_TangentialDeflection;

Check length of remaining part of curve for min size parameter instead of distance between two points to avoid large gaps in case highly distorted BSpline surfaces;

Produce fine mesh for sphere and fix other surface;

Test cases for issue CR25378

Correction of test cases for issue CR25378
2014-12-11 17:17:06 +03:00

29 lines
806 B
Plaintext

puts "========"
puts "OCC25445"
puts "========"
puts ""
#######################################################################
# Draw command incmesh should support all parameters used in BRepMesh
#######################################################################
pcone aCone 100 10 100
tclean aCone
incmesh aCone 0.01 -a 10.
set bug_info [trinfo aCone]
set NbTrian_1 [lindex $bug_info 3]
set NbNodes_1 [lindex $bug_info 5]
tclean aCone
incmesh aCone 0.01 -a 1.
set bug_info [trinfo aCone]
set NbTrian_2 [lindex $bug_info 3]
set NbNodes_2 [lindex $bug_info 5]
if {$NbTrian_1 == $NbTrian_2} {
puts "ERROR: OCC25445 is not fixed. Number of triangles are equal for both meshes."
}
if {$NbNodes_1 == $NbNodes_2} {
puts "ERROR: OCC25445 is not fixed. Number of nodes are equal for both meshes."
}