Files
OCCT/tests/helix/standard/F5
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

67 lines
1.2 KiB
Plaintext

puts "============"
puts "OCCGH648"
puts "============"
puts ""
#######################################################################
# spiral helix: spiral2, D1 = 100, D2 = 20, 1 part, pitche = 10; 10; 10, number of turns = 2; 6; 2
#######################################################################
set BugNumber OCCGH648
set np 3
set D1 100
set D2 20
set P1 10
set P2 10
set P3 10
set N1 2
set N2 6
set N3 2
set mistake 0
set result ""
if [catch { set info_result [spiral2 result ${np} ${D1} ${D2} ${P1} ${P2} ${P3} ${N1} ${N2} ${N3}]} ] {
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 3
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 35646.7
set volume 53369.2
set nb_v_good 11
set nb_e_good 21
set nb_w_good 12
set nb_f_good 12
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 0
set nb_shape_good 58
CheckSweep
}
set 2dviewer 0