discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Intersection broken in preview

NH
nop head
Mon, Dec 26, 2016 1:02 PM

Sorry title should be intersection broken in preview.

On 26 December 2016 at 13:01, nop head nop.head@gmail.com wrote:

A slightly modified version of Jon's code doesn't preview correctly with
OpenSCAD 2016,10,4

le = 10;    // length
d1 = 25;    // diameter of top
d2 = 35;    // diameter of bottom
d  = -8;    // delta to drop center of bottom

$fn = 100;

z_offset = -6;

module shape() {
translate([0, 0, z_offset])
intersection(c) {
difference() {
rotate([0, 90, 0])
#cylinder(h = le, d = d1, center = true);

             translate([0, 0, d])
                 rotate([0, 90, 0])
                     cylinder(h = le + 2, d = d2, center = true);
         }

         //intersection() {
             translate([10, 0, 0])
                 cylinder(h = 100, d = 30);

             translate([-10, 0, 0])
                 cylinder(h = 100, d = 30);
         //}
    }

}

echo(version());
shape();

F6 gives the correct shape but F5 doesn't unless the extra intersection is
enabled. Also the first cylinder should be highlighted but the difference
gets highlighted instead. Are these known bugs or should I open an issue?

Sorry title should be intersection broken in preview. On 26 December 2016 at 13:01, nop head <nop.head@gmail.com> wrote: > A slightly modified version of Jon's code doesn't preview correctly with > OpenSCAD 2016,10,4 > > le = 10; // length > d1 = 25; // diameter of top > d2 = 35; // diameter of bottom > d = -8; // delta to drop center of bottom > > $fn = 100; > > z_offset = -6; > > > module shape() { > translate([0, 0, z_offset]) > intersection(c) { > difference() { > rotate([0, 90, 0]) > #cylinder(h = le, d = d1, center = true); > > translate([0, 0, d]) > rotate([0, 90, 0]) > cylinder(h = le + 2, d = d2, center = true); > } > > //intersection() { > translate([10, 0, 0]) > cylinder(h = 100, d = 30); > > translate([-10, 0, 0]) > cylinder(h = 100, d = 30); > //} > } > } > > echo(version()); > shape(); > > F6 gives the correct shape but F5 doesn't unless the extra intersection is > enabled. Also the first cylinder should be highlighted but the difference > gets highlighted instead. Are these known bugs or should I open an issue? > >
TP
Torsten Paul
Mon, Dec 26, 2016 1:07 PM

On 12/26/2016 02:02 PM, nop head wrote:

Sorry title should be intersection broken in preview.

That might be the same issue as reported in
https://github.com/openscad/openscad/issues/1803

ciao,
Torsten.

On 12/26/2016 02:02 PM, nop head wrote: > Sorry title should be intersection broken in preview. > That might be the same issue as reported in https://github.com/openscad/openscad/issues/1803 ciao, Torsten.
NH
nop head
Mon, Dec 26, 2016 1:47 PM

Looks like it is because moving the difference to the end of the
intersection gives the correct preview.

on the first argument to difference seems to be a different bug.

On 26 December 2016 at 13:07, Torsten Paul Torsten.Paul@gmx.de wrote:

On 12/26/2016 02:02 PM, nop head wrote:

Sorry title should be intersection broken in preview.

Looks like it is because moving the difference to the end of the intersection gives the correct preview. # on the first argument to difference seems to be a different bug. On 26 December 2016 at 13:07, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 12/26/2016 02:02 PM, nop head wrote: > > Sorry title should be intersection broken in preview. > > > That might be the same issue as reported in > https://github.com/openscad/openscad/issues/1803 > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >