{"action":"closed","issue":{"url":"https://api.github.com/repos/Ultimaker/CuraEngine/issues/558","repository_url":"https://api.github.com/repos/Ultimaker/CuraEngine","labels_url":"https://api.github.com/repos/Ultimaker/CuraEngine/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/Ultimaker/CuraEngine/issues/558/comments","events_url":"https://api.github.com/repos/Ultimaker/CuraEngine/issues/558/events","html_url":"https://github.com/Ultimaker/CuraEngine/issues/558","id":242386635,"number":558,"title":"Feature request: Layer preview override thickness - tubes too thicc","user":{"login":"AlucardF0X","id":10225169,"avatar_url":"https://avatars4.githubusercontent.com/u/10225169?v=4","gravatar_id":"","url":"https://api.github.com/users/AlucardF0X","html_url":"https://github.com/AlucardF0X","followers_url":"https://api.github.com/users/AlucardF0X/followers","following_url":"https://api.github.com/users/AlucardF0X/following{/other_user}","gists_url":"https://api.github.com/users/AlucardF0X/gists{/gist_id}","starred_url":"https://api.github.com/users/AlucardF0X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlucardF0X/subscriptions","organizations_url":"https://api.github.com/users/AlucardF0X/orgs","repos_url":"https://api.github.com/users/AlucardF0X/repos","events_url":"https://api.github.com/users/AlucardF0X/events{/privacy}","received_events_url":"https://api.github.com/users/AlucardF0X/received_events","type":"User","site_admin":false},"labels":[{"id":30576397,"url":"https://api.github.com/repos/Ultimaker/CuraEngine/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-07-12T13:48:53Z","updated_at":"2017-07-17T15:28:51Z","closed_at":"2017-07-17T15:28:51Z","body":"My 3D Printer is running a 5:1 geared extruder.\r\nTo compensate for that I need to do 355% flow (remember, drive gears are larger than a dot).\r\n\r\nBut this makes Cura output some gnarly thick lines that make it hard to discern what's being printed. \r\n\r\nIn Cura 1 / classic layer preview - this \"bug\" made the top layer a giant and I mean GIANT rectangle, absolutely no layer visible. \r\n\r\n**SPECULATION**\r\nI tried to see if there's an easy fix for this, but it seems Cura outputs the gcode paths directly with the thickness combined in 'z' shapes like the classic layer preview, instead of outputting clean lines that accurately represent the gcode path. These Z's are then turned to rectangles in classic, and tubes in the new layer preview. (Tubes look awesome)\r\nThis means the flow is never directly referenced anywhere. \r\n**END SPECULATION**\r\n\r\nThere's a hack I can do to temporarily fix this for time being which I'll document as follows:\r\nAt file \"\\Program Files\\Cura 2.6.1\\plugins\\LayerView\\layers3d.shader\"\r\nAt line 133 (Notepad++)\r\nThere is this line:\r\n`             size_x = v_line_dim[0].x / 2 + 0.01;  // radius, and make it nicely overlapping`\r\nI can fix my 'tubes too thicc' problem by modifying the line to this:\r\n`            size_x = v_line_dim[0].x / 7.1 + 0.01;  // radius, and make it nicely overlapping`\r\n\r\nWhat I've done is changed the output tube thickness. \r\nBy default it takes the rectangle width, divides it by 2 to get a tube radius.\r\nI've additionally added a \"divide by 3.55\" which is my extrusion multiplier, resulting in div by 7.1\r\nThis fixes my problem and sets \"355 flow\" as the normal \"100\".\r\n\r\nI think a simple fix as so: In layer preview view (menu), add a 'default flow: 100%', which will be then uploaded to shader code as preference, and it will multiply the \"2\" in the code line I've shown. \r\nIn my case I'd simply need to make it 355%, and it'll miltiply the 2 by 3.55 and fix my issue not-hackily. \r\n\r\nI've added pictures demonstrating the problem. The one that looks wrong is with the '2'. The one that looks fine is with the '7.1' (surround audio joke)\r\n![bugged - /2](https://user-images.githubusercontent.com/10225169/28120851-2a15aae6-6711-11e7-8c1e-ce5985533606.JPG)\r\n![fixed - /7.1](https://user-images.githubusercontent.com/10225169/28120855-2cf3473c-6711-11e7-951a-63ed9a62cdee.jpg)\r\n\r\nTo reproduce the problem, set flow to 350% or more, then show layer preview.\r\nOr try this in Cura 1, or use Cura 2 and activate compatibility layer preview.\r\nThe results may shock you!! "}}
{"actor":{"display_login":"nallath"}}