From 7eb82bef563fe3829f8e8a123f21c23f899554b6 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 28 Oct 2024 09:25:47 -0400 Subject: [PATCH] BUG: ReadDEFORMFileFilter-Set SharedQuadList names to proper defaults Signed-off-by: Michael Jackson --- .../SimplnxCore/Filters/ReadDeformKeyFileV12Filter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/ReadDeformKeyFileV12Filter.cpp b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/ReadDeformKeyFileV12Filter.cpp index dc20f7af7d..974a9881b8 100644 --- a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/ReadDeformKeyFileV12Filter.cpp +++ b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/ReadDeformKeyFileV12Filter.cpp @@ -63,7 +63,7 @@ std::string ReadDeformKeyFileV12Filter::humanName() const //------------------------------------------------------------------------------ std::vector ReadDeformKeyFileV12Filter::defaultTags() const { - return {className(), "IO", "Input", "Read", "Import"}; + return {className(), "IO", "Input", "Read", "Import", "DEFORM"}; } //------------------------------------------------------------------------------ @@ -73,8 +73,8 @@ Parameters ReadDeformKeyFileV12Filter::parameters() const // Create the parameter descriptors that are needed for this filter params.insertSeparator(Parameters::Separator{"Input Parameter(s)"}); - params.insert(std::make_unique(k_InputFilePath_Key, "Input File", "File path that points to the imported file", fs::path(""), FileSystemPathParameter::ExtensionsType{}, - FileSystemPathParameter::PathType::InputFile)); + params.insert(std::make_unique(k_InputFilePath_Key, "Input File", "File path that points to the imported file", fs::path(""), + FileSystemPathParameter::ExtensionsType{".key"}, FileSystemPathParameter::PathType::InputFile)); params.insertSeparator(Parameters::Separator{"Output Data Object(s)"}); params.insert(std::make_unique(k_QuadGeomPath_Key, "Quad Geometry", "The created Quad Geometry from imported from file", DataPath({"Quad Geometry"}))); @@ -136,7 +136,8 @@ IFilter::PreflightResult ReadDeformKeyFileV12Filter::preflightImpl(const DataStr // Read from the cache and create objects { auto createAction = std::make_unique(pQuadGeomPathValue, s_HeaderCache[m_InstanceId].cellAttrMatTupleCount, s_HeaderCache[m_InstanceId].vertexAttrMatTupleCount, - vertexDataPath.getTargetName(), cellDataPath.getTargetName(), "SharedVertices", "SharedFaces"); + vertexDataPath.getTargetName(), cellDataPath.getTargetName(), nx::core::CreateQuadGeometryAction::k_DefaultVerticesName, + nx::core::CreateQuadGeometryAction::k_DefaultFacesName); resultOutputActions.value().appendAction(std::move(createAction)); }