problem with cut view = difference() in F5

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with cut view = difference() in F5

Peter Falke
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


cut iii.png (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

nophead
It seems to work fine on my Win7 laptop. Two half cubes one above the other, same from any angle or zoom. Openscad 2012.02.19

On 24 August 2012 19:20, Peter Falke <[hidden email]> wrote:
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

Giles Bathgate-2
In reply to this post by Peter Falke

Why not use projection(cut=true)

On Aug 24, 2012 7:20 PM, "Peter Falke" <[hidden email]> wrote:
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

nophead
Doesn't that make a 2D object?

On 24 August 2012 19:42, Giles Bathgate <[hidden email]> wrote:

Why not use projection(cut=true)

On Aug 24, 2012 7:20 PM, "Peter Falke" <[hidden email]> wrote:
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

Giles Bathgate-2

Yeah sorry I thought that's what he wanted.

Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

donbright
In reply to this post by Peter Falke
I cannot reproduce exactly the output you describe but I can reproduce some 'odd' looking behavior. I believe thee issue might be the gigantic 'cut' block being 'clipped' by the viewing code.

Minimal example:

difference(){
cube([10,10,10],center=true);
translate(-500*[1,0,0])cube(1000,true);
}


If you 'zoom out' you can see that the bug doesnt appear but if you 'zoom in' you can see it reappear.

Also, if you switch 'rendering mode' to 'throwntogether', you can see that the camera actually goes 'inside' the gigantic 'cutting' cube and you only see the 'inside' of the cut, with a magenta wall. I believe this may correspond to the times in OpenCSG Preview mode where you see it all weird.

To solve, reduce the size of the cutting cube.

difference(){
cube([10,10,10],center=true);
translate(-10*[1,0,0])cube(20,true);
}


But again, I cannot reproduce the exact behavior you describe, only a partially 'odd' looking issue.

-DB

On Fri, Aug 24, 2012 at 1:20 PM, Peter Falke <[hidden email]> wrote:
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

Reply | Threaded
Open this post in threaded view
|

Re: problem with cut view = difference() in F5

nophead
Might be graphics card dependent because I can't see anything wrong at all.

On 25 August 2012 00:51, Don Bright <[hidden email]> wrote:
I cannot reproduce exactly the output you describe but I can reproduce some 'odd' looking behavior. I believe thee issue might be the gigantic 'cut' block being 'clipped' by the viewing code.

Minimal example:

difference(){
cube([10,10,10],center=true);
translate(-500*[1,0,0])cube(1000,true);
}


If you 'zoom out' you can see that the bug doesnt appear but if you 'zoom in' you can see it reappear.

Also, if you switch 'rendering mode' to 'throwntogether', you can see that the camera actually goes 'inside' the gigantic 'cutting' cube and you only see the 'inside' of the cut, with a magenta wall. I believe this may correspond to the times in OpenCSG Preview mode where you see it all weird.

To solve, reduce the size of the cutting cube.

difference(){
cube([10,10,10],center=true);
translate(-10*[1,0,0])cube(20,true);
}


But again, I cannot reproduce the exact behavior you describe, only a partially 'odd' looking issue.

-DB

On Fri, Aug 24, 2012 at 1:20 PM, Peter Falke <[hidden email]> wrote:
Hi Guys,

I like to do use openscad a lot for virtual construction of things.
To check my designs I often look at a cut-view: I use the module Cut() as below.
Lately I´m having a lot of problems that I sometimes (always) see the wrong side of the cut. Very annoying.
When I turn the object around it jumps to its mirror view and I again see the wrong side.

I haven`t quiet figured out when it happens, but the scale(distance) of the display, the size of the object, and the size of the cube used to cut seems to play together.

I included some snapshots with different angles.

I use openscad 2012.04.01 on an acer aspire-one with Win7(Starter).

If I do a render with F6 everything works fine.

I hope I gave U enough details to recreate the problem.

As anyone seen this problem, too?

Greetings,

TakeItAndRun

Here a simple test program I used to illustrate the problem:

s=10;


difference(){

cube([s,s,s],center=true);

translate(-5*s*[1,0,0])cube(10*s,true);

}


translate([0,0,20])Cut()cube([s,s,s],center=true);


// cut view at y=0

module Cut(){

for(i=[0:$children-1])

difference(){

child(i);

translate(-500*[1,0,0])cube(1000,true);

}

}

Inline images 1Inline images 2



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566