Skip to main content

Questions tagged [openscad]

Questions related to the use of the program OpenSCAD and how it relates to creating parts for 3D printing

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Why do I fail to import the SVG file from this site?

I'm trying to import a David Smith's tiling background image in openSCAD, but it fails miserably and I have no idea about why it fails. Here is what I did: I went to Craig S. Kaplan's page about ...
Camion's user avatar
  • 171
0 votes
1 answer
42 views

Can I use convexity in OpenSCAD to fix artifacts in the preview?

If I do a simple boolean difference where the dimensions of two shapes match there are visual artifacts in the preview. For example: ...
linuxdan's user avatar
  • 1,403
2 votes
1 answer
63 views

OpenSCAD hole is closed on the inside when in slicer

Hi I made a donut with a hole on the external side, but when I slice it the internal side of the cylinder is closed, this resul in a closed-hole.I will be glad if any one can explain me where is the ...
Paolol's user avatar
  • 23
1 vote
0 answers
39 views

OpenSCAD import dpi setting

I'm importing an svg and extruding it. Here is the code: translate([25,4,5]) rotate([90,0,0]) linear_extrude(height=5) import("logo.svg",dpi=25.4); ...
Siggi Bjarnason's user avatar
2 votes
2 answers
450 views

How to add a 2x2 mm hole to a SCAD file?

I'm trying to modify this code to create a small 2 mm x 2 mm hole on the short side of the box (to fit 2 wires coming out of a battery): ...
stormist's user avatar
  • 123
1 vote
1 answer
274 views

Get 2D object from a 3D object's face in OpenSCAD

Basically I am working on automating the generation of upper and lower shells of device enclosures. These enclosures have a rather irregular shape that was generated e.g. with ...
Stefan's user avatar
  • 119
2 votes
1 answer
280 views

How to combine an .svg and a basic object in Openscad

As stated in the question I am trying to combine a drawing I have in .svg format with a simple cylinder in order to make a printable medal. I have tried the following code : ...
hnzz's user avatar
  • 21
0 votes
1 answer
71 views

I am getting an error when trying to slice an STL object into multiple vector files

I am following the tutorial Slicing a 3D object to SVG. My code looks like so: ...
Petar Ivcec's user avatar
1 vote
1 answer
311 views

Conical scaling in OpenSCAD or Blender

Looking for a way to taper an imported STL model off toward the bottom (or top, if easier). The same transformation would turn a straight cylinder into a cone. The intent is to make a vase like the ...
GusOst's user avatar
  • 221
4 votes
1 answer
140 views

Cut a Möbius strip in four parts with interlocking

I'm a beginner with OpenSCAD. I use to work with Rhino, but I have no more license and the new Fablab I'm working with uses OpenSCAD, so I'm learning OpenSCAD now. The picture below shows what I want ...
Charles Rousselin's user avatar
4 votes
1 answer
1k views

OpenSCAD ERROR: Current top level object is not a 2D object

I have created a Mengersponge in OpenScad which is a 3D object. I wanted to get an SVG export from it for the laser cutter but I receive this error:"Current top level object is not a 2D object.&...
bluxixi's user avatar
  • 43
3 votes
2 answers
2k views

Print Object Without Top Layer But With Intermediate Layers

I'm using PrusaSlicer with OpenSCAD. I want to print a solid object with a notch in it, without top layers, but with infill and solid walls for the notch, like this... I can set the number of top ...
BoCoKeith's user avatar
  • 131
3 votes
3 answers
2k views

Can OpenSCAD bend text (project it on curved surface)?

I want to put relief text on curved surface but can't find way to do that in OpenSCAD. I'm aware it's possible to bend text in Blender and then import stl, but I ...
mugiseyebrows's user avatar
7 votes
1 answer
986 views

OpenSCAD can't render union of two polyhedrons, but can preview just fine

I am running into what honestly seems like a bug in OpenSCAD, but I can't believe that something so simple could reveal a bug. I am trying to render the following code: ...
nc404's user avatar
  • 281
1 vote
2 answers
373 views

Is shell scripting possible with OpenSCAD?

I literally just started OpenSCAD today, so please take it easy on me, but is shell scripting possible with OpenSCAD? as in, to write a script in the OpenSCAD syntax, and have it output images, or ...
j0h's user avatar
  • 113
1 vote
1 answer
480 views

Offline CAD software for beginners

I have used OpenSCAD to design a couple of basic things. However, I'm incredibly frustrated by the current state of CAD software: it's all browser based, or requires an internet connection. Or has a ...
YetAnotherRandomUser's user avatar
5 votes
1 answer
201 views

What is the operator precedence in OpenSCAD?

OpenSCAD User Manual's section on operators does not mention precedence. Quick Web searches found nothing. I assume the usual order of exponentiation, then multiplication, then addition does hold, but ...
user31389's user avatar
  • 153
0 votes
0 answers
107 views

Creating a hole into which an object can be pushed

I have an object and want to construct a part that the object could be slotted into along the Y-axis. If I just subtract the object, I will end up with a hollow that is bigger on the inside so it ...
Jan Tojnar's user avatar
2 votes
1 answer
285 views

Vary line with Z-axis for imported SVG file

I have an SVG file of a line drawing. When I import it into Tinkercad it generates a 3D version with the width of the lines remaining constant along the Z-axis (as expected). I would like to ...
NetFool's user avatar
  • 133
5 votes
1 answer
509 views

Why does OpenSCAD fail to cut holes in polygon sides that are exactly the width of the wall?

I'm trying to make a frame for a lithograph that I plan to 3D print for my wife for Mother's Day. I typically will have my differences be exactly the right size (rather than oversizing it for the ...
D. Patrick's user avatar
1 vote
1 answer
3k views

OpenSCAD render (F6) fails with "ERROR: CGAL error in CGAL_Nef_polyhedron3()"

I built a model and it previewed correctly. When rendering for STL export (F6), I got an assertion error: ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e->...
cmm's user avatar
  • 4,571
1 vote
3 answers
1k views

Is there an easy way to add rounded edges to semicircle in OpenSCAD?

I've put together a flashlight mount for a camera coldshoe in OpenSCAD. I originally modeled it in FreeCAD and it was easy to round the edges of the clamp with a fillet and that makes it a little ...
D. Patrick's user avatar
1 vote
1 answer
1k views

How to combine difference with concatinate object [closed]

The following creates an object with two slots: ...
dan sawyer's user avatar
4 votes
4 answers
7k views

OpenSCAD linear_extrude from multiple path svg import

In OpenSCAD, I am trying to make a linear_extrude on a shape imported from an svg. The svg file contains multiple path. I would like to scale each path separately. I have tried the following code, but ...
Oneira's user avatar
  • 201
3 votes
3 answers
1k views

Export STL from OpenSCAD command line, calling module within script?

Given a .SCAD file which contains some modules, how can I execute one of those modules from the command line? example.scad module One() { ... } module Two() { ... } ...
Josh M.'s user avatar
  • 155
2 votes
2 answers
947 views

OpenSCAD not rendering polyhedron

I'm trying to subtract a polyhedron from a cube, but it is not working (the cube remains solid). However, I can see the cut-out poly in preview mode (but not after a full render). Preview -- poly ...
Josh M.'s user avatar
  • 155
2 votes
1 answer
596 views

OpenSCAD / FreeCAD splitting, hollowing and threading model

I had a thought the other day that it's 100 % waste to have either a solid or hollow 3D-printed model in relation to utilizing the space inside of it for different modules, e.g. secret compartments, ...
zerz's user avatar
  • 21
1 vote
1 answer
1k views

How to I assign an imported STl file to a variable, polygon, or otherwise manipulate it?

I have 2 STL files that I want to chop, rotate, and glue together. If I printed them and literally chopped and glued them together, I would be done. Very simple operations. I imported them both ...
YetAnotherRandomUser's user avatar
0 votes
3 answers
5k views

.STEP/.F3D to .SCAD file?

I work with Fusion360 for designing lots of things. Recently I learned how to work with parameters that I can easily modify all at once, allowing to pretty much make easily customizable pieces. Now, ...
Trish's user avatar
  • 22.4k
2 votes
3 answers
214 views

Creating a two part label for storage boxes

I want to create two piece labels for storage containers. The main piece would be the “badge” which would have text cut out of it (e.g. “Paint”, “Electrical” etc.). The second piece would be a ...
Ron Ventura's user avatar
4 votes
1 answer
594 views

Spiral bevel gears in OpenSCAD

I'm trying to design a "Lifting Table" in OpenSCAD which will consist of 2 concentric cylinders. On the inner cylinder I plan to mount 3 un-powered bevel gears vertically plus a 4th powered one each ...
Alan Kwiatkowski's user avatar
3 votes
3 answers
2k views

Is it possible extrude faces along normals individually in OpenSCAD?

For the geometry I am making, I want to extrude each face individually along its normal. This is a standard procedure in 3D modeling software like Blender; see Example 3 here. Is this possible in ...
Roman Kogan's user avatar
4 votes
1 answer
199 views

Streamlining OpenSCAD Code

Is there an efficient approach to discovering what is extraneous ("dead" or "unused") code in OpenSCAD to promote the learning process? I am making progress by using working examples of code; however,...
JoeVanGeaux's user avatar
1 vote
2 answers
551 views

OpenSCAD weirdness with imported STL

I've tried to remix this model: https://www.thingiverse.com/thing:90933 (Bauhaus chess set) by scaling it down and inserting little magnet holes into the pieces' underside. My SCAD file looks as ...
Florian Echtler's user avatar
6 votes
3 answers
2k views

Creating "pie slice" in OpenSCAD?

When making a cylinder, sometimes I need to only take a pie slice. I'm currently using this neat trick to make pie slices for angles under 90 degrees. However, I have need of a few angles over 90 but ...
Hamy's user avatar
  • 273
2 votes
1 answer
433 views

Handing OpenSCAD module parameters derived from other variables

I'm new to OpenSCAD, but I can only get default parameters working for simple values. I'm wondering if there is any way to achieve the following, where I have some parameters available to the ...
Hamy's user avatar
  • 273
8 votes
1 answer
8k views

Is there an easy way to split models in OpenSCAD?

I'm wondering if I can take one OpenSCAD object, and cut/splice/split it into two different objects that can then be manipulated independently? One approach is to duplicate the object, difference it ...
Hamy's user avatar
  • 273
2 votes
1 answer
127 views

Find OpenSCAD code from image

I have an OpenSCAD model which I am looking at in the application, code to the left and the rendering to the right. Am trying to modify a certain piece, and have commented out all the commands that I ...
Tomas By's user avatar
  • 507
12 votes
1 answer
2k views

How to prevent z-fighting in OpenSCAD?

Z-fighting is a 3D rendering artifact of coplanar surfaces (means, of triangles located in exactly the same plane and overlapping each other). It can happen in OpenSCAD's preview mode when doing a <...
tanius's user avatar
  • 403
4 votes
2 answers
185 views

Why is 2 / -2 / 2 equal to -2 in OpenSCAD? (Mathematical Order of Operations)

Recently I have been doing more complicated math in OpenSCAD and I have run into something that I find strange. Take a simple math expression: 2 / 2 / 2. By any ...
Elijah's user avatar
  • 43
1 vote
1 answer
3k views

OpenSCAD "not valid 2-manifold" useful information

OpenSCAD suggests that "object may not be a valid 2-manifold" but it looks perfectly fine in OpenSCAD and in Meshlab. Have looked through the file several times, and cannot find any point or line ...
Tomas By's user avatar
  • 507
3 votes
2 answers
923 views

OpenSCAD 2018 Command line

First, I'm using Linux Mint 18.3 (Sylvia). Until now, I've been using OpenSCAD with the GUI and never experienced issues. Now I try to start OpenSCAD from the command line, but it always opens an ...
Hermann Gebhard's user avatar
1 vote
0 answers
276 views

OpenSCAD editor font is unreadable [closed]

I am a new OpenSCAD user. My screen editor window is using a very strange font that I cannot read. How can I fix it? I just installed OpenSCAD on my Linux Manjaro computer. This is a screen shot of ...
farmerkeith's user avatar
1 vote
2 answers
3k views

How to specify rotation origin in openscad [closed]

OpenSCAD has rotate function which rotates the body around its origin axis. Is there a way to specify an arbitrary axis? For example, this rotates a cylinder ...
Vanuan's user avatar
  • 111
5 votes
1 answer
3k views

OpenSCAD library for empty space/holes

I am working on a design in OpenSCAD, and need (would want) two things that seem tedious to hand-code: A pattern of holes in a wall, for less weight/material. Could be round holes or some geometric ...
Tomas By's user avatar
  • 507
9 votes
1 answer
2k views

Can the `render` function be used to speed up rendering?

I am designing a moderately complicated piece in OpenScad. It renders fast enough in preview mode (1s). But when i do a full render so I can export to STL, it takes ages (In the 10s of minutes) I ...
Frames Catherine White's user avatar
8 votes
3 answers
786 views

Are there any "best" or at least "common" practices to handle allowances in OpenSCAD code?

I'm designing a few mechanisms with OpenSCAD, and one of the parameters that need adjustment between printers/filaments is allowances between pieces that need to be assembled together (for example, if ...
mac's user avatar
  • 4,735
4 votes
2 answers
379 views

How to remove internal part of a hex grid

I am modelling a few cut templates to be used on an hexagonal grid (honeycomb) material using OpenSCAD. Basically, from a reference cell, I need to select all cells that are within a given range and ...
mac's user avatar
  • 4,735
2 votes
3 answers
2k views

Is there a technique for turning an image into a 2d model?

The overall goal is to create a print of the liberty bell. No clapper is needed. The support beam is not needed. I am just looking to mimic the outside shape of the bell. After an application of ...
EvilTeach's user avatar
  • 721