puzzling behavior

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

puzzling behavior

jon_bondy
A friend demonstrated this to me: is this a known problem? It seems as
if the implicit union() fails

Jon


module trimod(b, d, y, h){
polyhedron( points = [

[0, 0, 0], //point 0
[b, 0, 0], //point 1
[d, y, 0], //point 2
[0, 0, h], //point 3
[b, 0, h], //point 4
[d, y, h]], //point 5
faces = [
[3,4,5],
[0,3,4,1],
[4,5,2,1],
[0,1,2],
[0,2,5,3],
]
);
}

module ThisIsOK()
     trimod(3,4,6,1);

module ThisFails() {
     // when run with F6 the trimod loses most of its faces
     trimod(3,4,6,1);
     sphere(3);
     }

ThisIsOK();
!ThisFails();


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

Re: puzzling behavior

tp3
On 06/04/2016 07:31 PM, jon wrote:
> A friend demonstrated this to me: is this a known problem?

Wrong winding order of one of the polygons.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_model_showing_up_with_F5_but_not_F6.3F

ciao,
  Torsten.


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

Re: puzzling behavior

jon_bondy
Ah.  And this is invisible (and unreported) unless you show Thrown
Together in F5 mode.

Thank you


On 6/4/2016 1:43 PM, Torsten Paul wrote:

> On 06/04/2016 07:31 PM, jon wrote:
>> A friend demonstrated this to me: is this a known problem?
> Wrong winding order of one of the polygons.
>
> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_model_showing_up_with_F5_but_not_F6.3F
>
> ciao,
>    Torsten.
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7639 / Virus Database: 4591/12358 - Release Date: 06/04/16
>
>


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

Re: puzzling behavior

tp3
On 06/04/2016 07:55 PM, jon wrote:
> Ah.  And this is invisible (and unreported) unless you show
> Thrown Together in F5 mode.
>
Yes, I guess that really needs a better solution, both regarding
the visualization by default and also some additional error
checking.

ciao,
  Torsten.


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