OpenSCAD
December 09, 2012 11:33PM
new to openscad. does anyone know how you would see an object you place inside another object. say you have a 4" square cube with a 2" square cube inside it. all i can see is the outer, bigger cube.

tanks in advance
Re: OpenSCAD
December 10, 2012 02:20AM
Temporarily put a # in front of the outer object
Re: OpenSCAD
December 10, 2012 02:54AM
tried it on this with no change. putting it wrong?


difference() {
#cube (size = [2,6,20], center=true);
translate([0,0,0]) difference(){
cube(size=[1.5,5,17.5],center=true);
translate([0,5,0])rotate([12,0,0]){
cube(size=[2,10,30],center=true);
}
}
for(i=[0:9]) {
translate([-.9,-2,-9+1.8*i]) {
rotate([45,0,0]) cube([1.8,1,2.5]);
}
}

//translate([-25,-25,-7])cube([50,50,50]);
}
Re: OpenSCAD
December 10, 2012 05:09AM
Use '%' instead of '#', then it works like you want.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: OpenSCAD
December 10, 2012 05:43AM
rhmorrison Wrote:
-------------------------------------------------------
> Use '%' instead of '#', then it works like you
> want.


yes thank you. works the charm.

why is it that being able to see inner items in what i would call a ghost view not something built in? are those that know the software that good they can do it blind.
Re: OpenSCAD
December 10, 2012 06:00AM
so now knowing of those two characters i did a quick look for them and came up with this one for the #

[www.openscad.org]

greg can you look at my above entry and suggest where you would put the #. i tried several places and can not get it. is it just because they do not protrude?
Re: OpenSCAD
December 10, 2012 07:25AM
It would help if you specified exactly what you want to see.

Try the following code:
difference() {
	%cube (size = [2,6,20], center=true);

	translate([0,0,0])
		difference(){
			cube(size=[1.5,5,17.5],center=true);
			translate([0,5,0])
				rotate([12,0,0]){
					#cube(size=[2,10,30],center=true);
			}
		}

	for(i=[0:9]) {
		translate([-.9,-2,-9+1.8*i]) {
			rotate([45,0,0]) 
				#cube([1.8,1,2.5]);
		}
	}
}


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: OpenSCAD
December 10, 2012 08:24AM
hey bob yes your % on the first cube reference line, which is my outer box, hides it temporarily just like you said. it does this without placing # on the third and fourth cube reference lines.

this is what i get



whereas i was asking greg to help with the use of # to wind up with what is seen here

[www.openscad.org]

with this view i hope to physically be able to see what i am doing better to make a more intricate shape

Edited 1 time(s). Last edit at 12/10/2012 08:26AM by rthuey.
Re: OpenSCAD
December 11, 2012 03:28AM
Could it be that your OpenGL driver is not the newest version?




Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Attachments:
open | download - OpenGL.png (63.5 KB)
Re: OpenSCAD
December 11, 2012 12:31PM
i ran opengl extensions version and grabbed the latest driver for my card
Version:
306.97 WHQL
Release Date:
2012.10.10
Operating System:
Windows Vista 64-bit, Windows 7 64-bit, Windows 8 64-bit
Language:
English (U.S.)
File Size:
175 MB

no change to the open gl driver version which still says 5/06


so to my knowledge yes i have the latest.
Re: OpenSCAD
December 11, 2012 01:49PM
just installed openscad on my mac and i don't get what you are on it either. is it a view option perhaps that you have turned on that i do not?
Re: OpenSCAD
December 12, 2012 02:47AM



Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Attachments:
open | download - OpenSCAD_Options.jpg (71.5 KB)
Re: OpenSCAD
December 12, 2012 05:37AM
Sorry,but I was meaning % when I suggested #. # actually highlights the tree that follows rather than making it transparent. Another operator that is useful is * which makes things disappear alltogether. The wiki manual is quite concise and a good read.

[en.m.wikibooks.org]
Re: OpenSCAD
December 15, 2012 12:17PM
what are the odds? 3 machines, 2 win7 n 1 mac. 3 different downloads and installs. none will give the view you get
Sorry, only registered users may post in this forum.

Click here to login