Skip to content

Horicylinder too tall and doesn't compile at layer_hight=2 extrusion_width=0.5 #241

Description

@drf5n

There's a couple extra layers on top of a horicylinder if the layer_height >= 4 extrusion_width. This is an odd case, but I was looking at printing out how 3DP holes work in a tangible-sized model and ran into this unexpected rendering/problem.

image


$explode = 0; // [0, 1]
assembly = "main"; // [main, back, RPI, case, enviro_case, RPI_case]

/* [Hidden] */

show_box = true;
show_enviroplus = true;
$pp1_colour = "grey";
$extrusion_width = 0.5;

// slicing params, for modules that car about filaments, like horihole
$nozzle = 0.4;
$layer_height = 1; // default 0.25 in global_defs.scad
$layer_height0 = 0.2; // default 0.25 in global_defs.scad


include <NopSCADlib/lib.scad>
//use <NopSCADlib/utils/core/core.scad>
//use <NopSCADlib/utils/core/teardrops.scad> // 
use <NopSCADlib/utils/horiholes.scad> // https://github.com/nophead/NopSCADlib/blob/master/utils/horiholes.scad


translate([10,0,0])ex2(z=0,h=10);


module ex2(d=5,z=0,h=0){
  rotate([00,0,0]){
      
    // cylinder(h=h*2,d=d,center=true);
      horicylinder(d/2,z=z,h=h);
      
      
      translate([d*2,0,0])difference(){
          cube([d*3,d*3,h]);
          translate([d*3/2,d*3/2,-eps])horihole(d/2,z=z,h=h+2*eps,center=false);
      //teardrop_plus(r=d/2,h=h*2); 

      }
  }
}  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions