Sketcher: GeometryFacade - new static function to check for internal alignment

This commit is contained in:
Abdullah Tahiri
2022-10-18 08:13:28 +02:00
committed by abdullahtahiriyo
parent 5fe254e6f1
commit bad35fe26c
2 changed files with 9 additions and 0 deletions

View File

@@ -160,6 +160,14 @@ bool GeometryFacade::isInternalType(const Part::Geometry * geometry, InternalTyp
return gf->getInternalType() == type;
}
bool GeometryFacade::isInternalAligned(const Part::Geometry * geometry)
{
throwOnNullPtr(geometry);
auto gf = GeometryFacade::getFacade(geometry);
return gf->isInternalAligned();
}
bool GeometryFacade::getBlocked(const Part::Geometry * geometry)
{
throwOnNullPtr(geometry);

View File

@@ -123,6 +123,7 @@ public: // Utility methods
static bool getConstruction(const Part::Geometry * geometry);
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 bool getBlocked(const Part::Geometry * geometry);
public: