Where do I start?

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Where do I start?

HHarry17
Two months ago I bought my first simple 3D printer, a RenkForce RF100, for PLA filament, with 1 extruder. I had no experience whatsoever with 3D printers, but there were 100 examples on the SD card that came with it. So I tried to print some of them and I got thrilled by the good results. However, I wanted more.
I wanted to develop my own prints, so I downloaded Freecad, Processing, 123D Design, etc..  Since I have never worked with CAD programs before, it seemed almost impossible for me to understand them.
Then I found OpenSCAD and lots of files by Marius Kintel with an scad extension together with the object's program lines. I rendered a couple of scad files into stl files and made gcodes of them with Cura 15.04.6.
Then I tried over and over again to make a file from an earring a brother of mine designed some time ago. Being an amateur he designs a.o. silver earrings and stuff as gifts to friends and family, not for business.




The first picture is of the raw design he made from silver wire of 1.5 mm round.
On the right you see my attempt to reproduce it with the help of FreeCAD.
But I don't know how to tell the program the thickness of the wire and to make an stl file from it. As you can see the overall length is 33 mm, the upper circle is 9 mm, the middle circle is 5 mm round and the base is 10 mm.
I would be very grateful to you if you could show (teach) me how to tackle this problem.
Perhaps you could write me some program lines in OpenSCAD so that I can print this earring......

Thanking you in advance for your reply and help, with kindest regards,

Ed Schijf
Purmerend
Netherlands
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

William Adams-2
I would do this by making cylinders the thickness / length of the wire, rotating them, and positioning them w/ many iterations --- but I'm a backwoods hick, whose math education topped out at an "Advanced Math" course which was what the school system tried to pass off instead of having trigonometry and calculus --- yeah, I'm bitter.

There are some really cool things done w/ looping constructs, and such extrusions / extensions, and you may want to look up ImplicitCAD if it will run on your system.

William
(who always does stuff the hard way the first time)

On Mon, Jan 30, 2017 at 8:46 AM, HHarry17 <[hidden email]> wrote:
Two months ago I bought my first simple 3D printer, a RenkForce RF100, for
PLA filament, with 1 extruder. I had no experience whatsoever with 3D
printers, but there were 100 examples on the SD card that came with it. So I
tried to print some of them and I got thrilled by the good results. However,
I wanted more.
I wanted to develop my own prints, so I downloaded Freecad, Processing, 123D
Design, etc..  Since I have never worked with CAD programs before, it seemed
almost impossible for me to understand them.
Then I found OpenSCAD and lots of files by Marius Kintel with an scad
extension together with the object's program lines. I rendered a couple of
scad files into stl files and made gcodes of them with Cura 15.04.6.
Then I tried over and over again to make a file from an earring a brother of
mine designed some time ago. Being an amateur he designs a.o. silver
earrings and stuff as gifts to friends and family, not for business.

<http://forum.openscad.org/file/n20272/oorhangerKlein1.jpg>
<http://forum.openscad.org/file/n20272/OorhangerFreeCAD.jpg>

The first picture is of the raw design he made from silver wire of 1.5 mm
round.
On the right you see my attempt to reproduce it with the help of FreeCAD.
But I don't know how to tell the program the thickness of the wire and to
make an stl file from it. As you can see the overall length is 33 mm, the
upper circle is 9 mm, the middle circle is 5 mm round and the base is 10 mm.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Perhaps you could write me some program lines in OpenSCAD so that I can
print this earring......

Thanking you in advance for your reply and help, with kindest regards,

Ed Schijf
Purmerend
Netherlands



--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
Thanks for your quick reply, Wiliiam!
I always do things the hard way, too....
I'm going to try to make cylinders first and check if ImplicitCAD works for me...

Thanks again,

Ed

Op 30/01/2017 om 14:52 schreef William Adams-2 [via OpenSCAD]:
I would do this by making cylinders the thickness / length of the wire, rotating them, and positioning them w/ many iterations --- but I'm a backwoods hick, whose math education topped out at an "Advanced Math" course which was what the school system tried to pass off instead of having trigonometry and calculus --- yeah, I'm bitter.

There are some really cool things done w/ looping constructs, and such extrusions / extensions, and you may want to look up ImplicitCAD if it will run on your system.

William
(who always does stuff the hard way the first time)

On Mon, Jan 30, 2017 at 8:46 AM, HHarry17 <[hidden email]> wrote:
Two months ago I bought my first simple 3D printer, a RenkForce RF100, for
PLA filament, with 1 extruder. I had no experience whatsoever with 3D
printers, but there were 100 examples on the SD card that came with it. So I
tried to print some of them and I got thrilled by the good results. However,
I wanted more.
I wanted to develop my own prints, so I downloaded Freecad, Processing, 123D
Design, etc..  Since I have never worked with CAD programs before, it seemed
almost impossible for me to understand them.
Then I found OpenSCAD and lots of files by Marius Kintel with an scad
extension together with the object's program lines. I rendered a couple of
scad files into stl files and made gcodes of them with Cura 15.04.6.
Then I tried over and over again to make a file from an earring a brother of
mine designed some time ago. Being an amateur he designs a.o. silver
earrings and stuff as gifts to friends and family, not for business.

<http://forum.openscad.org/file/n20272/oorhangerKlein1.jpg>
<http://forum.openscad.org/file/n20272/OorhangerFreeCAD.jpg>

The first picture is of the raw design he made from silver wire of 1.5 mm
round.
On the right you see my attempt to reproduce it with the help of FreeCAD.
But I don't know how to tell the program the thickness of the wire and to
make an stl file from it. As you can see the overall length is 33 mm, the
upper circle is 9 mm, the middle circle is 5 mm round and the base is 10 mm.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Perhaps you could write me some program lines in OpenSCAD so that I can
print this earring......

Thanking you in advance for your reply and help, with kindest regards,

Ed Schijf
Purmerend
Netherlands



--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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



If you reply to this email, your message will be added to the discussion below:
http://forum.openscad.org/Where-do-I-start-tp20272p20273.html
To unsubscribe from Where do I start?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

Ronaldo
Many of us are able to write  a code to produce your model. But if you intend to generate your own models, and that is the fun part of the process, what the point to  have a code written by others? 

This is a simple model and a good beginner exercice. You will need rotate_extrude and circle to make the ring, some cube primitives and transformations (translate and rotate). The OpenSCAD Manual hás many examples of their use. As a well organized index to the Manual sections, keep open the page of the Cheat Sheet ( http://www.openscad.org/cheatsheet/

And post your doubts here to  have help. 

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

Re: Where do I start?

HHarry17
Thank you for your quick answer, Ronaldo!
I do not want to have codes written by others, only want some help to set up a code for this simple model.
Your advice of using rotate_extrude and others is a very good beginning for me.
First of all I am going to have a look at the cheatsheet.

In the meantime, thanks again,

Ed

Op 30/01/2017 om 18:07 schreef Ronaldo [via OpenSCAD]:
Many of us are able to write  a code to produce your model. But if you intend to generate your own models, and that is the fun part of the process, what the point to  have a code written by others? 

This is a simple model and a good beginner exercice. You will need rotate_extrude and circle to make the ring, some cube primitives and transformations (translate and rotate). The OpenSCAD Manual hás many examples of their use. As a well organized index to the Manual sections, keep open the page of the Cheat Sheet ( http://www.openscad.org/cheatsheet/

And post your doubts here to  have help. 

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



If you reply to this email, your message will be added to the discussion below:
http://forum.openscad.org/Where-do-I-start-tp20272p20276.html
To unsubscribe from Where do I start?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

Ronaldo
A hint: avoid the use of numerical values directly in the primitive calls like in:

circle(r=4.5); // for the upper circle

Be used to express things parametrically:

upper_circle_diameter  = 9;
middle_circle_diameter = 5;
...
...
circle(r=upper_circle_diameter/2);

It will be easier to change model dimensions after that.

2017-01-30 15:53 GMT-02:00 HHarry17 <[hidden email]>:
I do not want to have codes written by others, only want some help to set up a code for this simple model.
Your advice of using rotate_extrude and others is a very good beginning for me.
First of all I am going to have a look at the cheatsheet.



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

Re: Where do I start?

William Adams-2
There's a fork (has it been integrated into the main app?) which implements the "Thingiverse Customizer" --- it revolutionized my use of OpenSCAD and made me much better about using variables.

On Mon, Jan 30, 2017 at 1:47 PM, Ronaldo Persiano <[hidden email]> wrote:
A hint: avoid the use of numerical values directly in the primitive calls like in:

circle(r=4.5); // for the upper circle

Be used to express things parametrically:

upper_circle_diameter  = 9;
middle_circle_diameter = 5;
...
...
circle(r=upper_circle_diameter/2);

It will be easier to change model dimensions after that.

2017-01-30 15:53 GMT-02:00 HHarry17 <[hidden email]>:
I do not want to have codes written by others, only want some help to set up a code for this simple model.
Your advice of using rotate_extrude and others is a very good beginning for me.
First of all I am going to have a look at the cheatsheet.



_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
Hi William,
These are the hints I was waiting for.
I already started by customizing an OpenSCAD basics example called rotate_extrude.scad.
I am going to express things parametrically as you explained to me.

Thanks, Ed

Op 30/01/2017 om 20:09 schreef William Adams-2 [via OpenSCAD]:
There's a fork (has it been integrated into the main app?) which implements the "Thingiverse Customizer" --- it revolutionized my use of OpenSCAD and made me much better about using variables.

On Mon, Jan 30, 2017 at 1:47 PM, Ronaldo Persiano <[hidden email]> wrote:
A hint: avoid the use of numerical values directly in the primitive calls like in:

circle(r=4.5); // for the upper circle

Be used to express things parametrically:

upper_circle_diameter  = 9;
middle_circle_diameter = 5;
...
...
circle(r=upper_circle_diameter/2);

It will be easier to change model dimensions after that.

2017-01-30 15:53 GMT-02:00 HHarry17 <[hidden email]>:
I do not want to have codes written by others, only want some help to set up a code for this simple model.
Your advice of using rotate_extrude and others is a very good beginning for me.
First of all I am going to have a look at the cheatsheet.



_______________________________________________
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



If you reply to this email, your message will be added to the discussion below:
http://forum.openscad.org/Where-do-I-start-tp20272p20284.html
To unsubscribe from Where do I start?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
In reply to this post by Ronaldo
Thank you for the hint, Ronaldo!
Ed

Op 30/01/2017 om 19:47 schreef Ronaldo Persiano:
A hint: avoid the use of numerical values directly in the primitive calls like in:

circle(r=4.5); // for the upper circle

Be used to express things parametrically:

upper_circle_diameter  = 9;
middle_circle_diameter = 5;
...
...
circle(r=upper_circle_diameter/2);

It will be easier to change model dimensions after that.

2017-01-30 15:53 GMT-02:00 HHarry17 <[hidden email]>:
I do not want to have codes written by others, only want some help to set up a code for this simple model.
Your advice of using rotate_extrude and others is a very good beginning for me.
First of all I am going to have a look at the cheatsheet.




_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

Ronaldo
In reply to this post by William Adams-2
William Adams-2 wrote
There's a fork (has it been integrated into the main app?) which implements
the "Thingiverse Customizer" --- it revolutionized my use of OpenSCAD and
made me much better about using variables.
The customizer has been integrated into the last snapshot versions. Enable it in Edit/Preferences/Features and unhide its window in View.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
In reply to this post by William Adams-2
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I converted the result to an STL file it only produced a flat picture, which means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my first e-mail I gave the measurements with the two pictures: the overall length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this earring......

I read the messages I received in the mailing list, I did not understand a thing with most of them, like "Translate 3 vector axis to a camera viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Where do I start?

Ronaldo
Ed,

Maybe you should forget the customizer for a while.

Try this code:
a = 40;
r1 = 10;
r2 = 5;
translate([0,0,a])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,8,3]);

Paste it in editor window and press F6. Observe the image and study the code that produce it comparing with the descriptions in the Manual of translate, rotate, cube, cylinder, and difference.

That is what you will need for your model but with incorrect dimensions. Modify it to achieve your target model.

There is many levels of discussion in this forum. Don't be scared with them. I don't understand all discussion either.

Ronaldo

2017-02-04 9:37 GMT-02:00 HHarry17 <[hidden email]>:
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and
LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I
converted the result to an STL file it only produced a flat picture, which
means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my
first e-mail I gave the measurements with the two pictures: the overall
length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the
base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm
long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this
earring......

I read the messages I received in the mailing list, I did not understand a
thing with most of them, like "Translate 3 vector axis to a camera
viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help
me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands




--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272p20313.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
Thank you very much, Ronaldo!!!
I am going to try this and I will keep you posted!

Have a nice weekend,

Ed

Op 4/02/2017 om 14:12 schreef Ronaldo Persiano:
Ed,

Maybe you should forget the customizer for a while.

Try this code:
a = 40;
r1 = 10;
r2 = 5;
translate([0,0,a])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,8,3]);

Paste it in editor window and press F6. Observe the image and study the code that produce it comparing with the descriptions in the Manual of translate, rotate, cube, cylinder, and difference.

That is what you will need for your model but with incorrect dimensions. Modify it to achieve your target model.

There is many levels of discussion in this forum. Don't be scared with them. I don't understand all discussion either.

Ronaldo

2017-02-04 9:37 GMT-02:00 HHarry17 <[hidden email]>:
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and
LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I
converted the result to an STL file it only produced a flat picture, which
means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my
first e-mail I gave the measurements with the two pictures: the overall
length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the
base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm
long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this
earring......

I read the messages I received in the mailing list, I did not understand a
thing with most of them, like "Translate 3 vector axis to a camera
viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help
me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands




--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272p20313.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

Ronaldo
I have written the code and have not tested  it (I did it from a mobile). And there is errors in it, sorry.

Replace the code by:

a = 40;
r1 = 10;
r2 = 5;
h1 = 3;
translate([0,a,0])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,30,3]);


2017-02-04 12:06 GMT-02:00 Ed Schijf <[hidden email]>:
Thank you very much, Ronaldo!!!
I am going to try this and I will keep you posted!

Have a nice weekend,

Ed

Op 4/02/2017 om 14:12 schreef Ronaldo Persiano:
Ed,

Maybe you should forget the customizer for a while.

Try this code:
a = 40;
r1 = 10;
r2 = 5;
translate([0,0,a])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,8,3]);

Paste it in editor window and press F6. Observe the image and study the code that produce it comparing with the descriptions in the Manual of translate, rotate, cube, cylinder, and difference.

That is what you will need for your model but with incorrect dimensions. Modify it to achieve your target model.

There is many levels of discussion in this forum. Don't be scared with them. I don't understand all discussion either.

Ronaldo

2017-02-04 9:37 GMT-02:00 HHarry17 <[hidden email]>:
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and
LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I
converted the result to an STL file it only produced a flat picture, which
means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my
first e-mail I gave the measurements with the two pictures: the overall
length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the
base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm
long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this
earring......

I read the messages I received in the mailing list, I did not understand a
thing with most of them, like "Translate 3 vector axis to a camera
viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help
me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands




--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272p20313.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
You are great, Ronaldo,

I already found that h1 was missing.
I will experiment with the various parameters, because I see a little bit of progress now!!

Thanks again, Ed

Op 4/02/2017 om 15:57 schreef Ronaldo Persiano:
I have written the code and have not tested  it (I did it from a mobile). And there is errors in it, sorry.

Replace the code by:

a = 40;
r1 = 10;
r2 = 5;
h1 = 3;
translate([0,a,0])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,30,3]);


2017-02-04 12:06 GMT-02:00 Ed Schijf <[hidden email]>:
Thank you very much, Ronaldo!!!
I am going to try this and I will keep you posted!

Have a nice weekend,

Ed

Op 4/02/2017 om 14:12 schreef Ronaldo Persiano:
Ed,

Maybe you should forget the customizer for a while.

Try this code:
a = 40;
r1 = 10;
r2 = 5;
translate([0,0,a])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,8,3]);

Paste it in editor window and press F6. Observe the image and study the code that produce it comparing with the descriptions in the Manual of translate, rotate, cube, cylinder, and difference.

That is what you will need for your model but with incorrect dimensions. Modify it to achieve your target model.

There is many levels of discussion in this forum. Don't be scared with them. I don't understand all discussion either.

Ronaldo

2017-02-04 9:37 GMT-02:00 HHarry17 <[hidden email]>:
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and
LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I
converted the result to an STL file it only produced a flat picture, which
means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my
first e-mail I gave the measurements with the two pictures: the overall
length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the
base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm
long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this
earring......

I read the messages I received in the mailing list, I did not understand a
thing with most of them, like "Translate 3 vector axis to a camera
viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help
me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands




--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272p20313.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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

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

Re: Where do I start?

HHarry17
In reply to this post by Ronaldo
Hi Ronaldo,

Sorry to bother you again...
After experimenting I got this result:




a = 32;
r1 = 4.5;
r2 = 3;
h1 = 1.5;
translate([0,a,0])
   difference(){
      cylinder(r=r1,h=h1);    
      cylinder(r=r2,h=h1+1);
   }

translate([5,0,1.5])
rotate(10)
   cube([1.5,29.5,1.5]);
translate([-6.5,0,-3.5])
   rotate(-10)
   cube([1.5,29.5,1.5]);

I begin to feel a lot better, but it is not complete yet.
The lines must touch the upper circle, now they are in front and behind it.
The bottom line must be 10 mm long x 1.5 x 1.5 wide. So, the two lines are too far apart at the bottom.
The second circle (r1 = 2.5, r2 = 1.75) must be approx. in the middle of the two lines.

Could you please have another look at it? Thanks again for your help!

Ed


Op 4/02/2017 om 15:57 schreef Ronaldo Persiano:
I have written the code and have not tested  it (I did it from a mobile). And there is errors in it, sorry.

Replace the code by:

a = 40;
r1 = 10;
r2 = 5;
h1 = 3;
translate([0,a,0])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,30,3]);


2017-02-04 12:06 GMT-02:00 Ed Schijf <[hidden email]>:
Thank you very much, Ronaldo!!!
I am going to try this and I will keep you posted!

Have a nice weekend,

Ed

Op 4/02/2017 om 14:12 schreef Ronaldo Persiano:
Ed,

Maybe you should forget the customizer for a while.

Try this code:
a = 40;
r1 = 10;
r2 = 5;
translate([0,0,a])
   difference(){
      cylinder(r=r1,h=h1);
      cylinder(r=r2,h=h1+1);
   }

rotate(30)
   cube([2,8,3]);

Paste it in editor window and press F6. Observe the image and study the code that produce it comparing with the descriptions in the Manual of translate, rotate, cube, cylinder, and difference.

That is what you will need for your model but with incorrect dimensions. Modify it to achieve your target model.

There is many levels of discussion in this forum. Don't be scared with them. I don't understand all discussion either.

Ronaldo

2017-02-04 9:37 GMT-02:00 HHarry17 <[hidden email]>:
Hi William,
Have tried to follow your advice and feel ashamed that I failed.
I tried again and again and used OpenSCAD, FreeCAD, 123D Design and
LibreCAD.
Of course I also downloaded the manuals of these programs.
In LibreCAD I could make the lines and circles thicker (1.5 mm), but when I
converted the result to an STL file it only produced a flat picture, which
means that it was not in 3D.

I still don't know how to tell the program the thickness of the wire. In my
first e-mail I gave the measurements with the two pictures: the overall
length is 42 mm (NOT 33 mm), the
upper circle is 9 mm -1.5 mm thick, the middle circle is 5 mm by 1.5 mm, the
base is 10 mm long by 1.5 mm thick and the two slanted lines are 29.5 mm
long and also 1.5 mm thick.
I would be very grateful to you if you could show (teach) me how to tackle
this problem.
Please write me some program lines in OpenSCAD so that I can 3D print this
earring......

I read the messages I received in the mailing list, I did not understand a
thing with most of them, like "Translate 3 vector axis to a camera
viewpoint" or "Read a data file in an
OpenSCAD drawing file". This is not 3D for Dummies like me..... Please help
me!?

With kind regards,

Ed Schijf
Purmerend
Netherlands




--
View this message in context: http://forum.openscad.org/Where-do-I-start-tp20272p20313.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
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

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

Re: Where do I start?

Ronaldo
The translate() move things around. translate(tx,ty,tz) moves tx units along x axis, ty units along y axis and tz along the z axis. Your cube translations are not according to the ring translation. Move the cubes up and down to correct.

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

Re: Where do I start?

Ronaldo
Or try this:

translate([base/2-thick,0,0])
rotate(angle)
   cube([thick,29.5,h1]);
translate([-base/2,0,0])
   rotate(-angle)
   cube([thick,29.5,h1]);

with appropriate values.

2017-02-04 17:39 GMT-02:00 Ronaldo Persiano <[hidden email]>:
The translate() move things around. translate(tx,ty,tz) moves tx units along x axis, ty units along y axis and tz along the z axis. Your cube translations are not according to the ring translation. Move the cubes up and down to correct.


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

Re: Where do I start?

William Adams-2
Fiddled with your file for a bit and got this:

a = 32;
r1 = 4.5;
r2 = 3;
h1 = 1.5;
translate([0,a,0])
   difference(){
      cylinder(r=r1,h=h1);    
 translate([0,0,-1])
         cylinder(r=r2,h=h1+2);
   }
translate([5,0,0])
rotate(10)
   cube([1.5,29.5,1.5]);
translate([-6.5,0,0])
   rotate(-10)
   cube([1.5,29.5,1.5]);

which seemed to be what you want, and would compile to an STL and 3D print okay.

William

On Sat, Feb 4, 2017 at 2:51 PM, Ronaldo Persiano <[hidden email]> wrote:
Or try this:

translate([base/2-thick,0,0])
rotate(angle)
   cube([thick,29.5,h1]);
translate([-base/2,0,0])
   rotate(-angle)
   cube([thick,29.5,h1]);

with appropriate values.

2017-02-04 17:39 GMT-02:00 Ronaldo Persiano <[hidden email]>:
The translate() move things around. translate(tx,ty,tz) moves tx units along x axis, ty units along y axis and tz along the z axis. Your cube translations are not according to the ring translation. Move the cubes up and down to correct.


_______________________________________________
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
|  
Report Content as Inappropriate

Re: Where do I start?

HHarry17
Hi William,

Thank you for your answer.
I also got a lot of help from Ronaldo Persiano in the meantime and I am
happy with the 3D result.

Ed

Op 5/02/2017 om 23:18 schreef William Adams:

> Fiddled with your file for a bit and got this:
>
> a = 32;
> r1 = 4.5;
> r2 = 3;
> h1 = 1.5;
> translate([0,a,0])
>    difference(){
>       cylinder(r=r1,h=h1);
>  translate([0,0,-1])
>          cylinder(r=r2,h=h1+2);
>    }
> translate([5,0,0])
> rotate(10)
>    cube([1.5,29.5,1.5]);
> translate([-6.5,0,0])
>    rotate(-10)
>    cube([1.5,29.5,1.5]);
>
> which seemed to be what you want, and would compile to an STL and 3D
> print okay.
>
> William
> _______________________________________________
> 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
Loading...