TopoDS_Shape aNewSub = theSubShape->impl<TopoDS_Shape>();
FeaturePtr aFeatureOwner = std::dynamic_pointer_cast<ModelAPI_Feature>(owner());
if (aFeatureOwner->document() != theContext->document()) { // reference to the sketch face
- if (theSubShape->shapeType() == TopAbs_FACE) { // sketch face
+ if (theSubShape->shapeType() == GeomAPI_Shape::FACE) { // sketch face
ResultConstructionPtr aConstr =
std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(theContext);
int aFaceIndex = -1, aFacesNum = aConstr->facesNum();
TDataStd_Integer::Set(aSelLab, kEXT_SKETCH_FACE, aFaceIndex); // store index of the face
return;
}
- } else if (theSubShape->shapeType() == TopAbs_EDGE || // sketch result edge (full one)
- theSubShape->shapeType() == TopAbs_VERTEX) { // or start/end vertex
- bool isVertex = theSubShape->shapeType() == TopAbs_VERTEX;
+ } else if (theSubShape->shapeType() == GeomAPI_Shape::EDGE ||// sketch result edge (full one)
+ theSubShape->shapeType() == GeomAPI_Shape::VERTEX) { // or start/end vertex
+ bool isVertex = theSubShape->shapeType() == GeomAPI_Shape::VERTEX;
CompositeFeaturePtr aComposite = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(
theContext->document()->feature(theContext));
if (aComposite.get()) { // iterate edges of composite to find index of matched with value
{
std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
if (aData) {
- TDF_Label& aShapeLab = aData->shapeLab();
+ TDF_Label aShapeLab = aData->shapeLab();
// clean builders
clean();
// store the new shape as primitive
{
std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
if (aData) {
- TDF_Label& aShapeLab = aData->shapeLab();
+ TDF_Label aShapeLab = aData->shapeLab();
// clean builders
clean();
// store the new shape as primitive
TopoDS_Shape aShape = theShape->impl<TopoDS_Shape>();
std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
if (aData) {
- TDF_Label& aShapeLab = aData->shapeLab();
+ TDF_Label aShapeLab = aData->shapeLab();
Handle(TNaming_NamedShape) aName;
if (aShapeLab.FindAttribute(TNaming_NamedShape::GetID(), aName)) {
TopoDS_Shape aLatest = TNaming_Tool::CurrentShape(aName);