Hello, everyone: I have finally finished a halfway decent implementation of my slicer, and posted it on the wiki here: http://www.pythonocc.org/wiki/index.php/DavesSlicerProject Thank you to Jelle and Thomas for their help. This script will accept a STEP or STL file, and slice it into layers. This script is not very impressive for those familiar with Occ, especially since there is already some slicer code out there. It does have a few interesting features, though:
* It uses solid operations (BrepAlgoAPI_Cut ) intead of BRepAlgoAPI_Section. this runs more slowly, but makes it easier operate on the resulting shape as a solid. i believe this will be useful later, for example so that i can compute the volume of the resulting solid , etc. * It produces a 'slice' file format that is compatible with a very elaborate set of python scripts used by Reprappers to create toolpaths for the slice. This format is based on SVG-- it has the unique and interesting property that the file is both human viewable, and machine readable. * Most of the code in this example does the task of converting a face to an svg path element-- a non-trivial amount of code as it turns out I hope to include this code into a modified version of interactiveViewer, which could be the basis for a very good quality rapid prototyping tool. If you are interested, here's the forum where i posted the tool for the use by Reprappers: http://forums.reprap.org/read.php?12,20013,23357 There is much work left, but for now it has succeeded in letting me slice STEP and really bad STL files, and then successfully generate toolpaths for use on a Reprap machine
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users