discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

minor edit of am existing stl?

K
Ken
Sat, Aug 29, 2026 11:35 PM

I need flatten the base of an stl file for a friend- if it were in openscad it would be really simple, just difference it with a cube.- but alas, it's not

I have done google searches and there are a plethora of programs that claim to be able to do this, so I thought I would seek opinions on which is the simplest that can do this. It can be either linux or windows, but preferably linux. I'm running linux mint & windows 10 (the W10 box is not allowed off the reservation).

--
Thanks, Ken
bats059@gmail.com
https://vk7krj.com
https://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!

I need flatten the base of an stl file for a friend- if it were in openscad it would be really simple, just difference it with a cube.- but alas, it's not I have done google searches and there are a plethora of programs that claim to be able to do this, so I thought I would seek opinions on which is the simplest that can do this. It can be either linux or windows, but preferably linux. I'm running linux mint & windows 10 (the W10 box is not allowed off the reservation). -- Thanks, Ken bats059@gmail.com https://vk7krj.com https://vk7krj.com/running.html ---------------------------------------- A baby can be defined as an ego with a noise at one end and a smell at the other. Your job as parents is to teach them to control all three. My job as a grandad is to tell you how you are doing it all wrong!
TA
Todd Allen
Sun, Aug 30, 2026 12:02 AM

You can probably do it in OpenSCAD.  Try:

difference() {
import("my_friends.stl");
cube(100);
}

On Sat, Aug 29, 2026 at 6:36 PM Ken via Discuss discuss@lists.openscad.org
wrote:

I need flatten the base of an stl file for a friend- if it were in
openscad it would be really simple, just difference it with a cube.- but
alas, it's not

I have done google searches and there are a plethora of programs that
claim to be able to do this, so I thought I would seek opinions on which is
the simplest that can do this. It can be either linux or windows, but
preferably linux. I'm running linux mint & windows 10 (the W10 box is not
allowed off the reservation).

--
Thanks, Kenbats059@gmail.comhttps://vk7krj.comhttps://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

You can probably do it in OpenSCAD. Try: difference() { import("my_friends.stl"); cube(100); } On Sat, Aug 29, 2026 at 6:36 PM Ken via Discuss <discuss@lists.openscad.org> wrote: > I need flatten the base of an stl file for a friend- if it were in > openscad it would be really simple, just difference it with a cube.- but > alas, it's not > > I have done google searches and there are a plethora of programs that > claim to be able to do this, so I thought I would seek opinions on which is > the simplest that can do this. It can be either linux or windows, but > preferably linux. I'm running linux mint & windows 10 (the W10 box is not > allowed off the reservation). > > -- > Thanks, Kenbats059@gmail.comhttps://vk7krj.comhttps://vk7krj.com/running.html > ---------------------------------------- > A baby can be defined as an ego with a noise at one end and a smell at the other. > Your job as parents is to teach them to control all three. > My job as a grandad is to tell you how you are doing it all wrong! > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
K
Ken
Sun, Aug 30, 2026 1:01 AM

Thanks Todd- that worked a treat. And it will also come in very useful in the future.

On 30/8/26 10:02, Todd Allen wrote:

difference() {
    import("my_friends.stl");
    cube(100);

--
Cheers, Ken
bats059@gmail.com
https://vk7krj.com
https://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!

Thanks Todd- that worked a treat. And it will also come in very useful in the future. On 30/8/26 10:02, Todd Allen wrote: > difference() { >     import("my_friends.stl"); >     cube(100); -- Cheers, Ken bats059@gmail.com https://vk7krj.com https://vk7krj.com/running.html ---------------------------------------- A baby can be defined as an ego with a noise at one end and a smell at the other. Your job as parents is to teach them to control all three. My job as a grandad is to tell you how you are doing it all wrong!
JB
Jon Bondy
Sun, Aug 30, 2026 1:11 AM

You can also do it in any modern Slicer.  Import the model, use the
horizontal cut, then export as an STL.

On 8/29/2026 7:35 PM, Ken via Discuss wrote:

I need flatten the base of an stl file for a friend- if it were in
openscad it would be really simple, just difference it with a cube.-
but alas, it's not

I have done google searches and there are a plethora of programs that
claim to be able to do this, so I thought I would seek opinions on
which is the simplest that can do this. It can be either linux or
windows, but preferably linux. I'm running linux mint & windows 10
(the W10 box is not allowed off the reservation).

Thanks, Ken
bats059@gmail.com
https://vk7krj.com
https://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

You can also do it in any modern Slicer.  Import the model, use the horizontal cut, then export as an STL. On 8/29/2026 7:35 PM, Ken via Discuss wrote: > I need flatten the base of an stl file for a friend- if it were in > openscad it would be really simple, just difference it with a cube.- > but alas, it's not > > I have done google searches and there are a plethora of programs that > claim to be able to do this, so I thought I would seek opinions on > which is the simplest that can do this. It can be either linux or > windows, but preferably linux. I'm running linux mint & windows 10 > (the W10 box is not allowed off the reservation). > -- > Thanks, Ken > bats059@gmail.com > https://vk7krj.com > https://vk7krj.com/running.html > ---------------------------------------- > A baby can be defined as an ego with a noise at one end and a smell at the other. > Your job as parents is to teach them to control all three. > My job as a grandad is to tell you how you are doing it all wrong! > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- This email has been checked for viruses by AVG antivirus software. www.avg.com
FH
Father Horton
Sun, Aug 30, 2026 1:37 AM

Or meshmixer, but that's no longer officially supported.

On Sat, Aug 29, 2026 at 8:11 PM Jon Bondy via Discuss <
discuss@lists.openscad.org> wrote:

You can also do it in any modern Slicer.  Import the model, use the
horizontal cut, then export as an STL.

On 8/29/2026 7:35 PM, Ken via Discuss wrote:

I need flatten the base of an stl file for a friend- if it were in
openscad it would be really simple, just difference it with a cube.- but
alas, it's not

I have done google searches and there are a plethora of programs that
claim to be able to do this, so I thought I would seek opinions on which is
the simplest that can do this. It can be either linux or windows, but
preferably linux. I'm running linux mint & windows 10 (the W10 box is not
allowed off the reservation).

--
Thanks, Kenbats059@gmail.comhttps://vk7krj.com https://urldefense.proofpoint.com/v2/url?u=https-3A__vk7krj.com&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=vUm9V6-tDkcsAkj-M-CJm0v9FsVgSrvXJ_sMJaHVIOrBe_dmQ0uaL85nspjXv23m&s=362TvkzCUmjWOwDT1it7tnk5XBf7-wFcJXpXP54WnJQ&e=https://vk7krj.com/running.html https://urldefense.proofpoint.com/v2/url?u=https-3A__vk7krj.com_running.html&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=vUm9V6-tDkcsAkj-M-CJm0v9FsVgSrvXJ_sMJaHVIOrBe_dmQ0uaL85nspjXv23m&s=i8enJFaJ8vCNXdX7w0VkfzsWNIJdgomBlEInc6GrFfU&e=

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#m_8235156943211792022_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Or meshmixer, but that's no longer officially supported. On Sat, Aug 29, 2026 at 8:11 PM Jon Bondy via Discuss < discuss@lists.openscad.org> wrote: > You can also do it in any modern Slicer. Import the model, use the > horizontal cut, then export as an STL. > > > On 8/29/2026 7:35 PM, Ken via Discuss wrote: > > I need flatten the base of an stl file for a friend- if it were in > openscad it would be really simple, just difference it with a cube.- but > alas, it's not > > I have done google searches and there are a plethora of programs that > claim to be able to do this, so I thought I would seek opinions on which is > the simplest that can do this. It can be either linux or windows, but > preferably linux. I'm running linux mint & windows 10 (the W10 box is not > allowed off the reservation). > > -- > Thanks, Kenbats059@gmail.comhttps://vk7krj.com <https://urldefense.proofpoint.com/v2/url?u=https-3A__vk7krj.com&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=vUm9V6-tDkcsAkj-M-CJm0v9FsVgSrvXJ_sMJaHVIOrBe_dmQ0uaL85nspjXv23m&s=362TvkzCUmjWOwDT1it7tnk5XBf7-wFcJXpXP54WnJQ&e=>https://vk7krj.com/running.html <https://urldefense.proofpoint.com/v2/url?u=https-3A__vk7krj.com_running.html&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AsrE-c7ZR7B2Kyr3qgfvvppkCEBVsNmwEMndcrRSuOI&m=vUm9V6-tDkcsAkj-M-CJm0v9FsVgSrvXJ_sMJaHVIOrBe_dmQ0uaL85nspjXv23m&s=i8enJFaJ8vCNXdX7w0VkfzsWNIJdgomBlEInc6GrFfU&e=> > ---------------------------------------- > A baby can be defined as an ego with a noise at one end and a smell at the other. > Your job as parents is to teach them to control all three. > My job as a grandad is to tell you how you are doing it all wrong! > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free.www.avg.com > <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > <#m_8235156943211792022_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jordan Brown
Sun, Aug 30, 2026 4:58 AM

One caveat on importing STLs, at least historically with CGAL, is that many STLs in the wild are not up to OpenSCAD’s picky standards, and the render fails. Maybe Manifold has made that better. Net, do a simple experiment (e.g. union with a cube) with the particular STL before you spend significant effort designing the edit.

One caveat on importing STLs, at least historically with CGAL, is that many STLs in the wild are not up to OpenSCAD’s picky standards, and the render fails. Maybe Manifold has made that better. Net, do a simple experiment (e.g. union with a cube) with the particular STL before you spend significant effort designing the edit.
K
Ken
Sun, Aug 30, 2026 6:22 AM

Thanks Jordan- these are produced by (I think..) fusion360, I've made simple changes of two this afternoon and so far haven't had any trouble.

But your caveat is appreciated.

On 30/8/26 14:58, Jordan Brown via Discuss wrote:

One caveat on importing STLs, at least historically with CGAL, is that many STLs in the wild are not up to OpenSCAD’s picky standards, and the render fails. Maybe Manifold has made that better. Net, do a simple experiment (e.g. union with a cube) with the particular STL before you spend significant effort designing the edit.


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

--
Cheers, Ken
bats059@gmail.com
https://vk7krj.com
https://vk7krj.com/running.html

A baby can be defined as an ego with a noise at one end and a smell at the other.
Your job as parents is to teach them to control all three.
My job as a grandad is to tell you how you are doing it all wrong!

Thanks Jordan- these are produced by (I think..) fusion360, I've made simple changes of two this afternoon and so far haven't had any trouble. But your caveat is appreciated. On 30/8/26 14:58, Jordan Brown via Discuss wrote: > One caveat on importing STLs, at least historically with CGAL, is that many STLs in the wild are not up to OpenSCAD’s picky standards, and the render fails. Maybe Manifold has made that better. Net, do a simple experiment (e.g. union with a cube) with the particular STL before you spend significant effort designing the edit. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org -- Cheers, Ken bats059@gmail.com https://vk7krj.com https://vk7krj.com/running.html ---------------------------------------- A baby can be defined as an ego with a noise at one end and a smell at the other. Your job as parents is to teach them to control all three. My job as a grandad is to tell you how you are doing it all wrong!
RW
Rogier Wolff
Sun, Aug 30, 2026 9:41 AM

On Sat, Aug 29, 2026 at 09:58:57PM -0700, Jordan Brown via Discuss wrote:

One caveat on importing STLs, at least historically with CGAL, is
that many STLs in the wild are not up to OpenSCAD’s picky
standards, and the render fails. Maybe Manifold has made that
better. Net, do a simple experiment (e.g. union with a cube) with
the particular STL before you spend significant effort designing the
edit.

Yeah, the consensus was here that "STLs from the internet" are
"broken" and that openscad wouldn't open broken STLs. At one point in
time I even had an STL generated by openscad that was "bad".

But diving in I found that the "bad" STLs might have a few "corner
cases" but nothing that was actually forbidden.

With other programs like slicers being able to slice them just fine,
and newer openscad with manifold working just fine with them I've come
to the conclusion that the bug simplie lies with CGAL. It has the
stuckup attitude that everything it can't handle must be bad instead
of thinking there might be a bug somwhere.

So again: Advice is to move to manifold and suddenly there are a lot
less "bad STLs" in the world around us.

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
** Verl. Spiegelmakerstraat 37 2645 LZ  Delfgauw, The Netherlands.
** KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a** is going up.  -- Chris Hadfield about flying up the space shuttle.
**  'a' for accelleration.

On Sat, Aug 29, 2026 at 09:58:57PM -0700, Jordan Brown via Discuss wrote: > One caveat on importing STLs, at least historically with CGAL, is > that many STLs in the wild are not up to OpenSCAD’s picky > standards, and the render fails. Maybe Manifold has made that > better. Net, do a simple experiment (e.g. union with a cube) with > the particular STL before you spend significant effort designing the > edit. Yeah, the consensus was here that "STLs from the internet" are "broken" and that openscad wouldn't open broken STLs. At one point in time I even had an STL generated by openscad that was "bad". But diving in I found that the "bad" STLs might have a few "corner cases" but nothing that was actually forbidden. With other programs like slicers being able to slice them just fine, and newer openscad with manifold working just fine with them I've come to the conclusion that the bug simplie lies with CGAL. It has the stuckup attitude that everything it can't handle must be bad instead of thinking there might be a bug somwhere. So again: Advice is to move to manifold and suddenly there are a lot less "bad STLs" in the world around us. Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Verl. Spiegelmakerstraat 37 2645 LZ Delfgauw, The Netherlands. ** KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a** is going up. -- Chris Hadfield about flying up the space shuttle. ** 'a' for accelleration.