- std::shared_ptr<GeomAPI_Shape> aShape;
- if(aShapes.size() == 1) {
- aShape = aShapes.front();
- } else {
- aShape = GeomAlgoAPI_CompoundBuilder::compound(aShapes);
- }
+ std::shared_ptr<GeomAPI_Shape> aShape =
+ aShapes.size() == 1 ? aShapes.front() : GeomAlgoAPI_CompoundBuilder::compound(aShapes);
return false;
ExchangePlugin_ExportFeature* aThis = ((ExchangePlugin_ExportFeature*)(this));
AttributeStringPtr aFormatAttr = aThis->string(FILE_FORMAT_ID());
return false;
ExchangePlugin_ExportFeature* aThis = ((ExchangePlugin_ExportFeature*)(this));
AttributeStringPtr aFormatAttr = aThis->string(FILE_FORMAT_ID());
if (aFormat.empty()) { // get default format for the extension
AttributeStringPtr aFilePathAttr = aThis->string(FILE_PATH_ID());
std::string aFilePath = aFilePathAttr->value();
if (!aFilePath.empty()) {
std::string anExtension = GeomAlgoAPI_Tools::File_Tools::extension(aFilePath);
if (aFormat.empty()) { // get default format for the extension
AttributeStringPtr aFilePathAttr = aThis->string(FILE_PATH_ID());
std::string aFilePath = aFilePathAttr->value();
if (!aFilePath.empty()) {
std::string anExtension = GeomAlgoAPI_Tools::File_Tools::extension(aFilePath);