+ if (Label().IsNull()) return 0;
+ Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
+
+ GEOMImpl_IOffset aCI( function );
+ Standard_Integer aType = function->GetType();
+
+ switch ( aType ) {
+ case OFFSET_SHAPE:
+ case OFFSET_SHAPE_COPY:
+ theOperationName = "OFFSET";
+ AddParam( theParams, "Object", aCI.GetShape() );
+ AddParam( theParams, "Offset", aCI.GetValue() );
+ break;
+ case OFFSET_THICKENING:
+ case OFFSET_THICKENING_COPY:
+ theOperationName = "THICKNESS";
+ AddParam( theParams, "Object", aCI.GetShape() );
+ AddParam( theParams, "Offset", aCI.GetParam() ? -aCI.GetValue() : aCI.GetValue() );
+ {
+ Handle(TColStd_HArray1OfInteger) aFacesIDs = aCI.GetFaceIDs();