OpenSCAD SVG-Imported Badge example
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_diameterMedium 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.
Make the badge blank ·
BlankInspect the plate and mounting hole before importing any decoration.
Inspect the imported SVG ·
ArtworkShow only the extruded SVG outline. Its interior opening must remain empty.
Apply the artwork ·
FinishedCombine the actual imported geometry with the blank using the selected Raised or Engraved finish.
main.scad
Loading draft
Ready
Z up · geometry preview
Your geometry will appear here
Preview or render the model to inspect it in 3D.
Geometry-only STL preview
Grid 10 units · Drag: orbit · Right-drag / two fingers: pan · Scroll / pinch: zoom
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.