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
2 votes
2 answers
43 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 ...
user avatar
6 votes
1 answer
405 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: ...
user avatar
  • 141
0 votes
2 answers
101 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 ...
user avatar
  • 103
1 vote
1 answer
98 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 ...
user avatar
3 votes
1 answer
86 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 ...
user avatar
  • 133
0 votes
0 answers
54 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 ...
user avatar
1 vote
1 answer
89 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 ...
user avatar
  • 123
3 votes
1 answer
152 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 ...
user avatar
0 votes
1 answer
847 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->...
user avatar
  • 4,398
0 votes
3 answers
188 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 ...
user avatar
1 vote
1 answer
54 views

How to combine difference with concatinate object [closed]

The following creates an object with two slots: ...
user avatar
3 votes
3 answers
2k 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 ...
user avatar
  • 171
1 vote
2 answers
270 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() { ... } ...
user avatar
  • 135
2 votes
2 answers
426 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 ...
user avatar
  • 135
2 votes
1 answer
199 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, ...
user avatar
  • 21
0 votes
1 answer
300 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 ...
user avatar
0 votes
2 answers
2k 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, ...
user avatar
  • 19.2k
2 votes
3 answers
141 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 ...
user avatar
4 votes
1 answer
219 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 ...
user avatar
3 votes
3 answers
644 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 ...
user avatar
4 votes
1 answer
146 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,...
user avatar
1 vote
2 answers
376 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 ...
user avatar
5 votes
3 answers
1k 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 ...
user avatar
  • 223
2 votes
1 answer
126 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 ...
user avatar
  • 223
4 votes
1 answer
3k 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 ...
user avatar
  • 223
2 votes
1 answer
70 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 ...
user avatar
  • 509
9 votes
1 answer
1k 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 <...
user avatar
  • 303
4 votes
2 answers
158 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 ...
user avatar
  • 43
1 vote
1 answer
1k 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 ...
user avatar
  • 509
2 votes
2 answers
680 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 ...
user avatar
1 vote
0 answers
201 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 ...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
  • 111
5 votes
1 answer
1k 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 ...
user avatar
  • 509
5 votes
1 answer
1k 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 ...
user avatar
8 votes
3 answers
550 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 ...
user avatar
  • 4,537
4 votes
2 answers
276 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 ...
user avatar
  • 4,537
2 votes
3 answers
1k 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 ...
user avatar
  • 661