if (aShape.IsNull())
return; // null shape inside
- /*if(!theIsStoreSameShapes) {
+ if(!theIsStoreSameShapes) {
Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(aShape, aShapeLab);
if(!aNS.IsNull() && !aNS->IsEmpty()) {
// This shape is already in document, store reference instead of shape;
TDF_Reference::Set(aShapeLab, aFoundLabel);
return;
}
- }*/
+ }
aBuilder.Generated(aShape);
// register name
TopoDS_Iterator aSubIter(aShapeNew);
for(int aTag = theDecomposeSolidsTag; aSubIter.More(); aSubIter.Next()) {
- /*const TopoDS_Shape& aShape = aSubIter.Value();
+ const TopoDS_Shape& aShape = aSubIter.Value();
Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(aShape, aShapeLab);
if(!aNS.IsNull() && !aNS->IsEmpty()) {
// This shape is already in document, don't add it.
continue;
- }*/
+ }
TNaming_Builder aSubBuilder(aShapeLab.FindChild(aTag++));
aSubBuilder.Generated(aSubIter.Value());
if(!aName.IsEmpty()) {
std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
if (aData) {
TDF_Label aShapeLab = aData->shapeLab();
- /*Handle(TDF_Reference) aRef;
+ Handle(TDF_Reference) aRef;
if (aShapeLab.FindAttribute(TDF_Reference::GetID(), aRef)) {
aShapeLab = aRef->Get();
- }*/
+ }
Handle(TNaming_NamedShape) aName;
if (aShapeLab.FindAttribute(TNaming_NamedShape::GetID(), aName)) {
TopoDS_Shape aShape = aName->Get();