discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Connect planes with corresponding vertices

B
Bananapeel
Fri, Jan 30, 2015 10:49 PM

Thanks. Unfortunately I still get the same problem as shown above.

poly1 = [
[-1, 0, 0],
[125, 0, 0],
[125, 235, 0],
[125, 235, 0],
[136.375, 284, 0],
[171, 312, 0],
[-1, 312, 0]
];
poly2 = [
[-1, 0, 30],
[145.624, 0, 30],
[145.624, 235, 30],
[145.624, 235, 30],
[156.999, 284, 30],
[191.624, 312, 30],
[-1, 312, 30]
];

skin([poly1, poly2]);

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11340.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Thanks. Unfortunately I still get the same problem as shown above. poly1 = [ [-1, 0, 0], [125, 0, 0], [125, 235, 0], [125, 235, 0], [136.375, 284, 0], [171, 312, 0], [-1, 312, 0] ]; poly2 = [ [-1, 0, 30], [145.624, 0, 30], [145.624, 235, 30], [145.624, 235, 30], [156.999, 284, 30], [191.624, 312, 30], [-1, 312, 30] ]; skin([poly1, poly2]); -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11340.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Fri, Jan 30, 2015 11:04 PM

On Jan 30, 2015, at 17:49 PM, Bananapeel lunatica.xiaoyu@gmail.com wrote:

Thanks. Unfortunately I still get the same problem as shown above.

Just to clarify: Is your problem that the tessellation of the concave endcaps is not correct? ..or are your experiencing other issues?

The endcap issue is a bug and will be fixed. I’ll open an issue.

-Marius

On Jan 30, 2015, at 17:49 PM, Bananapeel <lunatica.xiaoyu@gmail.com> wrote: > Thanks. Unfortunately I still get the same problem as shown above. > Just to clarify: Is your problem that the tessellation of the concave endcaps is not correct? ..or are your experiencing other issues? The endcap issue is a bug and will be fixed. I’ll open an issue. -Marius
MK
Marius Kintel
Fri, Jan 30, 2015 11:31 PM

On Jan 30, 2015, at 17:49 PM, Bananapeel lunatica.xiaoyu@gmail.com wrote:

Thanks. Unfortunately I still get the same problem as shown above.

Looks like an instance of this:
https://github.com/openscad/openscad/pull/793

One workaround: add any other object to your scene and render using F6.

-Marius

On Jan 30, 2015, at 17:49 PM, Bananapeel <lunatica.xiaoyu@gmail.com> wrote: > Thanks. Unfortunately I still get the same problem as shown above. > Looks like an instance of this: https://github.com/openscad/openscad/pull/793 One workaround: add any other object to your scene and render using F6. -Marius
B
Bananapeel
Sat, Jan 31, 2015 10:20 AM

I don't know what an endcap is, but those things highlighted in pink in the
concave region shouldn't be there at all. That's my problem.

By adding a cube(1); after the skin call() the problem is corrected,
however, the shape now lacks the two large faces:

skin([poly1, poly2]);
cube(1);
http://forum.openscad.org/file/n11357/open.png

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11357.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I don't know what an endcap is, but those things highlighted in pink in the concave region shouldn't be there at all. That's my problem. By adding a cube(1); after the skin call() the problem is corrected, however, the shape now lacks the two large faces: skin([poly1, poly2]); cube(1); <http://forum.openscad.org/file/n11357/open.png> -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11357.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Sat, Jan 31, 2015 11:50 PM

On Jan 31, 2015, at 05:20 AM, Bananapeel lunatica.xiaoyu@gmail.com wrote:

By adding a cube(1); after the skin call() the problem is corrected,
however, the shape now lacks the two large faces:

That’s odd…
Could you verify that you have the latest development snapshot of OpenSCAD and the latest master of both scad-utils and list-comprehension-demos?

If it still doesn’t work, you’re experiencing a system-dependent issue which would be high priority to fix.

-Marius

On Jan 31, 2015, at 05:20 AM, Bananapeel <lunatica.xiaoyu@gmail.com> wrote: > By adding a cube(1); after the skin call() the problem is corrected, > however, the shape now lacks the two large faces: > That’s odd… Could you verify that you have the latest development snapshot of OpenSCAD and the latest master of both scad-utils and list-comprehension-demos? If it still doesn’t work, you’re experiencing a system-dependent issue which would be high priority to fix. -Marius
B
Bananapeel
Sun, Feb 1, 2015 12:52 PM

Today I can't reproduce the problem above. Instead it's back to the original
problem.

http://forum.openscad.org/file/n11367/openscad_error.png

I redownloaded skin.scad. I believe I have the latest version of scad-utils
because I downloaded it yesterday (clicked download zip on github). Also I
downloaded the latest dev snapshot of x64 openscad for windows. No
difference.

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11367.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Today I can't reproduce the problem above. Instead it's back to the original problem. <http://forum.openscad.org/file/n11367/openscad_error.png> I redownloaded skin.scad. I believe I have the latest version of scad-utils because I downloaded it yesterday (clicked download zip on github). Also I downloaded the latest dev snapshot of x64 openscad for windows. No difference. -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11367.html Sent from the OpenSCAD mailing list archive at Nabble.com.
B
Bananapeel
Sun, Feb 1, 2015 12:53 PM

Sorry, forgot to add the cube() call. It works correctly in the latest
openscad snapshot. :) Great work.

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11368.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Sorry, forgot to add the cube() call. It works correctly in the latest openscad snapshot. :) Great work. -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11368.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Sun, Feb 1, 2015 3:49 PM

On Feb 1, 2015, at 07:53 AM, Bananapeel lunatica.xiaoyu@gmail.com wrote:

Sorry, forgot to add the cube() call. It works correctly in the latest
openscad snapshot. :) Great work.

Cool.
If you follow this issue, you’ll be notified when the remaining issue is fixed:
https://github.com/openscad/openscad/pull/793

-Marius

On Feb 1, 2015, at 07:53 AM, Bananapeel <lunatica.xiaoyu@gmail.com> wrote: > Sorry, forgot to add the cube() call. It works correctly in the latest > openscad snapshot. :) Great work. > Cool. If you follow this issue, you’ll be notified when the remaining issue is fixed: https://github.com/openscad/openscad/pull/793 -Marius
A
adrian
Fri, Feb 6, 2015 2:57 PM

Sounds like you want some sort of variation of this:

This takes a set of points in ccw order (from above) and then appends
another set of points in ccw order (from above) and creates a skin from
that. If the direction is -ve in the z-axis, the side wall faces will be
flipped.

Sorry, this is not production code and was actually a test for something
else, but I think you can get the idea.

A

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11526.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Sounds like you want some sort of variation of this: This takes a set of points in ccw order (from above) and then appends another set of points in ccw order (from above) and creates a skin from that. If the direction is -ve in the z-axis, the side wall faces will be flipped. Sorry, this is not production code and was actually a test for something else, but I think you can get the idea. A -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11526.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
adrian
Fri, Feb 6, 2015 2:59 PM

kintel wrote

See https://github.com/openscad/list-comprehension-demos

..and try this:
use <list-comprehension-demos/skin.scad>
skin([poly1,poly2]);

Nice! :D

A

--
View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11527.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

kintel wrote > See https://github.com/openscad/list-comprehension-demos > > ..and try this: > use &lt;list-comprehension-demos/skin.scad&gt; > skin([poly1,poly2]); Nice! :D A -- View this message in context: http://forum.openscad.org/Connect-planes-with-corresponding-vertices-tp11326p11527.html Sent from the OpenSCAD mailing list archive at Nabble.com.