diff --git a/brand/ribbon-study/field/generate.py b/brand/ribbon-study/field/generate.py index 9386433..f179997 100644 --- a/brand/ribbon-study/field/generate.py +++ b/brand/ribbon-study/field/generate.py @@ -72,9 +72,9 @@ def face(d, x, y, z, palette): # still leave a legible opening between neighbouring lobes. half_span = min(np.pi/2, np.pi/d.faces) depth = (1-np.cos(half_span))*d.width - taper = coverage(delta*min(d.faces,4)/2, d.continuity) - folded = radius*(np.cos(delta)+np.sin(angle)*1.45*z*np.sin(delta)) - score = np.where(taper > 0, folded-1+depth*taper, -np.inf) + local = np.clip(delta/max(d.continuity,1e-8), -np.pi, np.pi) + folded = radius*(np.cos(local)+np.sin(angle)*1.45*z*np.sin(local)) + score = folded-1+depth active = score > best index = np.where(active,sector,index) along = np.where(active,np.sin(delta),along) diff --git a/brand/ribbon-study/field/study.png b/brand/ribbon-study/field/study.png index 6b1314c..3f67a03 100644 Binary files a/brand/ribbon-study/field/study.png and b/brand/ribbon-study/field/study.png differ