# coil

11 messages
Open this post in threaded view
|

## coil

 Hi everibody.     Can someone help me with a solution for this: ---how to import this one   and use it in this twists  (color"blue") and color ("red") and to have the shape from color("grey") ? With the command UNION or other command ? And how to be write it? color ("blue") linear_extrude(height = 10, center = true, convexity = 10, twist = -100) translate([2, 0, 0]) circle(r = 1);  color ("red") linear_extrude(height = 10, center = true, convexity = 10, twist = 100) translate([2, 0, 0]) circle(r = 1); color("grey") linear_extrude(height = 10, scale = 0, center = true, convexity = 10, twist = -500) translate([2, 0, 0]) circle(r = 1); For more questions just write. Thank you,Roland.
Open this post in threaded view
|

## Re: coil

 linear_extrude() requires a 2D shape. One way to input an 2D shape from a file is the import function. But this function can't be used to import .PNG files just .dxf.2017-01-20 14:34 GMT-02:00 roland78 :Hi everibody.     Can someone help me with a solution for this: ---how to import this one and use it in this twists  (color"blue") and color ("red") and to have the shape from color("grey") ? With the command UNION or other command ? And how to be write it? color ("blue") linear_extrude(height = 10, center = true, convexity = 10, twist = -100) translate([2, 0, 0]) circle(r = 1);  color ("red") linear_extrude(height = 10, center = true, convexity = 10, twist = 100) translate([2, 0, 0]) circle(r = 1); color("grey") linear_extrude(height = 10, scale = 0, center = true, convexity = 10, twist = -500) translate([2, 0, 0]) circle(r = 1); For more questions just write. Thank you,Roland. -- View this message in context: http://forum.openscad.org/coil-tp20172.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
Open this post in threaded view
|

## Re: coil

 Schauberger stuff usually can't be done with linear_extrude solely. His drafts describe fully "organic" shapes, quite difficult to model. Have a look at the orginal patent description to see what's it all about.
Open this post in threaded view
|

## Re: coil

 Hi.      Thanks for reply. I'm beginner in this program and i saw it a way to do it.I converted this picture with online converters from jpeg to dxf, and used the little program what you sugest it to me, and i don't succed to import.Maybe i do it wrong.But what is missing then? The patent i read it a lot of times and his writings too,now i must to do it and for help i posted here.If you havean  idea how to do it let me know please. thank you.What do you think if this coil will be done with hand and after with a 3D scanner ,is posible for that program to do it?  Thank you.
Open this post in threaded view
|

## Re: coil

 To import a dxf, it should be enough to write     import("my.dxf"); Maybe your path is not correct. If you are on Windows you have to use either "\\" or "/" as path separator. Try to put your file into the same directory as the scad file, then you can omit the path.   Also there are some DXF formats OpenSCAD will not read. It is important to save your file using "polylines". Don't expect to much. Schauberger doesn't give any formulas. So you have to find out yourself, which of his many forms and intuitive designs you want to model and which "inner" relation you want to use for extrusion. And there is already the limitation. Say you have the "egg with dint" imported and want to extrude it in a helical fashin. For this you have to deside how you model the spiral extrusion. Typical for Schauberger is that both, diameter and slope alter along the extrusion axis. Even the linear_extrusion() primitive of OpenSCAD lets you do a lot, it neither supports a change of slope nor non-linear changes of diameter. The best you can get will be a twisted cone extrusion: linear_extrude(height = 100, scale = 1.5, twist = 2*360, slices = 200) difference() // replace this by: import("scan.dxf"); {   polygon(Egg(r=10, f=1.4, o = 1));  polygon(Egg(r=9, f=1.4, o = 1));   } function Egg(r = 10, f=1.3, b=10, o=1) = [for(i=[0:359])  [f*r*sin(i), r*cos(i + cos(o*i)*b)] ];
Open this post in threaded view
|

## Re: coil

 In reply to this post by roland78 try using inkscape (either import your dxf, or use internal convert bitmap) and this extension to export to openSCAD. - http://www.thingiverse.com/thing:1065500but all it will do is extrude the shape into 3d. Not sur what final result you're going for. Could be quite hard to do in any program ??
Open this post in threaded view
|

## Re: coil

 this Inkscape_to_OpenSCAD_converter_v7 extension is more comfortable for me. pure scad file output and only simple two files. not need dxf in the middle.
Open this post in threaded view
|

## Re: coil

Open this post in threaded view
|

## Re: coil

 It is difficult to compose a function that describes exactly the desired shape. But it is easy to use a path tool with bezier support to model the egg with dint. I used Inkscape: 1. imported the relevant part of your bitmap as a template 2. started to draw an ellipse with appropriate size 3. converted it into a path 4. used beziers to exactly model the outer line of the dinted egg 5. deleted the bitmap and saved the drawing as SVG. Newer builds of OpenSCAD (2016.xx) can read this format. 6. to export a DXF, see http://repraprip.blogspot.de/2011/05/inkscape-to-openscad-dxf-tutorial.htmlI attached both formats for your convenience. Interestingly they have a different scale and origin! schaubi.dxfschaubi.svgTo be honest I don't understand how you want to apply your coloring scheme or a double helix with this shape to get some magic water flow. But with the following code it should be easy for you to continue on your own. Here some code to use it: h = 200; n = 3; color("lightblue")   linear_extrude(height = h, twist = n*360, slices = 300)     scale(.1) dintedegg_skin(); module dintedegg_skin() {   difference()   {     offset(10) import("schaubi.svg");  // import("schaubi.dxf");     import("schaubi.svg");   } }