Building a list of vectors

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

Building a list of vectors

sclaes
Hello,

Why is it not possible (AFAIK) to build a list? IOW why is there no append?
It would be very useful to compute a list of vectors (e.g. to define a polygon)

p = [[0,0]];
for (n=[0:14]) {
        p.append([(n+1)/10,sqrt(pow((n+1)/10,2)-1)]);
}
p.append([0,sqrt(pow(1.5,2))]);

rotate_extrude($fn=res) {
        polygon( points=p );
}
mirror([0,0,1]) {
        rotate_extrude($fn=res) {
                polygon( points=p );
        }
}

BTW: are there any plans to add 'real' variables to openscad?


Any thoughts/suggestions?

TIA
Stefaan
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

MichaelAtOz
Administrator
If you care to download the development snapshot you can have concat(), you need to enable it via preferences.

https://github.com/openscad/openscad/pull/579
Admin - email* me if you need anything,
or if I've done something stupid...
* 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.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

nophead
Not sure what you are trying to achieve as you seem to be taking the square root of negative numbers. Here is how to build a list with concat and recursion.

function f(i, n) = i < n ? concat([[(i+1)/10,sqrt(pow((i+1)/10,2)-1)]], f(i + 1, n))
                         : [[0,sqrt(pow(1.5,2))]];

p = f(0, 14);
res = 20;

echo(p);

rotate_extrude($fn=res) {
        polygon( points=p );
}

mirror([0,0,1]) {
        rotate_extrude($fn=res) {
                polygon( points=p );
        }
}





On 10 March 2014 12:53, MichaelAtOz <[hidden email]> wrote:
If you care to download the development snapshot you can have concat(), you
need to enable it via preferences.

https://github.com/openscad/openscad/pull/579



--
View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
In reply to this post by MichaelAtOz
I tried to add the PPA to the list of repositories, but I get an error:
$ sudo add-apt-repository ppa:chrysn/opencad
Cannot add PPA: 'No JSON object could be decoded'.

I googled this up, but I didn't find any solution. I'm using Linux
Mint version 16 (Petra)

BTW: do I have to remove the current version of OpenSCAD that I
installed with apt-get or can I install the development version
alongside the current version?

Regards,
Stefaan


On 10 March 2014 13:53, MichaelAtOz <[hidden email]> wrote:

> If you care to download the development snapshot you can have concat(), you
> need to enable it via preferences.
>
> https://github.com/openscad/openscad/pull/579
>
>
>
> --
> View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
In reply to this post by nophead
pow((n+1)/10,2) is always greater than 1, so pow((n+1)/10,2) is never negative.
( for (n=[0:15] {   )

Thanks a lot for adapting the example. I will try to install the
development version.

Regards,
Stefaan


On 10 March 2014 14:04, nop head <[hidden email]> wrote:

> Not sure what you are trying to achieve as you seem to be taking the square
> root of negative numbers. Here is how to build a list with concat and
> recursion.
>
> function f(i, n) = i < n ? concat([[(i+1)/10,sqrt(pow((i+1)/10,2)-1)]], f(i
> + 1, n))
>                          : [[0,sqrt(pow(1.5,2))]];
>
> p = f(0, 14);
> res = 20;
>
> echo(p);
>
> rotate_extrude($fn=res) {
>         polygon( points=p );
> }
>
> mirror([0,0,1]) {
>         rotate_extrude($fn=res) {
>                 polygon( points=p );
>         }
> }
>
>
>
>
>
> On 10 March 2014 12:53, MichaelAtOz <[hidden email]> wrote:
>>
>> If you care to download the development snapshot you can have concat(),
>> you
>> need to enable it via preferences.
>>
>> https://github.com/openscad/openscad/pull/579
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
>> Sent from the OpenSCAD mailing list archive at Nabble.com.
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

nophead
When n is less than 9 pow((n+1)/10,2) is less than 1. For example when n is zero it is 0.01. 


On 10 March 2014 16:36, Stefaan Claes <[hidden email]> wrote:
pow((n+1)/10,2) is always greater than 1, so pow((n+1)/10,2) is never negative.
( for (n=[0:15] {   )

Thanks a lot for adapting the example. I will try to install the
development version.

Regards,
Stefaan


On 10 March 2014 14:04, nop head <[hidden email]> wrote:
> Not sure what you are trying to achieve as you seem to be taking the square
> root of negative numbers. Here is how to build a list with concat and
> recursion.
>
> function f(i, n) = i < n ? concat([[(i+1)/10,sqrt(pow((i+1)/10,2)-1)]], f(i
> + 1, n))
>                          : [[0,sqrt(pow(1.5,2))]];
>
> p = f(0, 14);
> res = 20;
>
> echo(p);
>
> rotate_extrude($fn=res) {
>         polygon( points=p );
> }
>
> mirror([0,0,1]) {
>         rotate_extrude($fn=res) {
>                 polygon( points=p );
>         }
> }
>
>
>
>
>
> On 10 March 2014 12:53, MichaelAtOz <[hidden email]> wrote:
>>
>> If you care to download the development snapshot you can have concat(),
>> you
>> need to enable it via preferences.
>>
>> https://github.com/openscad/openscad/pull/579
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
>> Sent from the OpenSCAD mailing list archive at Nabble.com.
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
Of course. Silly me. :-/  It should have been pow(n/10+1,2)... which
is always greater than 1

Thanks for pointing this out.

Regards,
Stefaan

On 10 March 2014 18:24, nop head <[hidden email]> wrote:

> When n is less than 9 pow((n+1)/10,2) is less than 1. For example when n is
> zero it is 0.01.
>
>
> On 10 March 2014 16:36, Stefaan Claes <[hidden email]> wrote:
>>
>> pow((n+1)/10,2) is always greater than 1, so pow((n+1)/10,2) is never
>> negative.
>> ( for (n=[0:15] {   )
>>
>> Thanks a lot for adapting the example. I will try to install the
>> development version.
>>
>> Regards,
>> Stefaan
>>
>>
>> On 10 March 2014 14:04, nop head <[hidden email]> wrote:
>> > Not sure what you are trying to achieve as you seem to be taking the
>> > square
>> > root of negative numbers. Here is how to build a list with concat and
>> > recursion.
>> >
>> > function f(i, n) = i < n ? concat([[(i+1)/10,sqrt(pow((i+1)/10,2)-1)]],
>> > f(i
>> > + 1, n))
>> >                          : [[0,sqrt(pow(1.5,2))]];
>> >
>> > p = f(0, 14);
>> > res = 20;
>> >
>> > echo(p);
>> >
>> > rotate_extrude($fn=res) {
>> >         polygon( points=p );
>> > }
>> >
>> > mirror([0,0,1]) {
>> >         rotate_extrude($fn=res) {
>> >                 polygon( points=p );
>> >         }
>> > }
>> >
>> >
>> >
>> >
>> >
>> > On 10 March 2014 12:53, MichaelAtOz <[hidden email]> wrote:
>> >>
>> >> If you care to download the development snapshot you can have concat(),
>> >> you
>> >> need to enable it via preferences.
>> >>
>> >> https://github.com/openscad/openscad/pull/579
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
>> >> Sent from the OpenSCAD mailing list archive at Nabble.com.
>> >> _______________________________________________
>> >> OpenSCAD mailing list
>> >> [hidden email]
>> >> http://rocklinux.net/mailman/listinfo/openscad
>> >> http://openscad.org - https://flattr.com/thing/121566
>> >
>> >
>> >
>> > _______________________________________________
>> > OpenSCAD mailing list
>> > [hidden email]
>> > http://rocklinux.net/mailman/listinfo/openscad
>> > http://openscad.org - https://flattr.com/thing/121566
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
to be really correct: it is always greater than or equal to 1

Regards,
Stefaan


On 10 March 2014 19:24, Stefaan Claes <[hidden email]> wrote:

> Of course. Silly me. :-/  It should have been pow(n/10+1,2)... which
> is always greater than 1
>
> Thanks for pointing this out.
>
> Regards,
> Stefaan
>
> On 10 March 2014 18:24, nop head <[hidden email]> wrote:
>> When n is less than 9 pow((n+1)/10,2) is less than 1. For example when n is
>> zero it is 0.01.
>>
>>
>> On 10 March 2014 16:36, Stefaan Claes <[hidden email]> wrote:
>>>
>>> pow((n+1)/10,2) is always greater than 1, so pow((n+1)/10,2) is never
>>> negative.
>>> ( for (n=[0:15] {   )
>>>
>>> Thanks a lot for adapting the example. I will try to install the
>>> development version.
>>>
>>> Regards,
>>> Stefaan
>>>
>>>
>>> On 10 March 2014 14:04, nop head <[hidden email]> wrote:
>>> > Not sure what you are trying to achieve as you seem to be taking the
>>> > square
>>> > root of negative numbers. Here is how to build a list with concat and
>>> > recursion.
>>> >
>>> > function f(i, n) = i < n ? concat([[(i+1)/10,sqrt(pow((i+1)/10,2)-1)]],
>>> > f(i
>>> > + 1, n))
>>> >                          : [[0,sqrt(pow(1.5,2))]];
>>> >
>>> > p = f(0, 14);
>>> > res = 20;
>>> >
>>> > echo(p);
>>> >
>>> > rotate_extrude($fn=res) {
>>> >         polygon( points=p );
>>> > }
>>> >
>>> > mirror([0,0,1]) {
>>> >         rotate_extrude($fn=res) {
>>> >                 polygon( points=p );
>>> >         }
>>> > }
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On 10 March 2014 12:53, MichaelAtOz <[hidden email]> wrote:
>>> >>
>>> >> If you care to download the development snapshot you can have concat(),
>>> >> you
>>> >> need to enable it via preferences.
>>> >>
>>> >> https://github.com/openscad/openscad/pull/579
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
>>> >> Sent from the OpenSCAD mailing list archive at Nabble.com.
>>> >> _______________________________________________
>>> >> OpenSCAD mailing list
>>> >> [hidden email]
>>> >> http://rocklinux.net/mailman/listinfo/openscad
>>> >> http://openscad.org - https://flattr.com/thing/121566
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > OpenSCAD mailing list
>>> > [hidden email]
>>> > http://rocklinux.net/mailman/listinfo/openscad
>>> > http://openscad.org - https://flattr.com/thing/121566
>>> _______________________________________________
>>> OpenSCAD mailing list
>>> [hidden email]
>>> http://rocklinux.net/mailman/listinfo/openscad
>>> http://openscad.org - https://flattr.com/thing/121566
>>
>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
In reply to this post by MichaelAtOz
How do I download from github?

Regards,
Stefaan


On 10 March 2014 13:53, MichaelAtOz <[hidden email]> wrote:

> If you care to download the development snapshot you can have concat(), you
> need to enable it via preferences.
>
> https://github.com/openscad/openscad/pull/579
>
>
>
> --
> View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

Brad Pitcher
There is a button on the right that says "Download ZIP".

---------
Brad Pitcher


On Mon, Mar 10, 2014 at 11:29 AM, Stefaan Claes <[hidden email]> wrote:
How do I download from github?

Regards,
Stefaan


On 10 March 2014 13:53, MichaelAtOz <[hidden email]> wrote:
> If you care to download the development snapshot you can have concat(), you
> need to enable it via preferences.
>
> https://github.com/openscad/openscad/pull/579
>
>
>
> --
> View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
I was looking at the wrong webpage
(<https://github.com/openscad/openscad/pull/579>) I should have known
that I had to go to <https://github.com/openscad/openscad> instead.

Anyway. I have downloaded the zip. I am now finding out how to build
openscad. There is no makefile. There is no configure script.
Strange... :-/

I will find out. But probably not today.

Regards,
Stefaan


On 10 March 2014 19:31, Brad Pitcher <[hidden email]> wrote:

> There is a button on the right that says "Download ZIP".
>
> ---------
> Brad Pitcher
>
>
> On Mon, Mar 10, 2014 at 11:29 AM, Stefaan Claes <[hidden email]> wrote:
>>
>> How do I download from github?
>>
>> Regards,
>> Stefaan
>>
>>
>> On 10 March 2014 13:53, MichaelAtOz <[hidden email]> wrote:
>> > If you care to download the development snapshot you can have concat(),
>> > you
>> > need to enable it via preferences.
>> >
>> > https://github.com/openscad/openscad/pull/579
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> > http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7192.html
>> > Sent from the OpenSCAD mailing list archive at Nabble.com.
>> > _______________________________________________
>> > OpenSCAD mailing list
>> > [hidden email]
>> > http://rocklinux.net/mailman/listinfo/openscad
>> > http://openscad.org - https://flattr.com/thing/121566
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

tp3
sclaes wrote
Anyway. I have downloaded the zip. I am now finding out how to build
openscad. There is no makefile. There is no configure script.
Strange... :-/
It's using qmake, the main project file is openscad.pro.

For details just scroll down a lot on https://github.com/openscad/openscad
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
In reply to this post by nophead
I tried to use concat() but OpenSCAD crashes when I render (f6) this code

side = 10;

p=[[0,side/sqrt(3),0]];
concat(p,[-side/2,-side/(2*sqrt(3)),0]);
concat(p,[side/2,-side/(2*sqrt(3)),0]);
concat(p,[0,0,side*sqrt(2/3)]);

translate([0,0,-side*sqrt(2/3)/3]) {
        polyhedron( points=p, triangles=[[2,1,3],[1,0,3],[0,2,3],[1,2,0] ]);
}

What's wrong with this?

Any suggestions?

TIA
Stefaan
RGH
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

RGH

I'll bet it's the same problem I had. Try and see if using side/2+0.1 crashes.

Incidentally concat is not on the cheat sheet. Is it documented (I'm on a small phone or I'd try and have a look)?

On 11 Mar 2014 14:37, "sclaes" <[hidden email]> wrote:
I tried to use concat() but OpenSCAD crashes when I render (f6) this code

side = 10;

p=[[0,side/sqrt(3),0]];
concat(p,[-side/2,-side/(2*sqrt(3)),0]);
concat(p,[side/2,-side/(2*sqrt(3)),0]);
concat(p,[0,0,side*sqrt(2/3)]);

translate([0,0,-side*sqrt(2/3)/3]) {
        polyhedron( points=p, triangles=[[2,1,3],[1,0,3],[0,2,3],[1,2,0] ]);
}

What's wrong with this?

Any suggestions?

TIA
Stefaan




--
View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7221.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

tp3
In reply to this post by sclaes
sclaes wrote
I tried to use concat() but OpenSCAD crashes when I render (f6) this code
It's not working that way. concat() returns the combined list, it does not change any existing list.
(see also some examples: http://forum.openscad.org/concat-for-vectors-td6348.html)

It is not in the documentation yet as it's not officially released. It's only available in the dev-snapshots.

It would work like this (note the extra brackets).

side = 10;

p1=[[0,side/sqrt(3),0]];
p2 = concat(p1,[[-side/2,-side/(2*sqrt(3)),0]]);
p3 = concat(p2,[[side/2,-side/(2*sqrt(3)),0]]);
p4 = concat(p3,[[0,0,side*sqrt(2/3)]]);

echo(p1);
echo(p2);
echo(p3);
echo(p4);
translate([0,0,-side*sqrt(2/3)/3]) {
        polyhedron( points=p4, triangles=[[2,1,3],[1,0,3],[0,2,3],[1,2,0] ]);
}

I don't know why it crashes for you with the original code, that does not happen for me, it just generates an empty output.
-- Torsten
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

tp3
tp3 wrote
I don't know why it crashes for you with the original code, that does not happen for me, it just generates an empty output.
I'll take that back :-). The problem is that the result is essentially

polyhedron(points = undef, triangles = [[1, 2, 3]]);

which crashes for me too. I'll create an issue for that...
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes
In reply to this post by sclaes
How can I enable experimental features? I didn't find anything in preferences...

Regards,
Stefaan


On 11 March 2014 19:37, sclaes <[hidden email]> wrote:

> I tried to use concat() but OpenSCAD crashes when I render (f6) this code
>
> side = 10;
>
> p=[[0,side/sqrt(3),0]];
> concat(p,[-side/2,-side/(2*sqrt(3)),0]);
> concat(p,[side/2,-side/(2*sqrt(3)),0]);
> concat(p,[0,0,side*sqrt(2/3)]);
>
> translate([0,0,-side*sqrt(2/3)/3]) {
>         polyhedron( points=p, triangles=[[2,1,3],[1,0,3],[0,2,3],[1,2,0] ]);
> }
>
> What's wrong with this?
>
> Any suggestions?
>
> TIA
> Stefaan
>
>
>
>
> --
> View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7221.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

sclaes

Experimental features should be enabled...

# Make experimental features available
experimental {
  DEFINES += ENABLE_EXPERIMENTAL
}
But I get "WARNING: Ignoring unknown function 'concat'."

Which means experimental features are not enabled. Or do I miss something?

Regards,
Stefaan
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

tp3
# Make experimental features available
experimental {
  DEFINES += ENABLE_EXPERIMENTAL
}
Yes, this makes experimental features available in the application. That is not active for the release builds which is why the release builds also have no "Features" tab in preferences.
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Building a list of vectors

nophead
I don't understand why concat is "experimental". It is simple, it works and makes OpenScad Turing complete, so is fundamental.


On 11 March 2014 19:21, tp3 <[hidden email]> wrote:

> # Make experimental features available
> experimental {
>   DEFINES += ENABLE_EXPERIMENTAL
> }

Yes, this makes experimental features available in the application. That is
not active for the release builds which is why the release builds also have
no "Features" tab in preferences.



-----
-- Torsten
--
View this message in context: http://forum.openscad.org/Building-a-list-of-vectors-tp7190p7228.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
12