https://github.com/50gramm/forcefield3d
3D visualization of electric field
https://github.com/50gramm/forcefield3d
3d algorithm opengl science scientific-visualization
Last synced: 7 months ago
JSON representation
3D visualization of electric field
- Host: GitHub
- URL: https://github.com/50gramm/forcefield3d
- Owner: 50gramm
- License: mit
- Created: 2025-03-02T13:25:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T20:32:02.000Z (7 months ago)
- Last Synced: 2025-03-23T21:28:34.510Z (7 months ago)
- Topics: 3d, algorithm, opengl, science, scientific-visualization
- Language: C++
- Homepage:
- Size: 389 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# ForceField3D
**3D visualization of electric field**
This application intended to visualize electric field (lines of force, equipotential surface) in 3D.
## Features
- Interactive
- Realtime
- Easy to use## Get and build
- Dependency:
- cmake
- c++ compiler
- OpenGL libraries (eg. libglu1-mesa-dev on Ubuntu)- Get source:
```shell
git clone --recursive https://github.com/50gramm/ForceField3D.git
```- Build:
```shell
cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
```## Run:
- On Linux:
```shell
./bin/ForceField3D
```
- On Windows:
```shell
bin\ForceField3D.exe
```## Usage
- e - Switch equipotential surface on/off
- f - Switch lines of force on/off
- p - Add positive charge at cursor position or increase existing charge value by one unit
- n - Add negative charge at cursor position or decrease existing charge value by one unit
- s - Save current state
- l - Load state
- r - Reset state to starter
- Del - Delete all charges
- Esc - Exit program
- Left click + mouse move on charge - Drag the charge
- Left click + mouse move on scene - Drag the scene
- Right click + mouse move on scene - Rotate the scene