Slic3r-master.rar


3D打印时需要把STL文件通过切片生成G代码,Slic3r-master.rar是比较流行的一款切片软件。
资源截图
代码片段和文件信息
#include “BoundingBox.hpp“
#include 

namespace Slic3r {

template 
BoundingBoxbase::BoundingBoxbase(const std::vector &points)
{
    if (points.empty()) CONFESS(“Empty point set supplied to BoundingBoxbase constructor“);
    typename std::vector::const_iterator it = points.begin();
    this->min.x = this->max.x = it->x;
    this->min.y = this->max.y = it->y;
    for (++it; it != points.end(); ++it) {
        this->min.x = std::min(it->x this->min.x);
        this->min.y = std::min(it->y this->min.y);
        this->max.x = std::max(it->x this->max.x);
        this->max.y = std::max(it->y this->max.y);
    }
}
template BoundingBoxbase::BoundingBoxbase(const std::vector &points);
template BoundingBoxbase::BoundingBoxbase(const std::vector &points);

template 
BoundingBox3base::BoundingBox3base(const std::vector &points)
    : BoundingBoxbase(points)
{
    if (points.empty()) CONFESS(“Empty point set supplied to BoundingBox3base constructor“);
    typename std::vector::const_iterator it = points.begin();
    this->min.z = this->max.z = it->z;
    for (++it; it != points.end(); ++it) {
        this->min.z = std::min(it->z this->min.z);
        this->max.z = std::max(it->z this->max.z);
    }
}
template BoundingBox3base::BoundingBox3base(const std::vector &points);

BoundingBox::BoundingBox(const Lines &lines)
{
    Points points;
    for (Lines::const_iterator line = lines.begin(); line != lines.end(); ++line) {
        points.push_back(line->a);
        points.push_back(line->b);
    }
    *this = BoundingBox(points);
}

void
BoundingBox::polygon(Polygon* polygon) const
{
    polygon->points.clear();
    polygon->points.resize(4);
    polygon->points[0].x = this->min.x;
    polygon->points[0].y = this->min.y;
    polygon->points[1].x = this->max.x;
    polygon->points[1].y = this->min.y;
    polygon->points[2].x = this->max.x;
    polygon->points[2].y = this->max.y;
    polygon->points[3].x = this->min.x;
    polygon->points[3].y = this->max.y;
}

template  void
BoundingBoxbase::scale(double factor)
{
    this->min.scale(factor);
    this->max.scale(factor);
}
template void BoundingBoxbase::scale(double factor);
template void BoundingBoxbase::scale(double factor);
template void BoundingBoxbase::scale(double factor);

template  void
BoundingBoxbase::merge(const PointClass &point)
{
    this->min.x = std::min(point.x this->min.x);
    this->min.y = std::min(point.y this->min.y);
    this->max.x = std::max(point.x this->max.x);
    this->max.y = std::max(point.y this->max.y);
}
template void BoundingBoxbase::merge(const Point &point);
template void BoundingBoxbase::merge(const Pointf &point);

template  void
BoundingBoxbase::merge(const Bou

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         96  2014-06-19 11:07  Slic3r-master.gitignore

     文件        137  2014-06-19 11:07  Slic3r-master.travis.yml

     文件       5049  2014-06-19 11:07  Slic3r-masterBuild.PL

     文件       1667  2014-06-19 11:07  Slic3r-masterCONTRIBUTING.md

     文件      14569  2014-06-19 11:07  Slic3r-masterlibSlic3rConfig.pm

     文件       1169  2014-06-19 11:07  Slic3r-masterlibSlic3rExPolygon.pm

     文件       1567  2014-06-19 11:07  Slic3r-masterlibSlic3rExtruder.pm

     文件        245  2014-06-19 11:07  Slic3r-masterlibSlic3rExtrusionLoop.pm

     文件         73  2014-06-19 11:07  Slic3r-masterlibSlic3rExtrusionPathCollection.pm

    ..AD...         0  2014-06-19 11:07  Slic3r-masterlibSlic3rExtrusionPath

     文件        411  2014-06-19 11:07  Slic3r-masterlibSlic3rExtrusionPath.pm

     文件        130  2014-06-19 11:07  Slic3r-masterlibSlic3rFillArchimedeanChords.pm

     文件       2261  2014-06-19 11:07  Slic3r-masterlibSlic3rFillase.pm

     文件       2518  2014-06-19 11:07  Slic3r-masterlibSlic3rFillConcentric.pm

     文件        335  2014-06-19 11:07  Slic3r-masterlibSlic3rFillFlowsnake.pm

     文件        120  2014-06-19 11:07  Slic3r-masterlibSlic3rFillHilbertCurve.pm

     文件       5324  2014-06-19 11:07  Slic3r-masterlibSlic3rFillHoneycomb.pm

     文件        150  2014-06-19 11:07  Slic3r-masterlibSlic3rFillLine.pm

     文件        155  2014-06-19 11:07  Slic3r-masterlibSlic3rFillOctagramSpiral.pm

     文件       1667  2014-06-19 11:07  Slic3r-masterlibSlic3rFillPlanePath.pm

     文件       4778  2014-06-19 11:07  Slic3r-masterlibSlic3rFillRectilinear.pm

    ..AD...         0  2014-06-19 11:07  Slic3r-masterlibSlic3rFill

     文件       9756  2014-06-19 11:07  Slic3r-masterlibSlic3rFill.pm

     文件        337  2014-06-19 11:07  Slic3r-masterlibSlic3rFlow.pm

     文件       5824  2014-06-19 11:07  Slic3r-masterlibSlic3rFormatAMFParser.pm

    ..AD...         0  2014-06-19 11:07  Slic3r-masterlibSlic3rFormatAMF

     文件       4159  2014-06-19 11:07  Slic3r-masterlibSlic3rFormatAMF.pm

     文件        880  2014-06-19 11:07  Slic3r-masterlibSlic3rFormatOBJ.pm

     文件        880  2014-06-19 11:07  Slic3r-masterlibSlic3rFormatSTL.pm

    ..AD...         0  2014-06-19 11:07  Slic3r-masterlibSlic3rFormat

............此处省略2081个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)