Metadata-Version: 2.1
Name: vis3dvf
Version: 1.0.0
Summary: Derivative of vis3dpy, aimed at visualizing ℝ³ vector fields 
Home-page: https://github.com/LukasDrsman/vis3dvf
Author: Lukáš Dršman
Author-email: lukaskodr@gmail.com
License: Public Domain
Platform: UNKNOWN
Classifier: License :: Public Domain
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# vis3dvf

<p align="center">
  <img src="https://github.com/LukasDrsman/vis3dvf/blob/main/assets/screenshot.png" width="500">
</p>

## Dependencies
 - `pygame`
 - `PyOpenGL`
 - `PyOpenGL_accelerate`

## Quickstart
A simple example of a time-dependent vector field can be found in the `example.py` file. To quickstart this example, run:
```sh
pip install vis3dvf                                     # installs vis3dvf (and dependencies)
git clone https://github.com/LukasDrsman/vis3dvf.git    # fetches repo with example.py
cd vis3dvf
python3 example.py                                      # runs example.py
```

## Usage
### *vis3dvf.plot*.Figure(window width, window height)
 - Figure constructor, necessary for rendering.
 - "Public" methods:
   - **add**(*plot*) - adds *plot* object to the render que (*plot* object must have an implemented **render**() method)
   - **show**() - creates a window and starts rendering

### *vis3dvf.vectorfield*.VectorField(u, v, w, density)
 - Static vector field plot object constructor
 - Parameters:
   - u = **u**(x,y,z) - the x component of the vector field at (x,y,z) (function)
   - v = **v**(x,y,z) - the y component of the vector field at (x,y,z) (function)
   - w = **w**(x,y,z) - the z component of the vector field at (x,y,z) (function)


### *vis3dvf.vectorfield*.VectorFieldT(u, v, w, density, initial time, final time, time delta)
 - Time-dependent vector field plot object constructor
 - Parameters:
   - u = **u**(x,y,z,t) - the x component of the vector field at (x,y,z) and time t (function)
   - v = **v**(x,y,z,t) - the y component of the vector field at (x,y,z) and time t (function)
   - w = **w**(x,y,z,t) - the z component of the vector field at (x,y,z) and time t (function)


