discuss@lists.openscad.org

OpenSCAD general discussion

View all threads

help with a cross-sectional view

GH
gene heskett
Sun, Jan 2, 2022 3:25 PM

Greetings all;

I have seen demo drawings that were of a round object, but with a pie slice
missing, so one could look directly at an end view that is otherwise hidden
inside a round ring.

But I've never used it till now.

How does one get that view of an object?

Thank you.

Cheers, Gene Heskett.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

Greetings all; I have seen demo drawings that were of a round object, but with a pie slice missing, so one could look directly at an end view that is otherwise hidden inside a round ring. But I've never used it till now. How does one get that view of an object? Thank you. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> 1
J
jon
Sun, Jan 2, 2022 10:08 PM

I sometimes add code to subtract some part of the model in order to peer
inside, temporarily; I put a "*" in front of the code to disable it
after I'm finished.  Or sometimes I put a "#" in front of some code that
I want to be mostly-transparent.

Hope this helps

Jon

On 1/2/2022 10:25 AM, gene heskett wrote:

Greetings all;

I have seen demo drawings that were of a round object, but with a pie slice
missing, so one could look directly at an end view that is otherwise hidden
inside a round ring.

But I've never used it till now.

How does one get that view of an object?

Thank you.

Cheers, Gene Heskett.

I sometimes add code to subtract some part of the model in order to peer inside, temporarily; I put a "*" in front of the code to disable it after I'm finished.  Or sometimes I put a "#" in front of some code that I want to be mostly-transparent. Hope this helps Jon On 1/2/2022 10:25 AM, gene heskett wrote: > Greetings all; > > I have seen demo drawings that were of a round object, but with a pie slice > missing, so one could look directly at an end view that is otherwise hidden > inside a round ring. > > But I've never used it till now. > > How does one get that view of an object? > > Thank you. > > Cheers, Gene Heskett.
RW
Raymond West
Sun, Jan 2, 2022 10:42 PM

Like this?

module shape(){   // any shape
difference(){
 cylinder(100,d=50);
 translate([0,0,5])
 cylinder(85,d=47);
 }
 }

 //shape();

 module wedge(){  //create this wedge however you like
   translate([0,0,-10])
     linear_extrude(200,convexity=10)
     polygon(points=[[0,0],[100,35],[100,-35]]);
 }

//  wedge();

 $fn= 80;
 difference(){
     shape();
     wedge();
 }

On 02/01/2022 15:25, gene heskett wrote:

Greetings all;

I have seen demo drawings that were of a round object, but with a pie slice
missing, so one could look directly at an end view that is otherwise hidden
inside a round ring.

But I've never used it till now.

How does one get that view of an object?

Thank you.

Cheers, Gene Heskett.

Like this? module shape(){   // any shape difference(){  cylinder(100,d=50);  translate([0,0,5])  cylinder(85,d=47);  }  }  //shape();  module wedge(){  //create this wedge however you like    translate([0,0,-10])      linear_extrude(200,convexity=10)      polygon(points=[[0,0],[100,35],[100,-35]]);  } //  wedge();  $fn= 80;  difference(){      shape();      wedge();  } On 02/01/2022 15:25, gene heskett wrote: > Greetings all; > > I have seen demo drawings that were of a round object, but with a pie slice > missing, so one could look directly at an end view that is otherwise hidden > inside a round ring. > > But I've never used it till now. > > How does one get that view of an object? > > Thank you. > > Cheers, Gene Heskett.