Newbie help with complex curves

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

Newbie help with complex curves

Leea
I want to model a propeller, like for a toy boat. I want to know what
function should I start with. It curves in multiple directions and the
outside shape is also a complex curve. I found an example I thought would be
a good start, an impeller. I don't think I can attach an image to show you.
The problem is that the code imports example009.dxf. I have searched and I
can't find that file. I also saw a demo of Bezier curve which looks
interesting but that is 2 dimensional and I need it to curve 3 dimensional.
I tried building it out of a series of blocks and that is not satisfactory.
thanks
Lee





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

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

Re: Newbie help with complex curves

acwest
Google will find it for you (I found quite a number of copies of the
file that way), or it should be installed on your system `in the
examples directory. Where that is depends on your OS, but try
searching for a file by name. (on Linux or OS-X, find / -name
example009.dxf 2> /dev/null )

On Tue, Jul 2, 2019 at 2:52 PM Leea <[hidden email]> wrote:

>
> I want to model a propeller, like for a toy boat. I want to know what
> function should I start with. It curves in multiple directions and the
> outside shape is also a complex curve. I found an example I thought would be
> a good start, an impeller. I don't think I can attach an image to show you.
> The problem is that the code imports example009.dxf. I have searched and I
> can't find that file. I also saw a demo of Bezier curve which looks
> interesting but that is 2 dimensional and I need it to curve 3 dimensional.
> I tried building it out of a series of blocks and that is not satisfactory.
> thanks
> Lee
>
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help with complex curves

Leea
When I searched I found a lot of references to it but not a downloadable
file. I did find a web page with 3900 lines of code that seemed like it
might be it, but when I copied that and pasted it into a file I got compile
errors so it wasn't right. That was the only one I found. I hate to be a
pain but if you have a link I would like it please.
Lee




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

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

Re: Newbie help with complex curves

acwest
Try this link:
https://github.com/openscad/openscad/raw/master/examples/Old/example009.dxf

On Tue, Jul 2, 2019 at 3:21 PM Leea <[hidden email]> wrote:

>
> When I searched I found a lot of references to it but not a downloadable
> file. I did find a web page with 3900 lines of code that seemed like it
> might be it, but when I copied that and pasted it into a file I got compile
> errors so it wasn't right. That was the only one I found. I hate to be a
> pain but if you have a link I would like it please.
> Lee
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help with complex curves

William Adams-2
In reply to this post by acwest
I tried to collect resources on modelling curves at: https://wiki.shapeoko.com/index.php/OpenSCAD#Curves --- there's also: https://www.thingiverse.com/thing:1208001 which I was able to open and compile.

William


On Tue, Jul 2, 2019 at 3:03 PM A. Craig West <[hidden email]> wrote:
Google will find it for you (I found quite a number of copies of the
file that way), or it should be installed on your system `in the
examples directory. Where that is depends on your OS, but try
searching for a file by name. (on Linux or OS-X, find / -name
example009.dxf 2> /dev/null )

On Tue, Jul 2, 2019 at 2:52 PM Leea <[hidden email]> wrote:
>
> I want to model a propeller, like for a toy boat. I want to know what
> function should I start with. It curves in multiple directions and the
> outside shape is also a complex curve. I found an example I thought would be
> a good start, an impeller. I don't think I can attach an image to show you.
> The problem is that the code imports example009.dxf. I have searched and I
> can't find that file. I also saw a demo of Bezier curve which looks
> interesting but that is 2 dimensional and I need it to curve 3 dimensional.
> I tried building it out of a series of blocks and that is not satisfactory.
> thanks
> Lee
>
>
>
>
>
> --
> 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

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

Re: Newbie help with complex curves

Leea
In reply to this post by acwest
Gee thanks
That worked. It looked similar to the one I found but this one works. You
have the magic search touch.
Lee




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

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

Re: Newbie help with complex curves

acwest
In reply to this post by William Adams-2
The dxf is quite possibly not that useful, I haven't looked at the
example, but it seems likely that the actual curves are defined in the
dxf, which won't tell you anything about how to implement it in
openSCAD. I wrote a library to implement 3D bezier curves in openSCAD
to solve similar problems...

On Tue, Jul 2, 2019 at 3:25 PM William Adams <[hidden email]> wrote:

>
> I tried to collect resources on modelling curves at: https://wiki.shapeoko.com/index.php/OpenSCAD#Curves --- there's also: https://www.thingiverse.com/thing:1208001 which I was able to open and compile.
>
> William
>
>
> On Tue, Jul 2, 2019 at 3:03 PM A. Craig West <[hidden email]> wrote:
>>
>> Google will find it for you (I found quite a number of copies of the
>> file that way), or it should be installed on your system `in the
>> examples directory. Where that is depends on your OS, but try
>> searching for a file by name. (on Linux or OS-X, find / -name
>> example009.dxf 2> /dev/null )
>>
>> On Tue, Jul 2, 2019 at 2:52 PM Leea <[hidden email]> wrote:
>> >
>> > I want to model a propeller, like for a toy boat. I want to know what
>> > function should I start with. It curves in multiple directions and the
>> > outside shape is also a complex curve. I found an example I thought would be
>> > a good start, an impeller. I don't think I can attach an image to show you.
>> > The problem is that the code imports example009.dxf. I have searched and I
>> > can't find that file. I also saw a demo of Bezier curve which looks
>> > interesting but that is 2 dimensional and I need it to curve 3 dimensional.
>> > I tried building it out of a series of blocks and that is not satisfactory.
>> > thanks
>> > Lee
>> >
>> >
>> >
>> >
>> >
>> > --
>> > 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
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help with complex curves

Leea
In reply to this post by acwest
Duh, I never thought of looking on Thingiverse.
I downloaded it and my Openscad give an error on the boat prop command
Sweep. It doesn't know it.
Lee




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

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

Re: Newbie help with complex curves

acwest
I think the sweep function is defined in another library:
https://www.thingiverse.com/thing:900137

On Tue, Jul 2, 2019 at 3:36 PM Leea <[hidden email]> wrote:

>
> Duh, I never thought of looking on Thingiverse.
> I downloaded it and my Openscad give an error on the boat prop command
> Sweep. It doesn't know it.
> Lee
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie help with complex curves

Leea
Thanks, got it.
I discovered I hadn't unzipped all the files to the same directory and it
was in there.
Lee




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

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