discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Confirm box default

H
Hendrik
Mon, Mar 7, 2022 12:34 PM
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} -->Hi

I just would like to make sure about the box position.

I understand if cube(center=true) then the middle of the cube is at [0,0,0].

Now on default cube.

Say cube([10,5,20])

Now the one corner I guess the left bottom is at [0,0,0]. Is that the middle of the left bottom corner? Or the front.

So will this cube left bottom that has a depth of 5 be say from

front left corner x=0,y=-2.5,z=0]

middle left bottom corner [x=0,y=0,z=0]

back left corner into the screen [x=0,y=2.5, z=0]

Thanks

Sent from Mail for Windows

BC
Bob Carter
Mon, Mar 7, 2022 1:32 PM

Default cube([10,5,20]) gives

Front lower left = x0,y0,z0

Front lower right = x10,y,0,z0

Back upper right = x,10,y,5,z20

On 7 Mar 2022, at 12:34, Hendrik blindguydiy@gmail.com wrote:

cube([10,5,20])

Default cube([10,5,20]) gives Front lower left = x0,y0,z0 Front lower right = x10,y,0,z0 Back upper right = x,10,y,5,z20 > On 7 Mar 2022, at 12:34, Hendrik <blindguydiy@gmail.com> wrote: > > cube([10,5,20])
H
Hendrik
Mon, Mar 7, 2022 1:36 PM
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} -->Thanks

Sent from Mail for Windows

Thanks

From: Bob Carter
Sent: Monday, 07 March 2022 15:32
To: OpenSCAD general discussion
Subject: [OpenSCAD] Re: Confirm box default

Default cube([10,5,20]) gives

Front lower left = x0,y0,z0

Front lower right = x10,y,0,z0

Back upper right = x,10,y,5,z20

On 7 Mar 2022, at 12:34, Hendrik <blindguydiy@gmail.com> wrote:

cube([10,5,20])