Skip to content

Commit 58730f9

Browse files
committed
STYLE: Rename mesh-to-polydata to mesh-to-poly-data
So the generated function names, etc. are "PolyData" instead of "Polydata."
1 parent a77ed2e commit 58730f9

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
project(mesh-to-poly-data)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
6+
find_package(ITK REQUIRED
7+
COMPONENTS
8+
WebAssemblyInterface
9+
MeshToPolyData
10+
)
11+
include(${ITK_USE_FILE})
12+
13+
add_executable(mesh-to-poly-data mesh-to-poly-data.cxx)
14+
target_link_libraries(mesh-to-poly-data PUBLIC ${ITK_LIBRARIES})
15+
16+
add_executable(poly-data-to-mesh poly-data-to-mesh.cxx)
17+
target_link_libraries(poly-data-to-mesh PUBLIC ${ITK_LIBRARIES})

examples/wasm/mesh-to-polydata/mesh-to-polydata.cxx renamed to examples/wasm/mesh-to-poly-data/mesh-to-poly-data.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class PipelineFunctor
5757

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

6262
itk::WasmMeshIOFactory::RegisterOneFactory();
6363

examples/wasm/mesh-to-polydata/polydata-to-mesh.cxx renamed to examples/wasm/mesh-to-poly-data/poly-data-to-mesh.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PipelineFunctor
5656

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

6161
itk::WasmMeshIOFactory::RegisterOneFactory();
6262

examples/wasm/mesh-to-polydata/CMakeLists.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"type": "module",
66
"scripts": {
77
"build": "npm run emscripten && npm run bindgen",
8-
"emscripten": "npx itk-wasm -s ./mesh-to-polydata -b emscripten-build build",
9-
"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'",
8+
"emscripten": "npx itk-wasm -s ./mesh-to-poly-data -b emscripten-build build",
9+
"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'",
1010
"clean": "git clean -fdx -e node_modules"
1111
},
1212
"license": "Apache-2.0",

0 commit comments

Comments
 (0)