performance tests / cube with rounded corners (openSCAD)

performance tests / cube with rounded corners (openSCAD)

Description

I Did Some Performance Tests On Different Functions, Which All Produce A Box With Rounded Corners. You Can Find Them In The Scad-File. Here Are My Results: <Pre><Code> Preview Render Stl-Size V1 1 Seconds 0 Seconds 5.911.647 V2 0 Seconds 215 Seconds 3.773.709 V3 1 Seconds 0 Seconds 2.053.339 V3A 121 Seconds 0 Seconds 2.053.339 Rb 0 Seconds 171 Seconds 3.648.521 Rc 126 Seconds 0 Seconds 2.057.417 </Code></Pre> V1 Looks Good In Terms Of Speed ... But Leaves A 5Mb File. V3 Has The Same Speed And The File Size Is The Smallest. All Other Versions Have Bad Run Times Either During Preview Or Later When Rendering. Very Interesting Is The Very Significant Runtime Difference Between V3 And V3A. So...The Winner Is This One: <Pre><Code>Module Boxmitabgerundetenecken3(X, Y, Z, R=1) { Hull() { Translate([ R, R, R]) Sphere(R=R); Translate([X-R, R, R]) Sphere(R=R); Translate([ R, Y-R, R]) Sphere(R=R); Translate([X-R, Y-R, R]) Sphere(R=R); Translate([ R, R, Z-R]) Sphere(R=R); Translate([X-R, R, Z-R]) Sphere(R=R); Translate([ R, Y-R, Z-R]) Sphere(R=R); Translate([X-R, Y-R, Z-R]) Sphere(R=R); } } </Code></Pre>

Statistics

Likes

2

Downloads

0

Category

Other