http://forum.openscad.org/file/n18937/sweep.jpg
Hello
I have problems with joining different sweeped objects together.
Also the difference function of the basic sweeped obejct and a cylinder does
not work.
In the basic sweep object I notice a strange surface at the top and the
bottom. Can that be the cause?
Is this a know problem? How to solve it?
kind regards Johan
http://forum.openscad.org/file/n18937/sweep2.jpg
engelvleugel_v8_res.scad
http://forum.openscad.org/file/n18937/engelvleugel_v8_res.scad
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
We had this before. This is in 99% a self-intersection problem. Try F12 view
after F5 and examine your object. Any purple triangles will indicate
self-intersection.
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18938.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Also try an update, if you're using my sweep-library.
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18939.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I use the latest version from this site:
http://www.thingiverse.com/thing:900137/#files
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18940.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
If it is the first and last polygon face of the extrusion, try to invert the
polygon's point order from CW into CCW or vice versa.
Johan Jonker wrote
It is indeed selfintersection but it seems to be cause at the beginning
and end of the object.
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18941.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Just saw your code. Your extrusion paths are not well defined.
http://forum.openscad.org/file/n18942/jonker.png
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18942.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
The second problem is a bit more sophisticated. The polygon you feed into
vec3D() is not 2D. It is 3D already and - what seems to be the problem -
not-planar. Even sweep(), at least in theory, can work with this, it relies
on CGAL to deliver a sober triangulation for the caps.
I haven't diven deeper into sweeps with non-planar polygons, but I suspect
that these problems arise with alternate constructions done by CGAL.
My advice (work around): Use only planar polygons, which you get by a 2D
definition, use vec3D to embed it to 3D and transform it. This is the
scenario sweep() was developed for.
After that you can fine-tune the extrusion, e.g. by differencing or unioning
it with a polyhedron or any other union of 3D objects that alter the shape
of the planar caps.
To better see what's going on: The following code will create a one-slice
extrusion (shown as image)
RWALL = gen_outside_RW(RWING,1);
translate([0,0.3,0]) sweep(RWALL);
which - to my surprise - still seems to work well. But once you use a second
slice gen_outside_RW(RWING,2);, the construction seems to fail.
Nice (and mighty) approach, btw., but it has its caveats and will need some
analysis first to get some rules how it can be used and where are the
limits.
http://forum.openscad.org/file/n18943/jonker1.png
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18943.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Good idea:
http://forum.openscad.org/file/n18944/sweep3.jpg
It doesn't solve the problem but shows some other things that are incorrect.
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18944.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
here we are:
http://forum.openscad.org/file/n18945/jonker2.png
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18945.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Ok,
Yes I had modified that and didn't think of the 3D to 2D consquences.
I will fix that. Thanks for your time!
--
View this message in context: http://forum.openscad.org/Combining-different-sweeps-does-not-work-tp18937p18946.html
Sent from the OpenSCAD mailing list archive at Nabble.com.