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
1answer
21 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->...
0
votes
3answers
32 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 ...
1
vote
1answer
37 views

How to combine difference with concatinate object [closed]

The following creates an object with two slots: ...
1
vote
2answers
104 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 ...
1
vote
1answer
35 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() { ... } ...
2
votes
2answers
117 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 ...
2
votes
1answer
98 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, ...
0
votes
1answer
84 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 ...
0
votes
2answers
875 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, ...
2
votes
3answers
113 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 ...
4
votes
1answer
115 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 ...
3
votes
3answers
364 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 ...
4
votes
1answer
132 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,...
1
vote
2answers
226 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 ...
5
votes
3answers
475 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 ...
2
votes
1answer
58 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 ...
4
votes
1answer
2k 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 ...
2
votes
1answer
44 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 ...
6
votes
1answer
718 views

How to prevent z-fighting in OpenSCAD?

Z-fighting is a 3D rendering artifact of coplanar surfaces (means, triangles are located in exactly the same plane, and overlap). It can happen in OpenSCAD's preview mode when doing a ...
4
votes
2answers
137 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 ...
1
vote
1answer
811 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 ...
2
votes
2answers
453 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 ...
1
vote
0answers
172 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 ...
1
vote
2answers
700 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 ...
5
votes
1answer
904 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 ...
5
votes
1answer
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 ...
8
votes
3answers
398 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 ...
4
votes
2answers
216 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 ...
1
vote
3answers
919 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 ...