Slicer Discord
OpenScad Virtual Machine - v0.2 – Modèle 3D imprimable de Thingiverse Thingiverse

OpenScad Virtual Machine - v0.2

11 Téléchargements
12 Likes
0 Makes
Voir le modèle
Moving right along, adding some more convenience...

This thing builds on the last version of the OpenScad Virtual machine by adding a few convenience functions:

CUBE(size, center);
CYLINDER(r1, r2, h, center);
SPHERE(r);

And a couple for the CSG operations as well:

UNION(parts);
DIFFERENCE(part1, part2);

I also changed the 'CSG' module name to 'EXEC' which seems more appropriate.

So, now you can do this:

EXEC(UNION([CUBE([10,10,10]), CYLINDER(r1=6, r2=5, h=12)]);

That pretty much makes it look more like what you'd write in normal OpenScad. So, why bother? It's more direct, or 'imperative'. This style might match some people's style better than the strictly hierarchical way of doing things.

If you want to get really technical, this style is like functional programming. Since almost everything, other than EXEC() is a function, without side effects, the 'functions' can be easily passed around as parameters to other functions and modules.

Still don't ha
Source
Thingiverse
Ce qu'il faut pour imprimer: Débutant Confiance faible
Monobloc
Supports 1/3
Assemblage 0/3
Réglages 1/3
Taille du plateau 0/3
Post-traitement 0/3
Imprimante
FDM / FFF
Format de fichier
STL
Matériau
Logiciel
Cura, PrusaSlicer ou similaire
Pas encore d'évaluations
Pas encore de commentaires – soyez le premier !

Modèles similaires

6 Suggestions
Feed Blog Slicer Calculateur Recherche par image Soumettre Contact Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Ajouter à la collection