r/OpenPythonSCAD • • Mar 05 '26

Defining world view camera parameters.

3 Upvotes

After I create a bunch of objects, is it possible to to define camera location, orientation and field of view in order to see these objects through this camera, i.e. capture an image of rendered scene as seen by that camera?

I found that it can be done using Viewport-Control in PythonSCAD IDE. Can it be done programmatically? Can FOV have different horizontal and vertical values?


r/OpenPythonSCAD • • Oct 24 '26

Coming soon to PythonSCAD: drag your model, and your code follows

10 Upvotes

Hi everyone,

here's a preview of a feature that is coming to PythonSCAD soon: interactive dragging that writes back into your Python code.

In the video, I build a little desk lamp in Python and then shape it with the mouse. Hold Ctrl and drag a vertex. The parameter behind it changes live in the editor, and when you let go, the whole model is rebuilt from the new value.

How it works

Wrap any number you want to be draggable in marked() (or just write it as a string):

ARM1 = "130"          # lower arm length
J1   = "-20"          # joint angle

arm = cube([10, 10, ARM1], center="||[")
arm = arm.rotate([0, J1, 0])

Drag the top of the arm and ARM1 changes. Drag the arm sideways and J1 changes. Since the value lives in a variable, the definition at the top of the file is updated, and everything that depends on it moves along after you release the mouse.

What you can drag

  • cube: each size component, or the scalar size

  • sphere: r / d

  • cylinder: h, r, r1, r2, d, d1, d2, and even angle

  • polyhedron: individual vertices, only along the coordinates you marked

  • translate, scale, rotate, including nested rotations like an elbow joint

It's not just "move the point in screen space"

The grabbed point follows the path it can actually take. A rotation moves it along its real circle, so you can swing an arm smoothly, even past 180° and around several times. A single marked axis slides along a line, and two axes stay in their plane. Values snap to sensible steps (0.1 mm, 1°), so your code stays clean.

Function style (translate(obj, v)), method style (obj.translate(v)) and variables defined elsewhere in the file all work.

A demonstration of the feature in action can be found here:

https://www.youtube.com/watch?v=rNgcj9Xju3U

Feedback and ideas welcome! What would you want to drag next?


r/OpenPythonSCAD • • Jan 31 '26

More Lasercut progress

3 Upvotes

In the meantime I was working on my lasercutter library. Now it does not only support edge2edge joints but also edge2face and face2face joints.

A new Class constructor can accept a whole solid and creates a mesh from it like this:

The code is as simpe as:

'''

from openscad import *

from pylaser import *

obj=sphere(r=30)

lc = LaserCutter(obj,rows=4,cols=4)

lc.preview()

#c.finalize().show()

'''

But of course you are not limited by spheres, but could add a custom STL instead.

The Library can create the correct lasercutting shapes and finally it becomes real life:


r/OpenPythonSCAD • • Jan 03 '26

path_extrude issue

4 Upvotes

Did path_extrude stop accepting a rounding parameter?

This:

from openscad import *
p = path_extrude(square(1), [[0, 0, 0], [0, 0, 10, 3], [10, 0, 10, 3], [10, 10, 10]])

Does no longer produce this:

Ubuntu 25.10, PythonSCAD v. 0.8.1 (appimage).


r/OpenPythonSCAD • • Apr 16 '26

Textures in PythonSCAD

6 Upvotes

Inspired by websites like meshtexture.com or bumpmesh.com my focus last days and weeks were texture again. They are a great addition to solid modelling; not only pretty looking but they could also add some structure to handles so you can better grab them.

But having "texturing" on board is both an adavtantage in less tools, faster model, and the ability to use serveral texures in your model.

In Order to successfully "texture" a solid you need to provide a way to "accept" all details of the texture, this is basically remeshing with a finer grid or literally "oversampling".

Texturing itself is just the small dot on the "i" , but it comes with lots of projection flavors.

Projection determines, how a X and Y coordinate of the Texture maps to the the solid. Some of them are cubic, spherical, cylindric, triplanar, planarx, planary, planarz.

Long story short: here is an example how you can upcycle the surface of *any* derived solid

like so:

And yes - you can mix any texture and any color in your design.

The "oversample" function accepts parameters like "size" "texture" "texturewidth" "textureheight" "texturedepth" .

Texture is the name/path of a png file similar to osimport or surface. width an height are the sizes of a single texture canvas on your model whereas depth controls the carving depth of black color in your model.

The code for this model is available at https://bpa.st/EQPRG

This feature was merged today into the source code and will be available on next release.

Feel free to share your favorite models on thingiverse. Happy texturing,


r/OpenPythonSCAD • • Sep 11 '25

Some attempts with negative Space

2 Upvotes

Is that magic, shouldn't the square block the pipe ?

No, the pipe has an active negative space, which can punch through a hole even beeing unionied.

Howver, this convenience costs a price. All boolean operations multiply by 6 internally


r/OpenPythonSCAD • • Mar 30 '25

OpenPythonSCAD: Integration status, performance, and use of external libraries

4 Upvotes

Hey everyone,

I’ve got a few general questions regarding PythonSCAD and its integration with OpenSCAD:

  1. Integration status Has PythonSCAD already been fully merged into OpenSCAD and enabled by default? If not, is there any rough ETA for when this is expected?

(Alternatively, is there an option or ongoing effort to merge recent changes from OpenSCAD’s master branch into PythonSCAD, to keep it up to date?)

2. Performance
Are there any known performance drawbacks to using PythonSCAD compared to standard OpenSCAD?
If so, are there best practices or guidelines to help minimize the performance hit?

3. Using Python libraries
Is it possible to import and use external Python libraries within PythonSCAD scripts?
If so, could someone point to a guide or example?
(I saw this asked before but couldn’t quite figure out the current state)

Appreciate any insights. Thanks!


r/OpenPythonSCAD • • 4d ago

Tutorial: Turn your PythonSCAD design into a class and get a real GUI form for its parameters

4 Upvotes

Most parametric designs end up as a function with a list of arguments, and after a while you can't remember what box(80, 50, 30, 2, True, False) actually means.

PythonSCAD has a small protocol for this. If you turn your design function into a class with three conventional methods, the editor shows a clickable calltip for it. Clicking the calltip opens your own PyQt6 dialog. When you press OK, the call in your script is rewritten with the new values.

We'll build this for a very simple box: length, width, height, wall thickness, and two checkboxes, hollow and notch (a finger notch in the front wall).

You need a Qt6 build of PythonSCAD. It ships PyQt6, so there's nothing extra to install.


Step 1: The design as a class

Normally you'd write def box(...). Instead we put the same code into __new__ of a class:

class box:
    def __new__(cls, length=80, width=50, height=30, wall=2,
                hollow=True, notch=False):
        body = cube([length, width, height])
        if hollow:
            cavity = cube([length - 2*wall, width - 2*wall, height])
            body -= cavity.translate([wall, wall, wall])
            if notch:
                cut = cylinder(r=height/4, h=wall*3, center=True, fn=48)
                body -= cut.rotate([90, 0, 0]).translate([length/2, wall/2, height])
        return body

Because __new__ can return any object, box(...) returns the geometry itself, not a box instance. For your scripts nothing changes: box(length=120).show() works just like a function call.

Step 2: get_calltip()

@staticmethod
def get_calltip():
    return "box(length, width, height, wall, hollow, notch)"

This is the text in the popup that appears when you type box(. Because the class also has on_editor_trigger, the popup is clickable and gets a ▶ marker.

Step 3: on_editor_trigger(pos) builds the dialog

This method runs when you click the calltip. pos marks the call in the editor, and you pass it on unchanged to two helper functions:

  • editor_get_call_args(pos) returns the current argument text

  • editor_replace_call_args(pos, text) replaces it

parse_arguments() from pyscadforms turns the argument text into a dict. That is how the form gets pre-filled with the values already in your code:

known, unknown = parse_arguments(box, editor_get_call_args(pos))

Two tiny helper functions create the fields:

def spin(name, default):
    w = QtWidgets.QDoubleSpinBox()
    w.setRange(0.5, 500)
    w.setValue(known.get(name, default))
    form.addRow(name, w)
    return w

length = spin("length", 80)
...
hollow = check("hollow", True)
notch  = check("notch", False)

Step 4: Things a plain parameter list can't do

Because this is a real Qt dialog, fields can react to each other. A notch only makes sense in a hollow box, and CubePreview (also from pyscadforms) draws a small 3D outline that follows the dimensions as you type:

def update():
    notch.setEnabled(hollow.isChecked())
    preview.set_size(length.value(), width.value(), height.value())

Step 5: Write the result back

if dialog.exec() == QtWidgets.QDialog.DialogCode.Accepted:
    parts = [f"length={length.value():g}", ..., f"notch={notch.isChecked()}"]
    parts += [f"{k}={v!r}" for k, v in unknown.items()]
    editor_replace_call_args(pos, ", ".join(parts))

:g turns 80.0 into 80. unknown holds arguments that aren't in the signature. They are written back instead of being silently dropped.

Step 6: Where the class has to live

The class must be loaded at startup and stay around for the whole session, which means .pythonscadrc or a library it imports. Save the code as boxform.py, for example in ~/pythonscad-lib/, and add this to .pythonscadrc (~/.config/PythonSCAD/ on Linux, ~/Library/Application Support/PythonSCAD on macOS, %LOCALAPPDATA%\PythonSCAD on Windows):

import sys, os
sys.path.insert(0, os.path.expanduser("~/pythonscad-lib"))

from pythonscad import *
from boxform import box

Then restart PythonSCAD, because .pythonscadrc is only read at startup.

Using it

New call: type box(, the calltip appears, click it, fill in the form, press OK. The line becomes

box(length=120, width=60, height=40, wall=2, hollow=True, notch=True).show()

Editing an existing line later: put the cursor anywhere between the parentheses of the box(...) call and press Ctrl+Shift+Space (on macOS Control+Shift+Space). The calltip comes back, and clicking it opens the form pre-filled with the current values.

If no calltip appears at all, check that autocompletion is switched on in the editor preferences. Calltips are tied to it.

Pitfalls

  • Don't define the class only in your script. That works only some of the time, depending on render order. Use .pythonscadrc.

  • Shadowing a built-in (e.g. your own cube class): save the original first (_native_cube = cube) and call _native_cube inside __new__, or it recurses into itself.

  • Qt5 builds have no PyQt. There you get the normal calltip, and box(...) still works as a plain function.

Full listing: boxform.py

"""boxform.py - a parametric box with an interactive PyQt6 form."""
from PyQt6 import QtWidgets, sip
from pythonscad import *
from pyscadforms import parse_arguments, CubePreview


class box:
    @staticmethod
    def get_calltip():
        return "box(length, width, height, wall, hollow, notch)"

    def __new__(cls, length=80, width=50, height=30, wall=2,
                hollow=True, notch=False):
        body = cube([length, width, height])
        if hollow:
            cavity = cube([length - 2*wall, width - 2*wall, height])
            body -= cavity.translate([wall, wall, wall])
            if notch:
                cut = cylinder(r=height/4, h=wall*3, center=True, fn=48)
                body -= cut.rotate([90, 0, 0]).translate([length/2, wall/2, height])
        return body

    @staticmethod
    def on_editor_trigger(pos):
        mw = sip.wrapinstance(mainwindow_ptr(), QtWidgets.QMainWindow)
        known, unknown = parse_arguments(box, editor_get_call_args(pos))

        dialog = QtWidgets.QDialog(mw)
        dialog.setWindowTitle("box")
        layout = QtWidgets.QHBoxLayout(dialog)
        form = QtWidgets.QFormLayout()
        layout.addLayout(form)
        preview = CubePreview(dialog)
        layout.addWidget(preview)

        def spin(name, default):
            w = QtWidgets.QDoubleSpinBox()
            w.setRange(0.5, 500)
            w.setValue(known.get(name, default))
            form.addRow(name, w)
            return w

        def check(name, default):
            w = QtWidgets.QCheckBox()
            w.setChecked(known.get(name, default))
            form.addRow(name, w)
            return w

        length = spin("length", 80)
        width = spin("width", 50)
        height = spin("height", 30)
        wall = spin("wall", 2)
        hollow = check("hollow", True)
        notch = check("notch", False)

        def update():
            notch.setEnabled(hollow.isChecked())   # a notch needs a hollow box
            preview.set_size(length.value(), width.value(), height.value())

        for w in (length, width, height):
            w.valueChanged.connect(update)
        hollow.toggled.connect(update)
        update()

        buttons = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.StandardButton.Ok
            | QtWidgets.QDialogButtonBox.StandardButton.Cancel
        )
        buttons.accepted.connect(dialog.accept)
        buttons.rejected.connect(dialog.reject)
        form.addRow(buttons)

        if dialog.exec() == QtWidgets.QDialog.DialogCode.Accepted:
            parts = [f"length={length.value():g}", f"width={width.value():g}",
                     f"height={height.value():g}", f"wall={wall.value():g}",
                     f"hollow={hollow.isChecked()}", f"notch={notch.isChecked()}"]
            parts += [f"{k}={v!r}" for k, v in unknown.items()]
            editor_replace_call_args(pos, ", ".join(parts))

Going further

The same pattern works for any design: a gear with module and tooth count, a hinge, or a polygon with a drawing canvas. That last one ships with PythonSCAD in pyscadforms.py and is a great place to look for more ideas. Docs: pythonscad.org → Development → "Extend Your Design with an Interactive Form".

See a demo at: https://www.youtube.com/watch?v=t5pk9XBUL_I

I'd love to see the forms you build. Post screenshots!


r/OpenPythonSCAD • • Jul 30 '25

Single continuous line print (inspirational)

5 Upvotes

r/OpenPythonSCAD • • Mar 07 '26

Survey of machine ownership/software usage on the Google Group

Thumbnail groups.google.com
3 Upvotes

r/OpenPythonSCAD • • Mar 10 '26

PythonSCAD v0.18.0 Released

7 Upvotes

Hi everyone,

We're happy to announce PythonSCAD v0.18.0. Unfortunately, v0.17.0 had a serious bug: the app wouldn't start on many Windows and macOS systems. We've fixed that in this release. Because we were already working on the next update, v0.18.0 also includes several other improvements — so it's both the fix and a solid update.

Windows and macOS: App Starts Correctly Again

If you tried v0.17.0 on Windows or macOS and the app failed to launch (or showed an error like 0xc0000142), the problem was with how the installers were built: they only worked on a narrow set of CPUs. We've fixed the build process so the Windows and macOS packages now run on a much wider range of computers. If v0.17.0 didn't work for you, please use v0.18.0.

Better Light and Dark Themes

Light and dark mode now behave correctly on all platforms. On Windows, menu text in Light Mode is no longer invisible. On Linux, the theme you choose (including "Auto – follow system") is respected properly, even after restart. You should see consistent, readable themes everywhere.

Dialog and Interface Fixes

Save dialogs, and other pop-ups no longer flicker on some setups (especially when using Qt5). We've also cleaned up compatibility with newer Qt versions so the app stays stable and warning-free.

PyPI Coming Soon

We've laid the groundwork to publish PythonSCAD on PyPI. Soon you'll be able to install it with pip install pythonscad or use it as a dependency in your Python projects — we'll announce when that's live.

Documentation

The rendervars() function (for controlling the 3D view from Python) is now documented in the cheat sheet and tutorial, with examples.

Downloads

Pre-built packages are available for Linux (AppImage, .deb, .rpm), macOS (DMG), and Windows (installer and zip):

https://pythonscad.org/downloads/

As always, we'd love to hear from you — feedback and bug reports are welcome!


r/OpenPythonSCAD • • Mar 31 '25

Named bodies in export

4 Upvotes

Hey friends,

I have just today discovered PythonSCAD (after yesterday discovering OpenSCAD ;), I love the philosophy of both projects, as I am trying to create fully parametric models all the way to slicing.

I have written this script: https://pastebin.com/eGh68mwN

It works correctly but the exported body names in the 3mf file do not appear to match the keys in the dictionary. Are they supposed to? Bambu Slicer reads them as "OpenSCAD Model". The colors also do not transfer, but I did not actually expect that to work.

Thanks friends, even without this feature this has saved me so much time from trying to do the same thing in traditional CAD.


r/OpenPythonSCAD • • Jul 16 '25

Installing 3rd party/arbitrary Python libraries into Windows

4 Upvotes

given that the Windows version (and others?) now have an internal Python, this becomes something of an issue.

It used to work to e.g., install a library into the "main" Python and then access it from w/in OpenPythonSCAD, but now an installed library cannot be seen from w/in OPS, and attempting to install one using code:

import os, sys

os.system(sys.executable + '-m pip install -user gscrib')

doesn't seem to work since the test file responds with:

Parsing design (AST generation)... Running Python 3.12.9 without venv. ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'gscrib'

Is anyone else trying to use things other than sys and math (which I believe still work?)

(this is with the new 2025-07-15)


r/OpenPythonSCAD • • Jun 01 '25

How do I do vector math cleanly?

7 Upvotes

My OpenSCAD code tends to have a lot of vector math in it. While I was setting up my first PythonSCAD project I came to the realization that Python can't do vector math the same way as OpenSCAD, at least not intuitively. Looking around, it looks like numpy is my best bet for doing vector math, but every vector needs to have tolist() on the end of it or it can't be interpreted.

Here's a simplified example of what my OpenSCAD code might look like:

vec_n=vec/norm(vec);

scalar=12;

translate(scalar*vec_n)
cube(5,center=true);

And here's how I got it to work in PythonScad:

from openscad import *
import numpy as np

vec=np.array([5,4,3]);
vec_n=vec/np.linalg.norm(vec);

scalar=12;

c=cube(5,center=True)
c=c.translate((scalar*vec_n).tolist())
c.show();

Is there anyway to make it work without all these references to numpy? Or at the very least, without having to call tolist() every time I translate something?


r/OpenPythonSCAD • • Apr 01 '25

Thoughts on updating the wiki (or some other document?) to include missing(all) commands?

Thumbnail old.reddit.com
3 Upvotes

r/OpenPythonSCAD • • Jul 22 '25

Using textures to create a flower

3 Upvotes

This small sketch uses quite some new features of PythonSCAD.

A new paramter to polyhedron is colors where you can speciffy individual colors for each face. Result is a single tile only and its not manifold, but who hinders us to place these tiles in a matrix using python list comprehension. The "concat" function happily combines them to one polyhedon only and wrap can wrap them around a virtual circle. The result mainly describing the perimeter of the flower is not watertight at all, but who cares. The module "repair" makes a perfectly watertright solid from it using gray color.

(the gap is intentionally big, but of course you can make it way smaller and unnoticable)

We are not dependent on watertight solids anymore!

Top orange cone and the trunk ist just decoration. Source code is here: https://bpa.st/LTTQ with a total of 11 lines.

But all these new features makes it super easy to make own textures. I envision a walls of a house made from brick ...


r/OpenPythonSCAD • • Feb 26 '26

Added DXF layer support to Gcodepreview

3 Upvotes

Yeah, I should use ezdxf or something... anyway, it's in, and it works, and it's colour-coded.

https://github.com/WillAdams/gcodepreview

for the curious.


r/OpenPythonSCAD • • Sep 29 '26

PythonSCAD 1.2: `patch()` — a completely new way to build solids from freeform surfaces (with holes!)

7 Upvotes

Hey everyone, loft just got merged into PythonSCAD, and with it comes a new primitive I'm pretty excited about: patch(). ![patch() result — tube wall with tap holes cut directly into the surface]

The problem it solves

In classic OpenSCAD/CSG modeling, if you want a curved wall with holes in it — say, a tube with a couple of mounting taps drilled through — you build the tube, build the holes as separate solids, and subtract them. That works, but it gets slow, fragile, and numerically messy as soon as the geometry gets organic: curved shells, freeform surfaces, holes that sit close to edges or to each other. patch() skips the boolean-subtraction step entirely. You describe the surface directly — an outer boundary curve, plus any number of holes cut into it — and patch() triangulates the whole thing as one clean, watertight mesh from the start. No CSG needed for the holes.

What it looks like in practice

wall1 = patch(r1, holes=[r0, tap1, tap2], grid_spacing_uv=3)

Check result at https://imgur.com/a/fbY1Jon

Here r1 is the outer boundary of a tube wall, and r0, tap1, tap2 are hole outlines (in this case two small circular tap holes) cut directly into that wall. grid_spacing_uv controls the mesh resolution. One call, one clean surface — taps included. Define 2,5d "interfaces" in space and create partches between these. use concat to create a watertight surrface from multiple patches to create a solid which can optionally further processed by CSG operations

Under the hood

patch() builds its own local UV parametrization of the surface (with proper handling of periodic/wrap-around cases like tube walls), runs a custom incremental Delaunay triangulation, and does robust inside/outside testing against the hole boundaries — including the tricky edge cases where a hole's boundary is exactly tangent to a triangulation ray (a classic point-in-polygon pitfall that's easy to get subtly wrong). The result is a mesh that stays clean even for holes sitting right at a surface's curvature extremes.

Why this matters

  • Freeform / organic surfaces with cutouts, without fighting CSG robustness issues

  • Faster and more predictable than difference() on curved geometry

  • Opens the door to proper "patch modeling" workflows (think: surface-based CAD, not just solid CSG) directly in Python This is part of the bigger loft feature landing in PythonSCAD 1.2. Give it a spin and let me know what you build with it! GitHub: https://github.com/pythonscad/pythonscad


r/OpenPythonSCAD • • May 01 '25

Hungry for new features ?

5 Upvotes

PythonSCAD is constantly adding new features.

Right now enhancing 2D world and expanding to 3D

Note that the imported 2D shape is fully colored and just converted to 3D in the end


r/OpenPythonSCAD • • Apr 12 '25

Significance of Edit | Preferences | Python | Network Import List?

3 Upvotes

Is it now necessary to list files there so as to indicate that they are allowed to be imported?

Apparently:

nimport("https://raw.githubusercontent.com/WillAdams/gcodepreview/refs/heads/main/gcodepreview.py")

doesn't work anymore:

ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'gcodepreview'


r/OpenPythonSCAD • • Jun 13 '25

Geometric shapes vs. variables and Union vs. lists

Thumbnail old.reddit.com
5 Upvotes

r/OpenPythonSCAD • • Aug 08 '26

Package management, Gridfinity and PythonSCAD

15 Upvotes

Without much fanfare we recently published PythonSCAD to PyPI. It was buried somewhere in a release announcement.

However, I wanted to showcase how amazing this is and how easy this makes it to use PythonSCAD in your own projects.

I've ported the awesome Gridfinity Rebuilt in OpenSCAD project by GitHub User kennetek (which is an implementation of the great original Gridfinity specification published by Zack Friedmann) over to PythonSCAD.

It is available on GitHub and itself published to PyPI as well.

So now you can just create local Python venv, install the library with pip and use it:

nomike@scrooge:/tmp/psgfd$ python3 -m venv .venv && source .venv/bin/activate

(.venv) nomike@scrooge:/tmp/psgfd$ pip install pythonscad-gridfinity
...

(.venv) nomike@scrooge:/tmp/psgfd$ cat simple_bin.py 
from pythonscad import *
from gridfinity import GridfinityBaseplate, GridfinityBin, HoleOptions

bp = GridfinityBaseplate(2, 2, style="weighted",
                         hole_options=HoleOptions(magnet_hole=True))
export(bp.render().color("SteelBlue"), "baseplate.stl")

(.venv) nomike@scrooge:/tmp/psgfd$ python3 simple_bin.py 

(.venv) nomike@scrooge:/tmp/psgfd$ ls -lah baseplate.stl 
-rw-rw-r-- 1 nomike nomike 809K Aug  9 00:28 baseplate.stl

As seen in pythonscad-gridfinity you can use a section in pyproject.toml to depend on pythonscad, but you can also just put it into your requirements.txt, use uv or whatever tickles your fancy.

This is the kind of package management which OpenSCAD tried to get for ages. But as we use Python as a basis, we don't have to invent it. It already exists in the form of pip, PyPI and the whole Python ecosystem.

This is very exciting and I'm already curious what awesome things you peeps are going to come up with.

Link your projects in the comments or post them in a new thread and share your creations with others.


r/OpenPythonSCAD • • Dec 28 '25

Initial support of Full Control G-code in gcodepreview by way of OpenPythonSCAD

Thumbnail
github.com
7 Upvotes

r/OpenPythonSCAD • • Jun 22 '25

How to generate a transformation matrix quickly

5 Upvotes

I thought I had seen that I could output a series of applied transforms as a compost matrix for use with multmatrix, but I can't find it again in the documentation. I don't particularly need it, but it's bugging me that I so vividly remember having seen it somewhere.

Edit: I think I've got it. object.origin will return the transformation matrix. None of the documentations I could find mentioned this. Align just looks to just use matrixes as its inputs, and performs a composite of two multmatrix moves for the two inputs. Additionally for a given transformation matrix of TRANS, the following code works, TRANS=rotx(TRANS,45) and similar code will work. But TRANS.rotx(45) is not supported.


r/OpenPythonSCAD • • Apr 28 '25

Perhaps a turtle could lead the way?

Thumbnail
docs.python.org
2 Upvotes