Ported is_solid() and is_bridge() to XS. Also ported (but not used yet) group() to SurfaceCollection::group()

This commit is contained in:
Alessandro Ranellucci 2013-11-23 00:07:04 +01:00
parent de9d5403e8
commit 878d587196
6 changed files with 68 additions and 22 deletions

View file

@ -8,6 +8,21 @@ 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() {