Re: What't the alternative to rotate_extrude?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: What't the alternative to rotate_extrude?

Juan C.Cilleruelo
rotate_extrude warns it is going to be obsolete in next versions, but
what is going to be the alternative technique?

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: What't the alternative to rotate_extrude?

cacb
On 24.12.2020 08:58, Juan C.Cilleruelo wrote:
> rotate_extrude warns it is going to be obsolete in next versions, but
> what is going to be the alternative technique?

I think you are looking at a bug. Consider the code below in alternative
variants A and B

Variant A
=============
rotate_extrude(angle=45)
    translate([20,0,0])
    circle(5);


Variant B
=============
rotate_extrude(45)
    translate([20,0,0])
    circle(5);


Variant A works fine providing a 45 degree segment.

Variant B produces a weird claim about reading files in rotate_extrude,
and no result (OpenSCAD version 2019.05):

Parsing design (AST generation)...
Saved backup file:
/home/ca/.local/share/OpenSCAD/backups/rotate-backup-nSL14156.scad
Compiling design (CSG Tree generation)...
DEPRECATED: Support for reading files in rotate_extrude will be removed
in future releases. Use a child import() instead.
Rendering Polygon Mesh using CGAL...
Geometries in cache: 4
Geometry cache size in bytes: 9904
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0 hours, 0 minutes, 0 seconds
Rendering finished.

So I am guessing your code (that you did not share) is similar to
Variant B ?

Apparently, OpenSCAD thinks rotate_extrude(45) is means
rotate_extrude(file=45) instead of rotate_extrude(angle=45) which is
kind of weird.

Carsten Arnholm

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: What't the alternative to rotate_extrude?

MichaelAtOz
Administrator
In reply to this post by Juan C.Cilleruelo
Juan, please do not reply to another thread with a new topic.
You replied to my post 'Re: [OpenSCAD] Render and F6' with your
new subject 'Re: What't the alternative to rotate_extrude?'.
But because the email history has a tag, it gets posted to the original
thread.

If you want to raise a new topic, create a new email to
[hidden email] with a new subject.

I have moved your post in the forum.

RE your question, I note the wiki says "You must use parameter names due to
a backward compatibility issue." so use angle=



-----
OpenSCAD Admin - email* me if you need anything,  or if I've done something stupid...

* on the Forum, click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
OpenSCAD Admin - email* me if you need anything, or if I've done something stupid...
* on the Forum, click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain;
to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: What't the alternative to rotate_extrude?

Juan C.Cilleruelo
Yes. I saw it. It was a mistake! Sorry!

:(

On 24/12/2020 10:56, MichaelAtOz wrote:

> Juan, please do not reply to another thread with a new topic.
> You replied to my post 'Re: [OpenSCAD] Render and F6' with your
> new subject 'Re: What't the alternative to rotate_extrude?'.
> But because the email history has a tag, it gets posted to the original
> thread.
>
> If you want to raise a new topic, create a new email to
> [hidden email] with a new subject.
>
> I have moved your post in the forum.
>
> RE your question, I note the wiki says "You must use parameter names due to
> a backward compatibility issue." so use angle=
>
>
>
> -----
> OpenSCAD Admin - email* me if you need anything,  or if I've done something stupid...
>
> * on the Forum, click on my MichaelAtOz label, there is a link to email me.
>
> Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
>
> --
> Sent from: http://forum.openscad.org/
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org