discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

OT - 3MF

RW
Raymond West
Thu, Apr 23, 2026 8:47 PM

I have a .3MF file, generated not by me. It opens in the slicer, but
resets all the parameters wrt filament and nozzle size, etc. I thought
that I could open it in openscad, but it seems to stack all the objects
on top of each other. So, I decided to add a function to read in 3mf
files to my cad program, which I've been working on over the past few
months. It took all day, arguing with co-pilot, but we got there in the
end. I can now save each object as a .obj file, which is as I wanted.
Not sure if it will work with separating all objects from all 3mf's, but
looks as if it may.

The file is 'runners' on this page -
https://www.printables.com/model/1572649-carbon-13-printable-jointed-figure-type-m-beta-fil/files

of course, the slicer could also separate the objects, but where is the
fun in that...

I've attached the cpp code.  It may be useful, if you understand cpp,
which I do not...

here is my cad code

// test of 3mf
parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf")
show_obj(parts[0],"manikinbody.obj")
show_obj(parts[1],"manikinhands.obj")
show_obj(parts[2],"manikinjoints.obj")

I have a .3MF file, generated not by me. It opens in the slicer, but resets all the parameters wrt filament and nozzle size, etc. I thought that I could open it in openscad, but it seems to stack all the objects on top of each other. So, I decided to add a function to read in 3mf files to my cad program, which I've been working on over the past few months. It took all day, arguing with co-pilot, but we got there in the end. I can now save each object as a .obj file, which is as I wanted. Not sure if it will work with separating all objects from all 3mf's, but looks as if it may. The file is 'runners' on this page - https://www.printables.com/model/1572649-carbon-13-printable-jointed-figure-type-m-beta-fil/files of course, the slicer could also separate the objects, but where is the fun in that... I've attached the cpp code.  It may be useful, if you understand cpp, which I do not... here is my cad code // test of 3mf parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf") show_obj(parts[0],"manikinbody.obj") show_obj(parts[1],"manikinhands.obj") show_obj(parts[2],"manikinjoints.obj")
L
larry
Thu, Apr 23, 2026 10:54 PM

On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote:

I have a .3MF file, generated not by me. It opens in the slicer, but
resets all the parameters wrt filament and nozzle size, etc. I
thought that I could open it in openscad, but it seems to stack all
the objects on top of each other. So, I decided to add a function to
read in 3mf files to my cad program, which I've been working on over
the past few months. It took all day, arguing with co-pilot, but we
got there in the end. I can now save each object as a .obj file,
which is as I wanted. Not sure if it will work with separating all
objects from all 3mf's, but looks as if it may.
 The file is 'runners' on this page -
https://www.printables.com/model/1572649-carbon-13-printable-jointed-
figure-type-m-beta-fil/files

Hmm... I see no .3mf on that page. I only see STL files.
If I download all files, I get a .zip file, and extracting that gives
me the expected STLs.

 of course, the slicer could also separate the objects, but where is
the fun in that...
I've attached the cpp code.  It may be useful, if you understand cpp,
which I do not...
 
 here is my cad code
 
// test of 3mf
parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf")
show_obj (parts[0],"manikinbody.obj")
show_obj (parts[1],"manikinhands.obj")
show_obj (parts[2],"manikinjoints.obj")


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

On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote: > I have a .3MF file, generated not by me. It opens in the slicer, but > resets all the parameters wrt filament and nozzle size, etc. I > thought that I could open it in openscad, but it seems to stack all > the objects on top of each other. So, I decided to add a function to > read in 3mf files to my cad program, which I've been working on over > the past few months. It took all day, arguing with co-pilot, but we > got there in the end. I can now save each object as a .obj file, > which is as I wanted. Not sure if it will work with separating all > objects from all 3mf's, but looks as if it may. >  The file is 'runners' on this page - > https://www.printables.com/model/1572649-carbon-13-printable-jointed- > figure-type-m-beta-fil/files Hmm... I see no .3mf on that page. I only see STL files. If I download all files, I get a .zip file, and extracting that gives me the expected STLs. >  of course, the slicer could also separate the objects, but where is > the fun in that... > I've attached the cpp code.  It may be useful, if you understand cpp, > which I do not... >   >  here is my cad code >   > // test of 3mf > parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf") > show_obj (parts[0],"manikinbody.obj") > show_obj (parts[1],"manikinhands.obj") > show_obj (parts[2],"manikinjoints.obj") > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
RW
Raymond West
Fri, Apr 24, 2026 10:33 AM

Hi Terry,
'runners' is the three stl files, that were similar to the files that
were in the .3mf file that appeared in my printer's model library. That
3mf file was configured for filaments and nozzle sizes, which are not on
my modified printer. Using preconfigured 3mf files means that usually I
have to overwrite its specific printer settings.

Best wishers,

Ray

On 23/04/2026 23:54, larry via Discuss wrote:

On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote:

I have a .3MF file, generated not by me. It opens in the slicer, but
resets all the parameters wrt filament and nozzle size, etc. I
thought that I could open it in openscad, but it seems to stack all
the objects on top of each other. So, I decided to add a function to
read in 3mf files to my cad program, which I've been working on over
the past few months. It took all day, arguing with co-pilot, but we
got there in the end. I can now save each object as a .obj file,
which is as I wanted. Not sure if it will work with separating all
objects from all 3mf's, but looks as if it may.
 The file is 'runners' on this page -
https://www.printables.com/model/1572649-carbon-13-printable-jointed-
figure-type-m-beta-fil/files
Hmm... I see no .3mf on that page. I only see STL files.
If I download all files, I get a .zip file, and extracting that gives
me the expected STLs.

 of course, the slicer could also separate the objects, but where is
the fun in that...
I've attached the cpp code.  It may be useful, if you understand cpp,
which I do not...

 here is my cad code

// test of 3mf
parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf")
show_obj (parts[0],"manikinbody.obj")
show_obj (parts[1],"manikinhands.obj")
show_obj (parts[2],"manikinjoints.obj")


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


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

Hi Terry, 'runners' is the three stl files, that were similar to the files that were in the .3mf file that appeared in my printer's model library. That 3mf file was configured for filaments and nozzle sizes, which are not on my modified printer. Using preconfigured 3mf files means that usually I have to overwrite its specific printer settings. Best wishers, Ray On 23/04/2026 23:54, larry via Discuss wrote: > On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote: >> I have a .3MF file, generated not by me. It opens in the slicer, but >> resets all the parameters wrt filament and nozzle size, etc. I >> thought that I could open it in openscad, but it seems to stack all >> the objects on top of each other. So, I decided to add a function to >> read in 3mf files to my cad program, which I've been working on over >> the past few months. It took all day, arguing with co-pilot, but we >> got there in the end. I can now save each object as a .obj file, >> which is as I wanted. Not sure if it will work with separating all >> objects from all 3mf's, but looks as if it may. >>  The file is 'runners' on this page - >> https://www.printables.com/model/1572649-carbon-13-printable-jointed- >> figure-type-m-beta-fil/files > Hmm... I see no .3mf on that page. I only see STL files. > If I download all files, I get a .zip file, and extracting that gives > me the expected STLs. > >>  of course, the slicer could also separate the objects, but where is >> the fun in that... >> I've attached the cpp code.  It may be useful, if you understand cpp, >> which I do not... >> >>  here is my cad code >> >> // test of 3mf >> parts=import_3mf("C:/users/ray/Downloads/dummybeta.3mf") >> show_obj (parts[0],"manikinbody.obj") >> show_obj (parts[1],"manikinhands.obj") >> show_obj (parts[2],"manikinjoints.obj") >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
L
larry
Fri, Apr 24, 2026 4:20 PM

On Fri, 2026-04-24 at 11:33 +0100, Raymond West via Discuss wrote:

Hi Terry,
'runners' is the three stl files, that were similar to the files that
were in the .3mf file that appeared in my printer's model library.
That 3mf file was configured for filaments and nozzle sizes, which
are not on my modified printer. Using preconfigured 3mf files means
that usually I have to overwrite its specific printer settings.

OK, but I still don't see how you ended up with a 3mf file on that
page. I downloaded the three STLs, using the "Download all file", then
unzipped them. I then opened the STLs one at a time, and loaded each
one into OpenSCAD. Here's what I get when I load 
'allparts_m_body-v1.stl'

On 23/04/2026 23:54, larry via Discuss wrote:

On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote:

I have a .3MF file, generated not by me. It opens in the slicer,
but
resets all the parameters wrt filament and nozzle size, etc. I
thought that I could open it in openscad, but it seems to stack
all
the objects on top of each other.

On Fri, 2026-04-24 at 11:33 +0100, Raymond West via Discuss wrote: > Hi Terry, > 'runners' is the three stl files, that were similar to the files that > were in the .3mf file that appeared in my printer's model library. > That 3mf file was configured for filaments and nozzle sizes, which > are not on my modified printer. Using preconfigured 3mf files means > that usually I have to overwrite its specific printer settings. OK, but I still don't see how you ended up with a 3mf file on that page. I downloaded the three STLs, using the "Download all file", then unzipped them. I then opened the STLs one at a time, and loaded each one into OpenSCAD. Here's what I get when I load  'allparts_m_body-v1.stl' > On 23/04/2026 23:54, larry via Discuss wrote: > > > On Thu, 2026-04-23 at 21:47 +0100, Raymond West via Discuss wrote: > > > I have a .3MF file, generated not by me. It opens in the slicer, > > > but > > > resets all the parameters wrt filament and nozzle size, etc. I > > > thought that I could open it in openscad, but it seems to stack > > > all > > > the objects on top of each other.