Files
OCCT/tests/helix/standard/F8
Pasukhin Dmitry 9f761b12ec Modeling - Implement new Helix Toolkit (#648)
- Adds a complete TKHelix toolkit with geometric helix curve adaptor and topological builders
- Implements advanced B-spline approximation algorithms for high-quality helix representation
- Provides comprehensive TCL command interface for interactive helix creation and testing
2025-07-28 12:51:16 +01:00

63 lines
1.1 KiB
Plaintext

puts "============"
puts "OCCGH648"
puts "============"
puts ""
#######################################################################
# spiral helix: comphelix2, D1 = 100, D2 = 20, 1 part, pitche = 20, number of turns = 5
#######################################################################
set BugNumber OCCGH648
set np 1
set D1 100
set D2 20
set P1 20
set N1 5
set mistake 0
set result ""
if [catch { set info_result [comphelix2 result ${np} ${D1} ${D2} ${P1} ${N1}]} ] {
puts "${info_result}"
puts "Faulty ${BugNumber} : approximation algorithm is broken"
set mistake 1
} elseif { [regexp {ErrorStatus} ${info_result}] } {
puts "${info_result}"
puts "Faulty ${BugNumber} : helix is broken"
set mistake 1
}
if { ${mistake} == 0 } {
set d 5
set x [expr $D1/2]
set y 0
set z 0
set dx 0
set dy 1
set dz 0
circle c $x $y $z $dx $dy $dz $d
mkedge e c
wire s2 e
renamevar result s1
set square 29963
set volume 74425.8
set nb_v_good 6
set nb_e_good 11
set nb_w_good 7
set nb_f_good 7
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 0
set nb_shape_good 33
CheckSweep
}
set 2dviewer 0