discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Cut a solid? Or extrude 2D->3D ?

I
icewater
Wed, Nov 16, 2016 9:28 PM

I need to cut a piece off a cube diagonally in the Z dimension:

http://i.imgur.com/iqqDdvD.jpg

What's the best way to do this?

Thanks!

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I need to cut a piece off a cube diagonally in the Z dimension: http://i.imgur.com/iqqDdvD.jpg What's the best way to do this? Thanks! -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164.html Sent from the OpenSCAD mailing list archive at Nabble.com.
RP
Ronaldo Persiano
Wed, Nov 16, 2016 10:01 PM

You may do it by difference or intersection with another bigger cube.Or by
linear_extrude of a polygon.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#Linear_Extrude

2016-11-16 19:28 GMT-02:00 icewater a.opsc@icewater.org:

I need to cut a piece off a cube diagonally in the Z dimension:

http://i.imgur.com/iqqDdvD.jpg

What's the best way to do this?

Thanks!

--
View this message in context: http://forum.openscad.org/Cut-
a-solid-Or-extrude-2D-3D-tp19164.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

You may do it by difference or intersection with another bigger cube.Or by linear_extrude of a polygon. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/CSG_Modelling https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#Linear_Extrude 2016-11-16 19:28 GMT-02:00 icewater <a.opsc@icewater.org>: > I need to cut a piece off a cube diagonally in the Z dimension: > > http://i.imgur.com/iqqDdvD.jpg > > What's the best way to do this? > > Thanks! > > > > -- > View this message in context: http://forum.openscad.org/Cut- > a-solid-Or-extrude-2D-3D-tp19164.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
RP
Ronaldo Persiano
Wed, Nov 16, 2016 10:03 PM

Linear_extrude is easier because you don't have to calculate angles.

Linear_extrude is easier because you don't have to calculate angles.
P
Parkinbot
Wed, Nov 16, 2016 10:07 PM

Start with this:

p = [[0, 0], [ 2, 0], [5, 2], [5, 4], [0, 4]];
linear_extrude(height = 3)  polygon(points = p);

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19171.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Start with this: > p = [[0, 0], [ 2, 0], [5, 2], [5, 4], [0, 4]]; > linear_extrude(height = 3) polygon(points = p); -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19171.html Sent from the OpenSCAD mailing list archive at Nabble.com.
JD
Jerry Davis
Sat, Nov 19, 2016 4:14 PM

use this:    http://daid.eu/~daid/3d/

it is documented elsewhere on this forum.

I LOVE THIS. I use now for a whole lot of things I am doing.
I would add only 1 thing to it -- some way to insert a point into the
middle easily, but I can live with it as it is.

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Openscad developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

On Wed, Nov 16, 2016 at 3:07 PM, Parkinbot rudolf@parkinbot.com wrote:

Start with this:

p = [[0, 0], [ 2, 0], [5, 2], [5, 4], [0, 4]];
linear_extrude(height = 3)  polygon(points = p);

--
View this message in context: http://forum.openscad.org/Cut-
a-solid-Or-extrude-2D-3D-tp19164p19171.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

use this: http://daid.eu/~daid/3d/ it is documented elsewhere on this forum. I LOVE THIS. I use now for a whole lot of things I am doing. I would add only 1 thing to it -- some way to insert a point into the middle easily, but I can live with it as it is. Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Openscad developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov On Wed, Nov 16, 2016 at 3:07 PM, Parkinbot <rudolf@parkinbot.com> wrote: > Start with this: > > > > p = [[0, 0], [ 2, 0], [5, 2], [5, 4], [0, 4]]; > > linear_extrude(height = 3) polygon(points = p); > > > > > > -- > View this message in context: http://forum.openscad.org/Cut- > a-solid-Or-extrude-2D-3D-tp19164p19171.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
A
adrian
Mon, Nov 21, 2016 2:15 PM

I'm sorry, but though the concept sounds good, the implementation doesn't
work.  Very disappointed that it can't take in the sample:

polygon([[0,0], [0,1], [1,1], [1,0]]);

and work.  At first I got nothing and then I got a square that was at the
origin.  SMH

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19286.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I'm sorry, but though the concept sounds good, the implementation doesn't work. Very disappointed that it can't take in the sample: polygon([[0,0], [0,1], [1,1], [1,0]]); and work. At first I got nothing and then I got a square that was at the origin. SMH -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19286.html Sent from the OpenSCAD mailing list archive at Nabble.com.
R
Ronaldo
Mon, Nov 21, 2016 2:39 PM

This polygon is a square! Parkinbot's proposal is exactly what you have drawn
in the graph paper.

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19287.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

This polygon is a square! Parkinbot's proposal is exactly what you have drawn in the graph paper. -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19287.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Mon, Nov 21, 2016 5:37 PM

The square that I saw was centred around the origin.  That isn't what I
specified.  Also the controls didn't seem to do anything except hide and
show other controls.

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19293.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

The square that I saw was centred around the origin. That isn't what I specified. Also the controls didn't seem to do anything except hide and show other controls. -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19293.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Mon, Nov 21, 2016 5:40 PM

Here is an example using different points that do not resemble a square:

http://forum.openscad.org/file/n19294/polygon-editor-wrong.png

--
View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19294.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Here is an example using different points that do not resemble a square: <http://forum.openscad.org/file/n19294/polygon-editor-wrong.png> -- View this message in context: http://forum.openscad.org/Cut-a-solid-Or-extrude-2D-3D-tp19164p19294.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Mon, Nov 21, 2016 7:22 PM

On 11/21/2016 06:40 PM, adrian wrote:

Here is an example using different points that do not
resemble a square:

Are you blocking some scripts maybe? This example works fine
for me (in both Firefox and Chrome).

http://i.imgur.com/G6hMcFt.png

ciao,
Torsten.

On 11/21/2016 06:40 PM, adrian wrote: > Here is an example using different points that do not > resemble a square: > Are you blocking some scripts maybe? This example works fine for me (in both Firefox and Chrome). http://i.imgur.com/G6hMcFt.png ciao, Torsten.