mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 01:21:11 +08:00
36 lines
564 B
C++
36 lines
564 B
C++
#include "Surface.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
double
|
|
Surface::area() const
|
|
{
|
|
return this->expolygon.area();
|
|
}
|
|
|
|
bool
|
|
Surface::is_solid() const
|
|
{
|
|
return this->surface_type == stTop
|
|
|| this->surface_type == stBottom
|
|
|| this->surface_type == stInternalSolid;
|
|
}
|
|
|
|
bool
|
|
Surface::is_bridge() const
|
|
{
|
|
return this->surface_type == stBottom
|
|
|| this->surface_type == stInternalBridge;
|
|
}
|
|
|
|
#ifdef SLIC3RXS
|
|
SV*
|
|
Surface::to_SV_ref() {
|
|
SV* sv = newSV(0);
|
|
sv_setref_pv( sv, "Slic3r::Surface::Ref", (void*)this );
|
|
return sv;
|
|
}
|
|
#endif
|
|
|
|
}
|