SP
Sanjeev Prabhakar
Fri, Aug 26, 2022 4:27 AM
Dear All,
I have experimented with jupyter notebook to calculate points in space and
then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook for
this to work.
Regards
Sanjeev
Dear All,
I have experimented with jupyter notebook to calculate points in space and
then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook for
this to work.
Regards
Sanjeev
J
jon
Fri, Aug 26, 2022 2:09 PM
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
> Dear All,
>
> I have experimented with jupyter notebook to calculate points in space
> and then passing the same to openscad for creating 3d shapes.
>
> Found it to be quite interesting.
>
> Wrote almost all the functions of openscad in jupyter notebook.
>
> you can refer to the page below for few examples:
> https://github.com/sprabhakar2006/openSCAD
>
> you need to have some working knowledge of numpy and jupyter notebook
> for this to work.
>
> Regards
> Sanjeev
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
SP
Sanjeev Prabhakar
Fri, Aug 26, 2022 2:27 PM
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation is
done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many
supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation is
done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many
supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
> I know nothing about numpy nor jupyter notebook. Should I just ignore
> this conversation?
>
>
> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
> > Dear All,
> >
> > I have experimented with jupyter notebook to calculate points in space
> > and then passing the same to openscad for creating 3d shapes.
> >
> > Found it to be quite interesting.
> >
> > Wrote almost all the functions of openscad in jupyter notebook.
> >
> > you can refer to the page below for few examples:
> > https://github.com/sprabhakar2006/openSCAD
> >
> > you need to have some working knowledge of numpy and jupyter notebook
> > for this to work.
> >
> > Regards
> > Sanjeev
> >
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>
J
jon
Fri, Aug 26, 2022 2:32 PM
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points
calculation is done with another software and then these points are
passed on to openscad.
I have found that calculations are much easier in python as there are
many supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just
ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
> I didn't know either few months back.
> It was not very difficult for a person like me who doesn't have much
> background in softwares.
>
> At the same time it's just one of the approach where points
> calculation is done with another software and then these points are
> passed on to openscad.
>
> I have found that calculations are much easier in python as there are
> many supporting libraries.
>
> Thanks
>
>
> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>
> I know nothing about numpy nor jupyter notebook. Should I just
> ignore
> this conversation?
>
>
> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
> > Dear All,
> >
> > I have experimented with jupyter notebook to calculate points in
> space
> > and then passing the same to openscad for creating 3d shapes.
> >
> > Found it to be quite interesting.
> >
> > Wrote almost all the functions of openscad in jupyter notebook.
> >
> > you can refer to the page below for few examples:
> > https://github.com/sprabhakar2006/openSCAD
> >
> > you need to have some working knowledge of numpy and jupyter
> notebook
> > for this to work.
> >
> > Regards
> > Sanjeev
> >
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>
SP
Sanjeev Prabhakar
Fri, Aug 26, 2022 2:54 PM
For rounding, intersection line of 2 prisms is a complex calculation, which
was quite fast as per my understanding and maybe if I have to do the same
in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad ,
later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the
roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and kept
in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation is
done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many
supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
For rounding, intersection line of 2 prisms is a complex calculation, which
was quite fast as per my understanding and maybe if I have to do the same
in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad ,
later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the
roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and kept
in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, <jon@jonbondy.com> wrote:
> Can you give an example of calculations that are easy in python than in
> OpenSCAD?
>
> Jon
>
>
> On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
>
> I didn't know either few months back.
> It was not very difficult for a person like me who doesn't have much
> background in softwares.
>
> At the same time it's just one of the approach where points calculation is
> done with another software and then these points are passed on to openscad.
>
> I have found that calculations are much easier in python as there are many
> supporting libraries.
>
> Thanks
>
>
> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>
>> I know nothing about numpy nor jupyter notebook. Should I just ignore
>> this conversation?
>>
>>
>> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
>> > Dear All,
>> >
>> > I have experimented with jupyter notebook to calculate points in space
>> > and then passing the same to openscad for creating 3d shapes.
>> >
>> > Found it to be quite interesting.
>> >
>> > Wrote almost all the functions of openscad in jupyter notebook.
>> >
>> > you can refer to the page below for few examples:
>> > https://github.com/sprabhakar2006/openSCAD
>> >
>> > you need to have some working knowledge of numpy and jupyter notebook
>> > for this to work.
>> >
>> > Regards
>> > Sanjeev
>> >
>> >
>> > _______________________________________________
>> > OpenSCAD mailing list
>> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>>
>
SP
Sanjeev Prabhakar
Fri, Aug 26, 2022 3:04 PM
a simpler example would be hub_with_post.scad (attached here)
please see the complex radiuses and it would be difficult with pure openscad
On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:
For rounding, intersection line of 2 prisms is a complex calculation,
which was quite fast as per my understanding and maybe if I have to do the
same in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad ,
later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the
roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and
kept in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation
is done with another software and then these points are passed on to
openscad.
I have found that calculations are much easier in python as there are
many supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
a simpler example would be hub_with_post.scad (attached here)
please see the complex radiuses and it would be difficult with pure openscad
On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar <sprabhakar2006@gmail.com>
wrote:
> For rounding, intersection line of 2 prisms is a complex calculation,
> which was quite fast as per my understanding and maybe if I have to do the
> same in openscad it would be difficult to write the code itself.
>
> Although I have written the same in openscad also, but it's not perfect.
>
> Initially I was just copying the functions I have written in openscad ,
> later on I realised the same code can be written much efficiently in numpy.
>
> That's a learning curve.
>
> For example, if you download the wheel_final.scad file, you can see the
> roundings of so many intersection lines.
>
> For this to work file dependencies.scad also need to be downloaded and
> kept in the same folder
>
>
> On Fri, 26 Aug, 2022, 8:02 pm jon, <jon@jonbondy.com> wrote:
>
>> Can you give an example of calculations that are easy in python than in
>> OpenSCAD?
>>
>> Jon
>>
>>
>> On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
>>
>> I didn't know either few months back.
>> It was not very difficult for a person like me who doesn't have much
>> background in softwares.
>>
>> At the same time it's just one of the approach where points calculation
>> is done with another software and then these points are passed on to
>> openscad.
>>
>> I have found that calculations are much easier in python as there are
>> many supporting libraries.
>>
>> Thanks
>>
>>
>> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>>
>>> I know nothing about numpy nor jupyter notebook. Should I just ignore
>>> this conversation?
>>>
>>>
>>> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
>>> > Dear All,
>>> >
>>> > I have experimented with jupyter notebook to calculate points in space
>>> > and then passing the same to openscad for creating 3d shapes.
>>> >
>>> > Found it to be quite interesting.
>>> >
>>> > Wrote almost all the functions of openscad in jupyter notebook.
>>> >
>>> > you can refer to the page below for few examples:
>>> > https://github.com/sprabhakar2006/openSCAD
>>> >
>>> > you need to have some working knowledge of numpy and jupyter notebook
>>> > for this to work.
>>> >
>>> > Regards
>>> > Sanjeev
>>> >
>>> >
>>> > _______________________________________________
>>> > OpenSCAD mailing list
>>> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>>>
>>
AM
Adrian Mariano
Fri, Aug 26, 2022 8:13 PM
An example of calculations that are easier in Python than in OpenSCAD? The
quick answer is any non-trivial calculation. If you want to get serious
about it, basically any calculation that requires real data structures is
essentially impossible in OpenSCAD. So like finding intersections of
polygons can be done efficiently using a line sweep method in a regular
language like python, but you need a tree data structure to organize the
data, and that cannot be implemented in OpenSCAD (efficiently).
On Fri, Aug 26, 2022 at 10:34 AM jon jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation is
done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many
supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
An example of calculations that are easier in Python than in OpenSCAD? The
quick answer is any non-trivial calculation. If you want to get serious
about it, basically any calculation that requires real data structures is
essentially impossible in OpenSCAD. So like finding intersections of
polygons can be done efficiently using a line sweep method in a regular
language like python, but you need a tree data structure to organize the
data, and that cannot be implemented in OpenSCAD (efficiently).
On Fri, Aug 26, 2022 at 10:34 AM jon <jon@jonbondy.com> wrote:
> Can you give an example of calculations that are easy in python than in
> OpenSCAD?
>
> Jon
>
>
> On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
>
> I didn't know either few months back.
> It was not very difficult for a person like me who doesn't have much
> background in softwares.
>
> At the same time it's just one of the approach where points calculation is
> done with another software and then these points are passed on to openscad.
>
> I have found that calculations are much easier in python as there are many
> supporting libraries.
>
> Thanks
>
>
> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>
>> I know nothing about numpy nor jupyter notebook. Should I just ignore
>> this conversation?
>>
>>
>> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
>> > Dear All,
>> >
>> > I have experimented with jupyter notebook to calculate points in space
>> > and then passing the same to openscad for creating 3d shapes.
>> >
>> > Found it to be quite interesting.
>> >
>> > Wrote almost all the functions of openscad in jupyter notebook.
>> >
>> > you can refer to the page below for few examples:
>> > https://github.com/sprabhakar2006/openSCAD
>> >
>> > you need to have some working knowledge of numpy and jupyter notebook
>> > for this to work.
>> >
>> > Regards
>> > Sanjeev
>> >
>> >
>> > _______________________________________________
>> > OpenSCAD mailing list
>> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
SP
Sanjeev Prabhakar
Sat, Aug 27, 2022 12:07 AM
That's correct
It is easier to apply the concept in python maybe a little more efficient.
Another advantage as per me is once the openscad crashes, the data is never
lost.
On Sat, 27 Aug, 2022, 1:43 am Adrian Mariano, avm4@cornell.edu wrote:
An example of calculations that are easier in Python than in OpenSCAD?
The quick answer is any non-trivial calculation. If you want to get
serious about it, basically any calculation that requires real data
structures is essentially impossible in OpenSCAD. So like finding
intersections of polygons can be done efficiently using a line sweep method
in a regular language like python, but you need a tree data structure to
organize the data, and that cannot be implemented in OpenSCAD
(efficiently).
On Fri, Aug 26, 2022 at 10:34 AM jon jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation
is done with another software and then these points are passed on to
openscad.
I have found that calculations are much easier in python as there are
many supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
That's correct
It is easier to apply the concept in python maybe a little more efficient.
Another advantage as per me is once the openscad crashes, the data is never
lost.
On Sat, 27 Aug, 2022, 1:43 am Adrian Mariano, <avm4@cornell.edu> wrote:
> An example of calculations that are easier in Python than in OpenSCAD?
> The quick answer is any non-trivial calculation. If you want to get
> serious about it, basically any calculation that requires real data
> structures is essentially impossible in OpenSCAD. So like finding
> intersections of polygons can be done efficiently using a line sweep method
> in a regular language like python, but you need a tree data structure to
> organize the data, and that cannot be implemented in OpenSCAD
> (efficiently).
>
> On Fri, Aug 26, 2022 at 10:34 AM jon <jon@jonbondy.com> wrote:
>
>> Can you give an example of calculations that are easy in python than in
>> OpenSCAD?
>>
>> Jon
>>
>>
>> On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
>>
>> I didn't know either few months back.
>> It was not very difficult for a person like me who doesn't have much
>> background in softwares.
>>
>> At the same time it's just one of the approach where points calculation
>> is done with another software and then these points are passed on to
>> openscad.
>>
>> I have found that calculations are much easier in python as there are
>> many supporting libraries.
>>
>> Thanks
>>
>>
>> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>>
>>> I know nothing about numpy nor jupyter notebook. Should I just ignore
>>> this conversation?
>>>
>>>
>>> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
>>> > Dear All,
>>> >
>>> > I have experimented with jupyter notebook to calculate points in space
>>> > and then passing the same to openscad for creating 3d shapes.
>>> >
>>> > Found it to be quite interesting.
>>> >
>>> > Wrote almost all the functions of openscad in jupyter notebook.
>>> >
>>> > you can refer to the page below for few examples:
>>> > https://github.com/sprabhakar2006/openSCAD
>>> >
>>> > you need to have some working knowledge of numpy and jupyter notebook
>>> > for this to work.
>>> >
>>> > Regards
>>> > Sanjeev
>>> >
>>> >
>>> > _______________________________________________
>>> > OpenSCAD mailing list
>>> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
>>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
MM
Michael Marx
Sat, Aug 27, 2022 12:46 AM
There are errors in dependencies.scad.
Parsing design (AST generation)...
ERROR: Parser error: syntax error in file dependencies.scad, line 1098
Execution aborted
I fixed the hanging comma, then got the same error at 1994, fixed, then 2706, fixed, then 2753 (didn't look at this one, trend was not looking good...)
From: Sanjeev Prabhakar [mailto:sprabhakar2006@gmail.com]
Sent: Sat, 27 Aug 2022 01:05
To: jon
Cc: OpenSCAD general discussion
Subject: [OpenSCAD] Re: openscad with jupyter notebook
a simpler example would be hub_with_post.scad (attached here)
please see the complex radiuses and it would be difficult with pure openscad
On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar sprabhakar2006@gmail.com wrote:
For rounding, intersection line of 2 prisms is a complex calculation, which was quite fast as per my understanding and maybe if I have to do the same in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad , later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and kept in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much background in softwares.
At the same time it's just one of the approach where points calculation is done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
There are errors in dependencies.scad.
Parsing design (AST generation)...
ERROR: Parser error: syntax error in file dependencies.scad, line 1098
Execution aborted
I fixed the hanging comma, then got the same error at 1994, fixed, then 2706, fixed, then 2753 (didn't look at this one, trend was not looking good...)
_____
From: Sanjeev Prabhakar [mailto:sprabhakar2006@gmail.com]
Sent: Sat, 27 Aug 2022 01:05
To: jon
Cc: OpenSCAD general discussion
Subject: [OpenSCAD] Re: openscad with jupyter notebook
a simpler example would be hub_with_post.scad (attached here)
please see the complex radiuses and it would be difficult with pure openscad
On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote:
For rounding, intersection line of 2 prisms is a complex calculation, which was quite fast as per my understanding and maybe if I have to do the same in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad , later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and kept in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, <jon@jonbondy.com> wrote:
Can you give an example of calculations that are easy in python than in OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much background in softwares.
At the same time it's just one of the approach where points calculation is done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
> Dear All,
>
> I have experimented with jupyter notebook to calculate points in space
> and then passing the same to openscad for creating 3d shapes.
>
> Found it to be quite interesting.
>
> Wrote almost all the functions of openscad in jupyter notebook.
>
> you can refer to the page below for few examples:
> https://github.com/sprabhakar2006/openSCAD
>
> you need to have some working knowledge of numpy and jupyter notebook
> for this to work.
>
> Regards
> Sanjeev
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
--
This email has been checked for viruses by AVG.
https://www.avg.com
SP
Sanjeev Prabhakar
Sat, Aug 27, 2022 1:10 AM
I think you maybe using an older version of openscad.
Please try the latest development snapshot
On Sat, 27 Aug, 2022, 6:17 am Michael Marx, michael@marx.id.au wrote:
There are errors in dependencies.scad.
Parsing design (AST generation)...
ERROR: Parser error: syntax error in file dependencies.scad, line 1098
Execution aborted
I fixed the hanging comma, then got the same error at 1994, fixed, then
2706, fixed, then 2753 (didn't look at this one, trend was not looking
good...)
From: Sanjeev Prabhakar [mailto:sprabhakar2006@gmail.com]
Sent: Sat, 27 Aug 2022 01:05
To: jon
Cc: OpenSCAD general discussion
Subject: [OpenSCAD] Re: openscad with jupyter notebook
a simpler example would be hub_with_post.scad (attached here)
please see the complex radiuses and it would be difficult with pure
openscad
On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:
For rounding, intersection line of 2 prisms is a complex calculation,
which was quite fast as per my understanding and maybe if I have to do the
same in openscad it would be difficult to write the code itself.
Although I have written the same in openscad also, but it's not perfect.
Initially I was just copying the functions I have written in openscad ,
later on I realised the same code can be written much efficiently in numpy.
That's a learning curve.
For example, if you download the wheel_final.scad file, you can see the
roundings of so many intersection lines.
For this to work file dependencies.scad also need to be downloaded and
kept in the same folder
On Fri, 26 Aug, 2022, 8:02 pm jon, jon@jonbondy.com wrote:
Can you give an example of calculations that are easy in python than in
OpenSCAD?
Jon
On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
I didn't know either few months back.
It was not very difficult for a person like me who doesn't have much
background in softwares.
At the same time it's just one of the approach where points calculation is
done with another software and then these points are passed on to openscad.
I have found that calculations are much easier in python as there are many
supporting libraries.
Thanks
On Fri, 26 Aug, 2022, 7:39 pm jon, jon@jonbondy.com wrote:
I know nothing about numpy nor jupyter notebook. Should I just ignore
this conversation?
On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
Dear All,
I have experimented with jupyter notebook to calculate points in space
and then passing the same to openscad for creating 3d shapes.
Found it to be quite interesting.
Wrote almost all the functions of openscad in jupyter notebook.
you can refer to the page below for few examples:
https://github.com/sprabhakar2006/openSCAD
you need to have some working knowledge of numpy and jupyter notebook
for this to work.
Regards
Sanjeev
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
I think you maybe using an older version of openscad.
Please try the latest development snapshot
On Sat, 27 Aug, 2022, 6:17 am Michael Marx, <michael@marx.id.au> wrote:
> There are errors in dependencies.scad.
>
> Parsing design (AST generation)...
>
> ERROR: Parser error: syntax error in file dependencies.scad, line 1098
>
> Execution aborted
>
>
>
> I fixed the hanging comma, then got the same error at 1994, fixed, then
> 2706, fixed, then 2753 (didn't look at this one, trend was not looking
> good...)
>
>
> ------------------------------
>
> *From:* Sanjeev Prabhakar [mailto:sprabhakar2006@gmail.com]
> *Sent:* Sat, 27 Aug 2022 01:05
> *To:* jon
> *Cc:* OpenSCAD general discussion
> *Subject:* [OpenSCAD] Re: openscad with jupyter notebook
>
>
>
> a simpler example would be hub_with_post.scad (attached here)
>
> please see the complex radiuses and it would be difficult with pure
> openscad
>
>
>
>
>
>
>
> On Fri, 26 Aug 2022 at 20:24, Sanjeev Prabhakar <sprabhakar2006@gmail.com>
> wrote:
>
> For rounding, intersection line of 2 prisms is a complex calculation,
> which was quite fast as per my understanding and maybe if I have to do the
> same in openscad it would be difficult to write the code itself.
>
>
>
> Although I have written the same in openscad also, but it's not perfect.
>
>
>
> Initially I was just copying the functions I have written in openscad ,
> later on I realised the same code can be written much efficiently in numpy.
>
>
>
> That's a learning curve.
>
>
>
> For example, if you download the wheel_final.scad file, you can see the
> roundings of so many intersection lines.
>
>
>
> For this to work file dependencies.scad also need to be downloaded and
> kept in the same folder
>
>
>
>
>
> On Fri, 26 Aug, 2022, 8:02 pm jon, <jon@jonbondy.com> wrote:
>
> Can you give an example of calculations that are easy in python than in
> OpenSCAD?
>
> Jon
>
>
>
> On 8/26/2022 10:27 AM, Sanjeev Prabhakar wrote:
>
> I didn't know either few months back.
>
> It was not very difficult for a person like me who doesn't have much
> background in softwares.
>
>
>
> At the same time it's just one of the approach where points calculation is
> done with another software and then these points are passed on to openscad.
>
>
>
> I have found that calculations are much easier in python as there are many
> supporting libraries.
>
>
>
> Thanks
>
>
>
>
>
> On Fri, 26 Aug, 2022, 7:39 pm jon, <jon@jonbondy.com> wrote:
>
> I know nothing about numpy nor jupyter notebook. Should I just ignore
> this conversation?
>
>
> On 8/26/2022 12:27 AM, Sanjeev Prabhakar wrote:
> > Dear All,
> >
> > I have experimented with jupyter notebook to calculate points in space
> > and then passing the same to openscad for creating 3d shapes.
> >
> > Found it to be quite interesting.
> >
> > Wrote almost all the functions of openscad in jupyter notebook.
> >
> > you can refer to the page below for few examples:
> > https://github.com/sprabhakar2006/openSCAD
> >
> > you need to have some working knowledge of numpy and jupyter notebook
> > for this to work.
> >
> > Regards
> > Sanjeev
> >
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > To unsubscribe send an email to discuss-leave@lists.openscad.org
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.
> www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_7497731630892727491_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>