Fix for #1: Countersink Head angle vs nominal size #12
@ -788,8 +788,14 @@ def Create_CounterSink_Head(HOLE_DIA, HEAD_DIA, SHANK_DIA, HEIGHT, RAD1, DIV_COU
|
||||
faces = []
|
||||
Row = 0
|
||||
|
||||
# HEAD_RADIUS = (HEIGHT/tan(radians(60))) + SHANK_RADIUS
|
||||
HEIGHT = tan(radians(60)) * (HEAD_RADIUS - SHANK_RADIUS)
|
||||
# As per ISO 10642 the angle of the head is not constant with nominal diameter.
|
||||
# Between 20 and 22mm the head angle changes.
|
||||
# Note, this is not suitable for cheating a rivet - due to a different angle, see ISO 1051.
|
||||
# The input arg of HEIGHT is not passed from the GUI, it must be created here:
|
||||
if SHANK_DIA < 21:
|
||||
|
||||
HEIGHT = tan(radians(45)) * (HEAD_RADIUS - SHANK_RADIUS) + RAD1
|
||||
else:
|
||||
HEIGHT = tan(radians(60)) * (HEAD_RADIUS - SHANK_RADIUS) + RAD1
|
||||
|
||||
FaceStart = len(verts)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user
I certainly applaud your research and initiative, but my concern is “the best thing about standards is there are so many to choose from.” Would there be a reason this couldn’t be an additional parameter in the GUI? I would love if the default value changed according to the shank diameter, but based on my own previous experimentation, I expect this may be a taller order. I expect other standards bodies will declare other counter sink angles in their own ecosystems parameterized off other cutoff values.
Yep, I hear what you are saying....
Indeed that wold be best. Having had a look this it will touch some of the same lines already touched in #10 & #11. To do a complete job the new angle should make it into the presets too.
How would I do it:
3a) Make new property appear in the GUI draw() function adding "col.prop(self, 'bf_CounterSink_Head_Angle')"
I understand GIT can manage this, but can I....
Less scary to wait until those other changes are on main. Then I can "rebase main" to avoid conflicts.
@linux_dr Did yo find this documentation page?: https://docs.blender.org/api/current/bpy.props.html