libslic3r
Library for generating gcode from 3d models
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
libslic3r.h File Reference
#include <ostream>
#include <iostream>
#include <math.h>
#include <queue>
#include <sstream>
#include <vector>
#include <boost/thread.hpp>
#include <cstdint>

Go to the source code of this file.

Namespaces

 Slic3r
 

Macros

#define _USE_MATH_DEFINES
 
#define CONFESS(...)   confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)
 
#define SLIC3R_CPPVER   0
 
#define STDMOVE(WHAT)   (WHAT)
 
#define __TRANS(s)   s
 
#define SLIC3R_BUILD_COMMIT   (Unknown revision)
 
#define VER1_(x)   #x
 
#define VER_(x)   VER1_(x)
 
#define BUILD_COMMIT   VER_(SLIC3R_BUILD_COMMIT)
 

Typedefs

typedef long Slic3r::coord_t
 
typedef double Slic3r::coordf_t
 

Enumerations

enum  Slic3r::Axis { Slic3r::X =0, Slic3r::Y, Slic3r::Z }
 

Functions

void confess_at (const char *file, int line, const char *func, const char *pat,...)
 
constexpr coord_t Slic3r::scale_ (const coordf_t &val)
 
constexpr coordf_t Slic3r::unscale (const coord_t &val)
 
template<class T >
void Slic3r::append_to (std::vector< T > &dst, const std::vector< T > &src)
 
template<class T >
void Slic3r::_parallelize_do (std::queue< T > *queue, boost::mutex *queue_mutex, boost::function< void(T)> func)
 
template<class T >
void Slic3r::parallelize (std::queue< T > queue, boost::function< void(T)> func, int threads_count=boost::thread::hardware_concurrency())
 
template<class T >
void Slic3r::parallelize (T start, T end, boost::function< void(T)> func, int threads_count=boost::thread::hardware_concurrency())
 

Variables

constexpr auto Slic3r::SLIC3R_VERSION = "1.3.1-dev"
 
const auto Slic3r::SLIC3R_GIT_STR = std::string(BUILD_COMMIT)
 
const auto Slic3r::SLIC3R_GIT = SLIC3R_GIT_STR.c_str()
 
constexpr auto Slic3r::SCALING_FACTOR = 0.000001
 
constexpr auto Slic3r::EPSILON = 1e-4
 
constexpr auto Slic3r::SCALED_EPSILON = scale_(EPSILON)
 
constexpr auto Slic3r::RESOLUTION = 0.0125
 
constexpr auto Slic3r::SCALED_RESOLUTION = scale_(RESOLUTION)
 
constexpr auto Slic3r::PI = 3.141592653589793238
 
constexpr auto Slic3r::LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER = 0.15
 
constexpr coord_t Slic3r::SMALL_PERIMETER_LENGTH = scale_(6.5) * 2 * PI
 
constexpr coordf_t Slic3r::INSET_OVERLAP_TOLERANCE = 0.4
 
constexpr coordf_t Slic3r::EXTERNAL_INFILL_MARGIN = 3
 
constexpr coord_t Slic3r::SCALED_EXTERNAL_INFILL_MARGIN = scale_(EXTERNAL_INFILL_MARGIN)
 
constexpr float Slic3r::CLIPPER_OFFSET_SCALE = 100000.0
 

Macro Definition Documentation

◆ __TRANS

#define __TRANS (   s)    s

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

◆ BUILD_COMMIT

#define BUILD_COMMIT   VER_(SLIC3R_BUILD_COMMIT)

◆ CONFESS

#define CONFESS (   ...)    confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)

◆ SLIC3R_BUILD_COMMIT

#define SLIC3R_BUILD_COMMIT   (Unknown revision)

◆ SLIC3R_CPPVER

#define SLIC3R_CPPVER   0

◆ STDMOVE

#define STDMOVE (   WHAT)    (WHAT)

◆ VER1_

#define VER1_ (   x)    #x

◆ VER_

#define VER_ (   x)    VER1_(x)

Function Documentation

◆ confess_at()

void confess_at ( const char *  file,
int  line,
const char *  func,
const char *  pat,
  ... 
)