GeometryFacade : Add static getInternalType and setInternalType

This commit is contained in:
Paddle
2023-11-16 11:31:09 +01:00
committed by abdullahtahiriyo
parent c66661124b
commit 6b2d6fc8eb
2 changed files with 18 additions and 0 deletions

View File

@@ -178,6 +178,22 @@ bool GeometryFacade::isInternalAligned(const Part::Geometry* geometry)
return gf->isInternalAligned();
}
InternalType::InternalType GeometryFacade::getInternalType(const Part::Geometry* geometry)
{
throwOnNullPtr(geometry);
auto gf = GeometryFacade::getFacade(geometry);
return gf->getInternalType();
}
void GeometryFacade::setInternalType(Part::Geometry* geometry, InternalType::InternalType type)
{
throwOnNullPtr(geometry);
auto gf = GeometryFacade::getFacade(geometry);
gf->setInternalType(type);
}
bool GeometryFacade::getBlocked(const Part::Geometry* geometry)
{
throwOnNullPtr(geometry);

View File

@@ -128,6 +128,8 @@ public: // Utility methods
static void setConstruction(Part::Geometry* geometry, bool construction);
static bool isInternalType(const Part::Geometry* geometry, InternalType::InternalType type);
static bool isInternalAligned(const Part::Geometry* geometry);
static InternalType::InternalType getInternalType(const Part::Geometry* geometry);
static void setInternalType(Part::Geometry* geometry, InternalType::InternalType type);
static bool getBlocked(const Part::Geometry* geometry);
public: