The color picture may be faithful to the vector image barely visible above it.
I’m hoping to construct a four-color butterfly using this vector file I created. The vectors generate a single color extrusion when loaded into layerly, which isn’t too surprising, as it is a collection of closed vectors, confirmed by another program.
One of my earlier attempts involved filling the vectors with the correct colors, saving as SVG, but the result was one black slab, albeit with “selectable” segments for the colors to be added. The unfortuate aspect of this is that the individual segments are many and quite small, so it would be hit or miss to be able to get them all.
Would someone have a recommendation or recommendations for a more-likely-to-succeed approach/workflow? I have Layerly, Fusion 360 (barely capable), Meshmixer and probably a couple others that could be useful. I’m hoping to get a .3MF file to import into Snapmaker Orca, so the color assignments isn’t critical at this point.
I am familiar with FreeCAD. The latest versions have some tools useful for this, but it is still a bit manual and probably not what you are looking for. I would (this has been proven in FreeCAD 1.1.1):
Ensure “generate internal faces” is the default in Edit > Sketcher > Preferences.
Create a body, rename it “Black” (right-click context menu), Allow Compound = Yes (in the data tab). Optionally (it makes no difference to the final output, but provides a preview), in the View tab change ShapeAppearance to black.
Repeat step 2 for Red, Orange, and White.
Import the SVG (File > Import… > SVG as geometry).
Each path in the SVG will show as a separate item in the tree view, select them all.
Switch to the Draft workbench, then Modification > Draft to Sketch. This will take some time.
The path objects are still selected in the tree – delete them (Del).
Switch to the Part Design workbench (and reselect the Model tree view, rather than Tasks).
Select the sketch in the tree, Ctrl+C then Ctrl+V three times (now four sketches in all).
Drag a sketch onto each of Black, Red, Orange, and White bodies.
Make sure to save the work so far.
Double-click Black to make that body active, hide the other bodies (click the eye icon).
When the processing catches up, click in a blank area of the workspace (to deselect), then you will be able to hover over parts of the sketch in the main view to highlight regions in the sketch, and Ctrl+click to multiple-select them. Select the black areas. (NB: black has only one region, but for the others it is imperative to keep Ctrl down throughout the selection process. Use the scroll wheel to zoom in and out, and the right mouse button to pan – both still work while Ctrl is pressed. If a line or the wrong region is clicked by mistake, keep Ctrl pressed and click it again to unselect it.)
Click the ‘Pad’ tool, and choose a length (I suggest 5mm), then click OK.
Repeat steps 12-14 for Red, Orange, White.
Save.
With the Black body highlighted in the tree, File > Export… (call it black.stl).
Repeat step 8 for Red, Orange, and White.
Now in Orca / SnOrca:
Ensure the desired filaments are loaded.
In your file manager, select all the .stl files (black, red, orange, white) and drag them all at the same time into Orca.
Orca will ask whether they are separate objects or all part of the same object, select the latter.
In the settings panel, Process panel, select “objects” (instead of “global”).
You will see a list of the parts of the object (each .stl), with a filament assignment to the right in the list – re-assign filaments as required (right-click, ‘choose filament’).
If the object is not the size you want, select it and scale uniformly to get your desired XY dimensions, then turn off uniform scaling and set your desired Z dimension.
That’s it – slice and print.
However, all that said, I am sure there are several on-line tools that will take an image and produce a 3D file input for a slicer.
Thanks for the response. I’m at a complete loss with FreeCAD, so I don’t know how far I’ll get with the sequence you’ve provided. Would you know if the relative positions resulting from your sequence remain true to the original?
I can take the SVG file and create a single color extrusion with very little difficulty. Drag and drop in Layerly works great. In the past, I used OpenSCAD to make an extrusion, but it’s not well suited for multiple colors.
I decided to put my money where my mouth is, and actually did it. The process was more or less as I described, but I have edited my previous post to rationalise, economise, and clarify the steps – should be possible for anyone to follow (FreeCAD 1.1.1, which is slightly behind the times but things shouldn’t change too much).
I recommend MangoJelly’s channel on YouTube if you want FreeCAD tuition. The two main things you need to know are importing SVG to sketch, and generate internal faces. But really, there is no substitute for just trying it and then looking things up if you get stuck – I’ve already walked you through it.
The processing for that butterfly SVG takes quite a lot of time in FreeCAD, there are significant delays on some of the steps (I’m using a 6-core – 12-core with hyperthreading – AMD Ryzen machine), and the selection process for the different colour patches is long-winded, so if you want to get the hang of doing this I suggest you start with a very simple test piece SVG, eg this one:
The scale of this svg is a bit off (it’s huge), I’ve had to pad it to 300mm to get a decent thickness! Sorry about that, but it illustrates the process.