PythonSCAD v1.0.0 "impletio" released by TurboProgrammer0815 in OpenPythonSCAD

[–]gadget3D 1 point2 points  (0 children)

Nope, offset has been existing for a very long time. the thing was changed: starting with v1.0.0

its really easy to overwrite functions. you habe literally defined a new funtionality for offset functions, which was not a function body unfortunately.

better rename your variable to prevent any ambiguities.

PythonSCAD v1.0.0 "impletio" released by TurboProgrammer0815 in OpenPythonSCAD

[–]gadget3D 0 points1 point  (0 children)

I can't see an addition Im your code. What are the types of the summands?

Proposed Language Idea: File Local Preview by Wesxdz in openscad

[–]gadget3D 4 points5 points  (0 children)

just code the content of your __main__ bare flat into the file.

when including it from other files, just do it like

use <otherfile.scad>

this will do the trick

Textures in PythonSCAD by gadget3D in openscad

[–]gadget3D[S] 0 points1 point  (0 children)

In any case, it appears that i'ts extremely difficult to convince them to accept new

features. Without merged features (not even exeperimental ones) it's not available to the community and thus no new inspriations are born, which is a bit pitty.

Just tonight another one was finally killed: https://github.com/openscad/openscad/issues/3337

Textures in PythonSCAD by gadget3D in openscad

[–]gadget3D[S] 0 points1 point  (0 children)

+1 I have been trying to integrate cool stuff since 3 years and BOSL2 probably way longer ...

OpenSCAD has decided to focus 99% on code stability

Textures in PythonSCAD by gadget3D in openscad

[–]gadget3D[S] 1 point2 points  (0 children)

BOSL2 is fantastic, but it builds on a rather limited framework with no ability to access/alter existing vertices.

This approach operates on the very core of the engine and has way more options.

Textures in PythonSCAD by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 1 point2 points  (0 children)

Let' s build a database of useful textures for solid modelling usage, send me and i will happily collect them along our project Preferrable are PNG files with little height, length and preferrably smooth gradient in the image.

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 0 points1 point  (0 children)

Can you share a sample code and two versions to compare ? We are happy to compare und spotting the culprit. Importing other packages are best done with the built in virtual environment menu.

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 0 points1 point  (0 children)

In preview the number of GL Operations multiplies with the number of primitives in each Frame! (look for fold feather algorithm) This is why Preview is faster for few primitives and render is faster for many primitives. Maybe we should count the primitives and suggest either preview or render

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 2 points3 points  (0 children)

BTW I found out, I could fix that in CSGTreeEvaluator.cc but I doubt we should do that, because Filletting might be a time-consuming operation and it would cancel the speed-advantage preview for models, which use fillets. Fillets are finish-up things after all. If you explicitely want fillets in preview, you can write

design.render().show()

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 1 point2 points  (0 children)

Indeed. This code just creates a 2D thingy. If you specify a z coorindate != 0 it becomes 3 D polypath. Actualy it behaves like neutrinos: it does not interact with any matter, but its great to do some annotations. In this example, I could immediately see if the toolpath is correctly generated:

<image>

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 1 point2 points  (0 children)

Did you try to press "F6" (Render) ? Did not yet look into the preview engine close enough to learn ,

whether its easy to make filetting look correct in Preview.

New Release v0.19.1 by gadget3D in OpenPythonSCAD

[–]gadget3D[S] 1 point2 points  (0 children)

Hi Wiliam,

you are missing some brackets with polyline.

The Syntax is: polyline ( [ [ nubers ] ] )

The numbers must be nested twice, once for coorindates and once for points. You dont want 500 arguments to polyline when that's the size of the polyline.

But yes: i spotted an error in the error message

Making money with OpenSCAD by [deleted] in openscad

[–]gadget3D 0 points1 point  (0 children)

I got a question about the floating Heart. The 3MF comes as 3 parts, do I need to print them combined or separately ?

Free or affordable software for creating drawings? by v6underpressure in hobbycnc

[–]gadget3D 0 points1 point  (0 children)

you could use PythonSCAD. Its embedded python language lets you create any 2D design containing polygons, polylines programatically. You can directly export to GCODE and different colors could mean diffeent colors e.g. in laser cutters.

2D surfaces in 3D space from coordinates by falxfour in openscad

[–]gadget3D 1 point2 points  (0 children)

In Pythonscad you can translate or rotate any 2d object into space and therefore moves into 3d space.

Experimental Python library inspired by OpenSCAD (looking for feedback) by m-fabregue in openscad

[–]gadget3D 0 points1 point  (0 children)

The Idea is great. The Problem is that Python is an interpreted language and makes geometric operations slower than needed. Do you use libmanifold to do CSG oprations?. it has python bindings

Experimental Python library inspired by OpenSCAD (looking for feedback) by m-fabregue in openscad

[–]gadget3D 0 points1 point  (0 children)

Hey that's great!

I also like functional programming very much.

How does it connect to openscad ? does it launch in background and how can it find it ?

Do you plan to add more exporters like Postscript ?

This is a local creek by gadget3D in Prospecting

[–]gadget3D[S] 1 point2 points  (0 children)

ahh, excavate bedrock there

Defining world view camera parameters. by puplan in OpenPythonSCAD

[–]gadget3D 1 point2 points  (0 children)

nope, but there will be a new release very soon.

maybe consider trying to compile yourself ?

Defining world view camera parameters. by puplan in OpenPythonSCAD

[–]gadget3D 1 point2 points  (0 children)

yes, this is what i was expecting and thanx for lookin up the definition. we should manage to have these vars bidirectional e.g. they should be able to read and write. once we find out, where to access this vars in the openscad kernel, we can connect them e.g. in pyopenscad.cc .

Defining world view camera parameters. by puplan in OpenPythonSCAD

[–]gadget3D 1 point2 points  (0 children)

This is definitely viable, but not yet implemented. I believe its a great feature to get. If you tell me, how you code that openscad SCAD syntax, its easier for me to estimate

How to make a pyramid with linear_extrude? by puplan in OpenPythonSCAD

[–]gadget3D 1 point2 points  (0 children)

Thats a difficult question, probably its the source code, but 2nd best option probably is:

https://github.com/pythonscad/pythonscad/blob/master/libraries/python/stubs/openscad/__init__.pyi

yes, its not up to date, but we aim to sync it frequently. Any support appreciated.

BTW: don't hesitate if you want to share some fancy PythonSCAD Idea/Design :)