Skip to content

export to STL causes crash [$50 awarded] #410

@ecopoesis

Description

@ecopoesis

When combined with fume_extractor_head.stl from http://www.thingiverse.com/thing:69729 I can render correctly, but when I export the STL OpenSCAD crashes, leaving a 0 byte STL file. THis is using 2013.1 on MacOS 10.8.4

// print_anchors.scad
// Prescott Ogden <ogden@pres.co.tt>

// This is a very simple script that takes an stl file as input and generates 
// a model with print anchors, as seen in thing 16596.
// It was written to enable designers to distribute files that may need such
// anchors in a way that is not process-specific, and can be used on well
// calibrated FDM machines as well as with SLS and LOM technologies.
// A user who needs print anchors can apply this script as a pre-processing step,
// before handing to a toolpath generator. Ideally, this will be made obsolete by 
// plugins to various toolpath generators, and ultimately improvements in raftless
// printing, but for now, this is extremely simple to implement and acheives 
// the desired effect.


file = "fume_extractor_head.stl"; // The input file, with printbed on xy plane.
anchor_height = 0.3; // height of print anchor in mm,
anchor_margin = 15;  // distance the anchor extends from the base of the part

epsilon = 0.001; // a very tiny distance, because openSCAD cannot yet 
            // do minkowski sums in 2D

union(){
    minkowski(){
        linear_extrude( height = epsilon, center = false, convexity = 10, twist = 0)
            projection (cut = true) import(file);

        cylinder(r = anchor_margin, h = anchor_height - epsilon, center = false);
    }

    translate([0, 0, anchor_height])
        import(file);
}


The $50 bounty on this issue has been claimed at Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions