Create an extrusion from an image

LAST CHECKED:

October 29, 2026

Create an extrusion from an image
Emil Rindell

Emil Rindell

Jonas Bryntesson

Jonas Bryntesson

Henrik Andersson

Henrik Andersson

PUBLISHED:

2022-05-04

Emil Rindell

Emil Rindell

Jonas Bryntesson

Jonas Bryntesson

Henrik Andersson

Henrik Andersson

2022-05-04

From a raster image to 3D extrusion

In some cases, you need to add an extruded shape from an image to your 3D model. Many times you may only have a raster image i.e. a file format such as *.jpg or *.png. Certainly it is possible to project the image onto a surface and then draw it using splines or other lines in the cross-section. This is a time-consuming process and you need to be very careful to get the best possible result.

‍

Here is how you do it

The image we will use is a raster image in the *.png file format. This means the image does not consist of points and lines (vector data) that we can extract information from into IRONCAD, but is instead built up of pixels. Since the image has a solid black color with a white background, we can almost expect the conversion to work well.

‍

Keep in mind that the ideal is to have an image that is as "clean" as possible from the start. In this case, you cannot use a regular photograph of a car or similar; avoid shadows and strive for single solid colors if possible. The quality of the conversion is usually entirely determined by these factors.

Once you have your raster image ready to be converted into vector data, visit this page: https://convertio.co/

Click on Choose Files or drag and drop your image from File Explorer.

Convertio

‍

Then click the arrow on the dropdown menu to select the file format, choose CAD , and press DXF followed by Convert.

‍

Once the file has been converted, click Download.

PNG to DXF to 3D

‍

Now launch IRONCAD and open a new 3D scene. In this case, we drag in a simple block (1) and set its dimensions to 300x300x30. Then go to the Sketch tab (2) and click the 2D-Shape button (3), then click the midpoint (4) on the surface. Confirm by clicking the green checkmark (5).

‍

Then right-click the cross-section and select Import...

import DXF ironcad

‍

Locate the file you just downloaded and click Öppna.

DXF 3D ironcad

‍

Here you will first see a preview of the DXF file. Now click OK to start the import.

Import DXF ironcad

‍

Then press OK again.

Import DXF

‍

The logo became too large for our surface, so we scale it down by first box-selecting (click and hold the left mouse button) over all the lines (1), then launch the Scale tool (2). Set a scale factor (3) to shrink or enlarge the lines; in this case, I chose 0.2 to make them smaller. Then press OK (4).

scaling sketch ironcad

‍

Now the logo is the right size. Click Finish.

Finish sketch

‍

At this point, we can now create an extrusion by right-clicking the 2D profile in the history tree and selecting Create followed by Extrude.

create extrude ironcad

‍

In this dialog box we can now control how our extrusion will be. Under Distance (1) we choose a thickness of 2 mm. Then press Add Material (2) to create a feature that adds material. Then click on the block in the 3D scene (3) so that the name of the part appears under Affected Part. Now switch to the Profile Behavior tab at the top of the window.

Create an extrude ironcad

‍

A tip is to select Copy Existing Profiles, which gives you a copy of your cross-section and saves you from having to re-import the file into the cross-section. Then check Use the currently... which ensures you will always get a copy of your cross-section. Then click OK.

Profile behavior

‍

This is what the result looks like with Add Material...

extruded

‍

...and this is what it looks like with Remove Material...

Remove material

‍

Finally, as a stand alone part.

To create a standalone part, you can also drag the handle in the 3D scene that appears in the middle of the 2D profile when it is selected (no dialogue follows, but a standalone part is created immediately).