2013-09-06 16:36:38 +00:00
|
|
|
#include "Surface.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
2013-09-13 12:48:40 +00:00
|
|
|
double
|
|
|
|
Surface::area() const
|
|
|
|
{
|
|
|
|
return this->expolygon.area();
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef SLIC3RXS
|
2013-09-06 16:36:38 +00:00
|
|
|
SV*
|
|
|
|
Surface::to_SV_ref() {
|
|
|
|
SV* sv = newSV(0);
|
|
|
|
sv_setref_pv( sv, "Slic3r::Surface::Ref", (void*)this );
|
|
|
|
return sv;
|
|
|
|
}
|
2013-09-13 12:48:40 +00:00
|
|
|
#endif
|
2013-09-06 16:36:38 +00:00
|
|
|
|
|
|
|
}
|