planegcs
A webassembly wrapper for FreeCAD's 2D geometric solver.
File Explorer
Download Latest Version (.zip)- settings.json
- add_constraint_functions.cpp.njk
- constraint_param_index.ts.njk
- constraints.ts.njk
- enums.ts.njk
- gcs_system.cpp.njk
- gcs_system.ts.njk
- gcs_system_mock.ts.njk
- id.ts.njk
- planegcs.d.ts
- config.ts
- cpp2js.test.ts
- cpp2js.ts
- parse_cpp.test.ts
- parse_cpp.ts
- process_all.sh
- render_templates.ts
- tree-sitter-cpp.d.ts
- treesitter_queries.test.ts
- treesitter_queries.ts
- utils.ts
- sketcher-lecture.pdf
- sketcher-thesis.pdf
- solver-abdullah.pdf
- boost_graph_adjacency_list.hpp
- Console.h
- FCConfig.h
- FCGlobal.h
- .gitignore
- CMakeLists.txt
- commit.txt
- Constraints.cpp
- Constraints.h
- GCS.cpp
- GCS.h
- Geo.cpp
- Geo.h
- patch_file.ts
- qp_eq.cpp
- qp_eq.h
- SubSystem.cpp
- SubSystem.h
- update_freecad.sh
- Util.h
- emsc_vectors.ts
- gcs_wrapper.ts
- geom_params.ts
- sketch_index.ts
- sketch_primitive.ts
- gcs_wrapper.test.ts
- index.test.ts
- planegcs.test.ts
- sketch_primitive.test.ts
- solve_examples.test.ts
- test_data.ts
- .eslintrc.cjs
- .gitignore
- Dockerfile
- index.ts
- LICENSE
- package-lock.json
- package.json
- prepack.sh
- README.md
- tsconfig.json
- vite.config.ts
# Installation Guide
1. Get the code
git clone https://github.com/Salusoft89/planegcs
Downloads the entire project code from GitHub to your computer.
cd planegcs
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t planegcs .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 planegcs
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. CMake
MediumPrerequisites
cd planegcs
This project's files live in a subfolder, so move into it first.
mkdir build && cd build
Creates a folder to hold the build output and moves into it.
cmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
make
Compiles the code based on the generated build configuration to produce an executable.
Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).
4. Node.js
EasyPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
