-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Reproduce the bug with the following command:
Motor = U8
gearbox_type = sspg
gear_ratio = 6.4
Terminal Command:
python actOpt.py U8 sspg 6.4
Then go and rebuild the CAD
Reason for the bug:
There is a condition on the Feature: CutExtrude5
= IIF ( ( "Ns" * "module" + 2 * "h_a" ) < ( "motor_output_hole_PCD" - "motor_output_hole_CSK_OD" ) , "suppressed" , "unsuppressed" )
Lets assume:
sun_gear_outermost_dia = ( "Ns" * "module" + 2 * "h_a" )
biggest_possible_sun_gear_dia = ( "motor_output_hole_PCD" - "motor_output_hole_CSK_OD" )
which means that the CutExtrude5 should be suppressed if
sun_gear_outermost_dia < biggest_possible_sun_gear_dia
but in this particular case: Ns=28, module=0.5mm, h_a=0.5mm, motor_output_hole_PCD=13mm, motor_output_hole_CSK_OD=8mm
sun_gear_outermost_dia == biggest_possible_sun_gear_dia
due to which the CutExtrude5 is "unsupressed" but there is no material for this feature to cut into.
Probable Solution:
- Make is a "less_than_equal_to_constraint" OR very small "delta" to modify the equation in such a way that the equality case is overlooked