~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to xs/src/Surface.hpp

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef slic3r_Surface_hpp_
 
2
#define slic3r_Surface_hpp_
 
3
 
 
4
#include "ExPolygon.hpp"
 
5
 
 
6
namespace Slic3r {
 
7
 
 
8
enum SurfaceType { stTop, stBottom, stBottomBridge, stInternal, stInternalSolid, stInternalBridge, stInternalVoid };
 
9
 
 
10
class Surface
 
11
{
 
12
    public:
 
13
    ExPolygon       expolygon;
 
14
    SurfaceType     surface_type;
 
15
    double          thickness;          // in mm
 
16
    unsigned short  thickness_layers;   // in layers
 
17
    double          bridge_angle;       // in radians, ccw, 0 = East, only 0+ (negative means undefined)
 
18
    unsigned short  extra_perimeters;
 
19
    double area() const;
 
20
    bool is_solid() const;
 
21
    bool is_external() const;
 
22
    bool is_bottom() const;
 
23
    bool is_bridge() const;
 
24
    
 
25
    #ifdef SLIC3RXS
 
26
    void from_SV_check(SV* surface_sv);
 
27
    #endif
 
28
};
 
29
 
 
30
typedef std::vector<Surface> Surfaces;
 
31
typedef std::vector<Surface*> SurfacesPtr;
 
32
 
 
33
}
 
34
 
 
35
#endif