discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

2D color projection cuts

JD
John David
Wed, Dec 24, 2025 6:29 AM

I have been away for awhile and have not been keeping up with things.
There were several of us that were interested in carrying over an objects
color through a project cut.  Has anyone played with this in the last year
or two?

My interest is that I can send a 2D object directly to a laser cutter, if I
can output in a suitable format.  The colors can be mapped to laser
intensity, which allows both engraving and cutting in the same file.

Anyway, I went to run OpenSCAD tonight and found that a broken dependency
and will need to recompile for my machine.  Thought I would ask if that
functionality has been addressed.

EBo --

I have been away for awhile and have not been keeping up with things. There were several of us that were interested in carrying over an objects color through a project cut. Has anyone played with this in the last year or two? My interest is that I can send a 2D object directly to a laser cutter, if I can output in a suitable format. The colors can be mapped to laser intensity, which allows both engraving and cutting in the same file. Anyway, I went to run OpenSCAD tonight and found that a broken dependency and will need to recompile for my machine. Thought I would ask if that functionality has been addressed. EBo --
JB
Jordan Brown
Wed, Dec 24, 2025 8:35 AM

I have been away for awhile and have not been keeping up with things.  There were several of us that were interested in carrying over an objects color through a project cut.  Has anyone played with this in the last year or two?

Not that I’m aware of.

If you design purely in 2D, I think techniques almost exactly like the ones from my “volumetric color” message would work.

If you design in 3D and then project (why?), that would require more thought but I think that a technique similar to the one I used for union would work - basically, project the first color, then project the second color and subtract the projection of the first, then project the third color and subtract the projections of the first and second, and so on.

But my impression was that the real problem with using OpenSCAD for laser work was in the lack of a true “line”.

> I have been away for awhile and have not been keeping up with things. There were several of us that were interested in carrying over an objects color through a project cut. Has anyone played with this in the last year or two? Not that I’m aware of. If you design purely in 2D, I think techniques almost exactly like the ones from my “volumetric color” message would work. If you design in 3D and then project (why?), that would require more thought but I think that a technique similar to the one I used for union would work - basically, project the first color, then project the second color and subtract the projection of the first, then project the third color and subtract the projections of the first and second, and so on. But my impression was that the real problem with using OpenSCAD for laser work was in the lack of a true “line”.
WF
William F. Adams
Wed, Dec 24, 2025 11:22 PM

On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via Discuss discuss@lists.openscad.org wrote:

I have been away for awhile and have not been keeping up with things.  
There were several of us that were interested in carrying over an objects color through a project cut.  
Has anyone played with this in the last year or two?

<snip>

But my impression was that the real problem with using OpenSCAD for laser work was in the lack of a true “line”.

If you're willing to branch out to Open(Python)SCAD I managed to work up:

https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py

which allows making a DXF, using arcs --- if someone wants to post an example of a design I'll gladly work it up for the templates folder.

William

On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via Discuss <discuss@lists.openscad.org> wrote: >> I have been away for awhile and have not been keeping up with things.   >>There were several of us that were interested in carrying over an objects color through a project cut.   >>Has anyone played with this in the last year or two? <snip> >But my impression was that the real problem with using OpenSCAD for laser work was in the lack of a true “line”. If you're willing to branch out to Open(Python)SCAD I managed to work up: https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py which allows making a DXF, using arcs --- if someone wants to post an example of a design I'll gladly work it up for the templates folder. William
GS
Guenther Sohler
Thu, Dec 25, 2025 5:20 AM

PythonSCAD can render colored 2d shapes.
Its great fun to import colored svgs and extrude them.
Admittedly projection cut is not yet implemented as  the correct expected
behavior is not yet clear to
Me.
But I am happy to improve in short time when it gets clear.

Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss <
discuss@lists.openscad.org>:

On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via
Discuss discuss@lists.openscad.org wrote:

I have been away for awhile and have not been keeping up with things.
There were several of us that were interested in carrying over an

objects color through a project cut.

Has anyone played with this in the last year or two?

<snip>

But my impression was that the real problem with using OpenSCAD for laser

work was in the lack of a true “line”.

If you're willing to branch out to Open(Python)SCAD I managed to work up:

https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py

which allows making a DXF, using arcs --- if someone wants to post an
example of a design I'll gladly work it up for the templates folder.

William


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

--
Null

PythonSCAD can render colored 2d shapes. Its great fun to import colored svgs and extrude them. Admittedly projection cut is not yet implemented as the correct expected behavior is not yet clear to Me. But I am happy to improve in short time when it gets clear. Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss < discuss@lists.openscad.org>: > On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via > Discuss <discuss@lists.openscad.org> wrote: > > >> I have been away for awhile and have not been keeping up with things. > >>There were several of us that were interested in carrying over an > objects color through a project cut. > >>Has anyone played with this in the last year or two? > > <snip> > > >But my impression was that the real problem with using OpenSCAD for laser > work was in the lack of a true “line”. > > If you're willing to branch out to Open(Python)SCAD I managed to work up: > > https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py > > which allows making a DXF, using arcs --- if someone wants to post an > example of a design I'll gladly work it up for the templates folder. > > William > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- Null
JD
John David
Sun, Dec 28, 2025 2:52 AM

My workflow is typically to design in 3D, so that I can visualize and
model.  I then can do a projection(cut) to prepare for laser cutting.

If I can get some color to map through to SVG, then I can use different
colors to map to cut/engrave in the same file.  This simplifies my workflow
quite a bit.

EBo --

On Thu, Dec 25, 2025 at 12:20 AM Guenther Sohler via Discuss <
discuss@lists.openscad.org> wrote:

PythonSCAD can render colored 2d shapes.
Its great fun to import colored svgs and extrude them.
Admittedly projection cut is not yet implemented as  the correct expected
behavior is not yet clear to
Me.
But I am happy to improve in short time when it gets clear.

Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss <
discuss@lists.openscad.org>:

On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via
Discuss discuss@lists.openscad.org wrote:

I have been away for awhile and have not been keeping up with things.
There were several of us that were interested in carrying over an

objects color through a project cut.

Has anyone played with this in the last year or two?

<snip>

But my impression was that the real problem with using OpenSCAD for

laser work was in the lack of a true “line”.

If you're willing to branch out to Open(Python)SCAD I managed to work up:

https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py

which allows making a DXF, using arcs --- if someone wants to post an
example of a design I'll gladly work it up for the templates folder.

William


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

--
Null


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

My workflow is typically to design in 3D, so that I can visualize and model. I then can do a projection(cut) to prepare for laser cutting. If I can get some color to map through to SVG, then I can use different colors to map to cut/engrave in the same file. This simplifies my workflow quite a bit. EBo -- On Thu, Dec 25, 2025 at 12:20 AM Guenther Sohler via Discuss < discuss@lists.openscad.org> wrote: > PythonSCAD can render colored 2d shapes. > Its great fun to import colored svgs and extrude them. > Admittedly projection cut is not yet implemented as the correct expected > behavior is not yet clear to > Me. > But I am happy to improve in short time when it gets clear. > > Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss < > discuss@lists.openscad.org>: > >> On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via >> Discuss <discuss@lists.openscad.org> wrote: >> >> >> I have been away for awhile and have not been keeping up with things. >> >>There were several of us that were interested in carrying over an >> objects color through a project cut. >> >>Has anyone played with this in the last year or two? >> >> <snip> >> >> >But my impression was that the real problem with using OpenSCAD for >> laser work was in the lack of a true “line”. >> >> If you're willing to branch out to Open(Python)SCAD I managed to work up: >> >> https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py >> >> which allows making a DXF, using arcs --- if someone wants to post an >> example of a design I'll gladly work it up for the templates folder. >> >> William >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > -- > Null > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JD
John David
Sun, Dec 28, 2025 3:02 AM

re: PythonSCAD...

I have looked at it briefly, and will dive back into it again after I clear
my current MUST-DO list. I will likely reach out to you, @William F. Adams
willadams@aol.com and @Guenther Sohler guenther.sohler@gmail.com, for
questions to rebuild my workflow.  I'll need to work through how to
continue modeling parts, but if it works, it works.

EBo --

On Sat, Dec 27, 2025 at 9:52 PM John David ebo.2112@gmail.com wrote:

My workflow is typically to design in 3D, so that I can visualize and
model.  I then can do a projection(cut) to prepare for laser cutting.

If I can get some color to map through to SVG, then I can use different
colors to map to cut/engrave in the same file.  This simplifies my workflow
quite a bit.

EBo --

On Thu, Dec 25, 2025 at 12:20 AM Guenther Sohler via Discuss <
discuss@lists.openscad.org> wrote:

PythonSCAD can render colored 2d shapes.
Its great fun to import colored svgs and extrude them.
Admittedly projection cut is not yet implemented as  the correct
expected  behavior is not yet clear to
Me.
But I am happy to improve in short time when it gets clear.

Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss <
discuss@lists.openscad.org>:

On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via
Discuss discuss@lists.openscad.org wrote:

I have been away for awhile and have not been keeping up with

things.

There were several of us that were interested in carrying over an

objects color through a project cut.

Has anyone played with this in the last year or two?

<snip>

But my impression was that the real problem with using OpenSCAD for

laser work was in the lack of a true “line”.

If you're willing to branch out to Open(Python)SCAD I managed to work up:

https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py

which allows making a DXF, using arcs --- if someone wants to post an
example of a design I'll gladly work it up for the templates folder.

William


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

--
Null


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

re: PythonSCAD... I have looked at it briefly, and will dive back into it again after I clear my current MUST-DO list. I will likely reach out to you, @William F. Adams <willadams@aol.com> and @Guenther Sohler <guenther.sohler@gmail.com>, for questions to rebuild my workflow. I'll need to work through how to continue modeling parts, but if it works, it works. EBo -- On Sat, Dec 27, 2025 at 9:52 PM John David <ebo.2112@gmail.com> wrote: > My workflow is typically to design in 3D, so that I can visualize and > model. I then can do a projection(cut) to prepare for laser cutting. > > If I can get some color to map through to SVG, then I can use different > colors to map to cut/engrave in the same file. This simplifies my workflow > quite a bit. > > EBo -- > > On Thu, Dec 25, 2025 at 12:20 AM Guenther Sohler via Discuss < > discuss@lists.openscad.org> wrote: > >> PythonSCAD can render colored 2d shapes. >> Its great fun to import colored svgs and extrude them. >> Admittedly projection cut is not yet implemented as the correct >> expected behavior is not yet clear to >> Me. >> But I am happy to improve in short time when it gets clear. >> >> Am Donnerstag, 25. Dezember 2025 schrieb William F. Adams via Discuss < >> discuss@lists.openscad.org>: >> >>> On Wednesday, December 24, 2025 at 03:36:09 AM EST, Jordan Brown via >>> Discuss <discuss@lists.openscad.org> wrote: >>> >>> >> I have been away for awhile and have not been keeping up with >>> things. >>> >>There were several of us that were interested in carrying over an >>> objects color through a project cut. >>> >>Has anyone played with this in the last year or two? >>> >>> <snip> >>> >>> >But my impression was that the real problem with using OpenSCAD for >>> laser work was in the lack of a true “line”. >>> >>> If you're willing to branch out to Open(Python)SCAD I managed to work up: >>> >>> https://github.com/WillAdams/gcodepreview/blob/main/gcpcutdxf.py >>> >>> which allows making a DXF, using arcs --- if someone wants to post an >>> example of a design I'll gladly work it up for the templates folder. >>> >>> William >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> >> -- >> Null >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > >