discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

puzzling behavior

J
jon
Sat, Jun 4, 2016 5:31 PM

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();

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();
TP
Torsten Paul
Sat, Jun 4, 2016 5:43 PM

On 06/04/2016 07:31 PM, jon wrote:

A friend demonstrated this to me: is this a known problem?

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.
J
jon
Sat, Jun 4, 2016 5:55 PM

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
Discuss@lists.openscad.org
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

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 > Discuss@lists.openscad.org > 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 > >
TP
Torsten Paul
Sat, Jun 4, 2016 6:48 PM

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.

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.