-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ __pycache__ | |
*.pyc | ||
_version.py | ||
.DS_Store | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
F3D is a fast and minimalist 3D viewer. Implemented in C++, it has been cross-compiled with emscripten to a WebAssembly module. | ||
|
||
While the webassembly module might be quite large (~14MB), it is self contained and requires no external dependency. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
cmake -S /src -B /build \ | ||
-DBUILD_SHARED_LIBS=OFF \ | ||
-DF3D_STRICT_BUILD=ON \ | ||
-DF3D_PLUGIN_BUILD_EXODUS=OFF \ | ||
-DF3D_WASM_COPY_APP=ON \ | ||
-DCMAKE_BUILD_TYPE=$1 \ | ||
-DVTK_DIR:PATH=/depends/lib/cmake/vtk | ||
|
||
cmake --build /build | ||
|
||
# Copy generated js/wasm to dist | ||
mkdir -p /src/webassembly/dist | ||
mv /build/bin/* /src/webassembly/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "f3d", | ||
"version": "2.5.0", | ||
"description": "Fast and minimalist 3D viewer framework", | ||
"main": "f3d.js", | ||
"files": ["main.js", "dist/f3d.*"], | ||
"scripts": { | ||
"_docker": "docker run --rm -e CMAKE_BUILD_PARALLEL_LEVEL -v $(pwd)/..:/src ghcr.io/f3d-app/f3d-wasm:latest", | ||
"clean": "npm run _docker -- rm -rf /src/webassembly/dist", | ||
"build:rel": "npm run _docker -- /src/webassembly/build.sh Release", | ||
"build:deb": "npm run _docker -- /src/webassembly/build.sh Debug", | ||
"serve": "npx serve dist", | ||
"prepare": "npm run clean && npm run build:rel" | ||
}, | ||
"repository": "github:f3d-app/f3d", | ||
"keywords": [ | ||
"3d", | ||
"webassembly", | ||
"viewer", | ||
"animation", | ||
"cad", | ||
"gltf", | ||
"vtk", | ||
"stl" | ||
], | ||
"author": "Michael Migliore and Mathieu Westphal", | ||
"license": "BSD-2-Clause", | ||
"bugs": "https://github.com/f3d-app/f3d/issues", | ||
"funding": "https://github.com/sponsors/f3d-app", | ||
"homepage": "https://f3d.app" | ||
} |