discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Increasing speed in which I can rotate around surface()

T
The3rdIcon
Wed, Nov 16, 2016 1:11 AM

I'm trying to figure what is causing my computer to grind openscad down into
a very slow program. . I've tried lowering the convexity since it is only
slow in the preview. I've already tried lower the image down to 150 by 150
px but this hasn't worked either. I don't want to go any lower because I'll
loose the image quality which I have already sacrificed plenty. I've thought
of going even lower at least until I get it into place and then putting the
larger image back but I don't have enough exp to know if this would help. My
code is below.

color("green", a= 1)difference(){
translate([0,0,d])surface(file ="OriginalTurtleOutline-small.png",
center = true, convexity = 10, invert = true);
translate([0,0,e])difference(){
sphere(a);
resize([0,0,f])sphere(b);
translate([0,0,-a1.5])cube(a3,center = true);
}
translate([0,0,-188])cube(400, center = true);
}

I'm also open to other ideas on how I can use bitmaps/images better.

Any and all help would be greatly appreciated. Thanks in advance to anyone
who offers any help.

--
View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I'm trying to figure what is causing my computer to grind openscad down into a very slow program. . I've tried lowering the convexity since it is only slow in the preview. I've already tried lower the image down to 150 by 150 px but this hasn't worked either. I don't want to go any lower because I'll loose the image quality which I have already sacrificed plenty. I've thought of going even lower at least until I get it into place and then putting the larger image back but I don't have enough exp to know if this would help. My code is below. color("green", a= 1)difference(){ translate([0,0,d])surface(file ="OriginalTurtleOutline-small.png", center = true, convexity = 10, invert = true); translate([0,0,e])difference(){ sphere(a); resize([0,0,f])sphere(b); translate([0,0,-a*1.5])cube(a*3,center = true); } translate([0,0,-188])cube(400, center = true); } I'm also open to other ideas on how I can use bitmaps/images better. Any and all help would be greatly appreciated. Thanks in advance to anyone who offers any help. -- View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Wed, Nov 16, 2016 2:18 AM

The3rdIcon wrote

color("green", a= 1)difference(){
translate([0,0,d])surface(file ="OriginalTurtleOutline-small.png",
center = true, convexity = 10, invert = true);
translate([0,0,e])difference(){
sphere(a);
resize([0,0,f])sphere(b);
translate([0,0,-a1.5])cube(a3,center = true);
}
translate([0,0,-188])cube(400, center = true);
}

What are the variables d,e,a,f,b?


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130p19135.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The3rdIcon wrote > color("green", a= 1)difference(){ > translate([0,0,d])surface(file ="OriginalTurtleOutline-small.png", > center = true, convexity = 10, invert = true); > translate([0,0,e])difference(){ > sphere(a); > resize([0,0,f])sphere(b); > translate([0,0,-a*1.5])cube(a*3,center = true); > } > translate([0,0,-188])cube(400, center = true); > } What are the variables d,e,a,f,b? ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130p19135.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Wed, Nov 16, 2016 2:19 AM

...and how much memory do you have?


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130p19136.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

...and how much memory do you have? ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Increasing-speed-in-which-I-can-rotate-around-surface-tp19130p19136.html Sent from the OpenSCAD mailing list archive at Nabble.com.