OpenSCAD SVG-Imported Badge example

OpenSCAD examples
/

SVG-Imported Badge

Intermediate

Practical parts

Lesson 20 of 22

Import a real project SVG asset, scale its outline, and use it as raised or engraved geometry.

Try changing:

stepfinishartwork_widthbase_thicknessreliefhole_diameter

Medium compile complexity. Imports a small bundled SVG; complex replacement paths can increase boolean cost.

Visual walkthrough: change step in the workspace Parameters panel to compile each construction stage.

How this model works

The project includes assets/emblem.svg, an authored filled outline with an interior cutout. import reads that file from the project, and resize sets its width while preserving its aspect ratio. linear_extrude makes a solid from the imported region. Raised artwork overlaps the plate; engraved artwork stops above the bottom face. Use filled closed paths for reliable imports, and convert SVG text or strokes to outlines in your vector editor when necessary. Keep the asset with main.scad when downloading a project ZIP.

  1. Make the badge blank · Blank

    Inspect the plate and mounting hole before importing any decoration.

  2. Inspect the imported SVG · Artwork

    Show only the extruded SVG outline. Its interior opening must remain empty.

  3. Apply the artwork · Finished

    Combine the actual imported geometry with the blank using the selected Raised or Engraved finish.

main.scad

Loading draft

Ctrl/Cmd+Enter or F5: preview · F6: render · Ctrl/Cmd+F: search · Ctrl+Space: complete · Tab: leave editor

0 messages

Make it your own

Open assets/emblem.svg in the project panel and change its outline. Compare Raised and Engraved finishes, checking that the inner cutout remains visible and that engraving leaves a floor.

Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.

FAQ