Sketcher: GeometryFacade - isInternalType static convenience function
This commit is contained in:
committed by
abdullahtahiriyo
parent
ac7185b088
commit
bb64e15c14
@@ -132,6 +132,12 @@ void GeometryFacade::setConstruction(Part::Geometry * geometry, bool constructio
|
||||
return gf->setConstruction(construction);
|
||||
}
|
||||
|
||||
bool GeometryFacade::isInternalType(const Part::Geometry * geometry, InternalType::InternalType type)
|
||||
{
|
||||
auto gf = GeometryFacade::getFacade(geometry);
|
||||
return gf->getInternalType() == type;
|
||||
}
|
||||
|
||||
PyObject * GeometryFacade::getPyObject(void)
|
||||
{
|
||||
return new GeometryFacadePy(new GeometryFacade(this->Geo));
|
||||
|
||||
Reference in New Issue
Block a user