Skip to content

Commit

Permalink
STYLE: Rename mesh-to-polydata to mesh-to-poly-data
Browse files Browse the repository at this point in the history
So the generated function names, etc. are "PolyData" instead of
"Polydata."
  • Loading branch information
thewtex committed Feb 12, 2023
1 parent a77ed2e commit 58730f9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
17 changes: 17 additions & 0 deletions examples/wasm/mesh-to-poly-data/CMakeLists.txt
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.16)
project(mesh-to-poly-data)

set(CMAKE_CXX_STANDARD 17)

find_package(ITK REQUIRED
COMPONENTS
WebAssemblyInterface
MeshToPolyData
)
include(${ITK_USE_FILE})

add_executable(mesh-to-poly-data mesh-to-poly-data.cxx)
target_link_libraries(mesh-to-poly-data PUBLIC ${ITK_LIBRARIES})

add_executable(poly-data-to-mesh poly-data-to-mesh.cxx)
target_link_libraries(poly-data-to-mesh PUBLIC ${ITK_LIBRARIES})
Expand Up @@ -57,7 +57,7 @@ class PipelineFunctor

int main (int argc, char * argv[])
{
itk::wasm::Pipeline pipeline("mesh-to-polydata", "Convert an itk::Mesh to an itk::PolyData", argc, argv);
itk::wasm::Pipeline pipeline("mesh-to-poly-data", "Convert an itk::Mesh to an itk::PolyData", argc, argv);

itk::WasmMeshIOFactory::RegisterOneFactory();

Expand Down
Expand Up @@ -56,7 +56,7 @@ class PipelineFunctor

int main (int argc, char * argv[])
{
itk::wasm::Pipeline pipeline("polydata-to-mesh", "Convert an itk::PolyData to an itk::Mesh", argc, argv);
itk::wasm::Pipeline pipeline("poly-data-to-mesh", "Convert an itk::PolyData to an itk::Mesh", argc, argv);

itk::WasmMeshIOFactory::RegisterOneFactory();

Expand Down
17 changes: 0 additions & 17 deletions examples/wasm/mesh-to-polydata/CMakeLists.txt

This file was deleted.

4 changes: 2 additions & 2 deletions examples/wasm/package.json
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"build": "npm run emscripten && npm run bindgen",
"emscripten": "npx itk-wasm -s ./mesh-to-polydata -b emscripten-build build",
"bindgen": "npx itk-wasm -s ./mesh-to-polydata -b emscripten-build bindgen --package-name mesh-to-polydata --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"emscripten": "npx itk-wasm -s ./mesh-to-poly-data -b emscripten-build build",
"bindgen": "npx itk-wasm -s ./mesh-to-poly-data -b emscripten-build bindgen --package-name mesh-to-poly-data --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"clean": "git clean -fdx -e node_modules"
},
"license": "Apache-2.0",
Expand Down

0 comments on commit 58730f9

Please sign in to comment.