项目作者: Dacaspex

项目描述 :
Bezier curve visualiser
高级语言: Python
项目地址: git://github.com/Dacaspex/bezier-curve-visualiser.git
创建时间: 2018-12-16T21:19:48Z
项目社区:https://github.com/Dacaspex/bezier-curve-visualiser

开源协议:

下载


bezier-curve-visualiser

This (mini) project is about the visualisations of n-dimensional bezier curves. It aims at rendering bezier curves and their
properties such as slope and its construction. This project was programmed in python as a fun side project while I was bored
during public transport.

image of the program with 7 control points

Installation instructions

  1. Clone this repository
    1. user:pc/projects$ git clone https://github.com/Dacaspex/bezier-curve-visualiser.git
  2. Create and activate virtual environment
    1. user:pc/projects$ python -m venv bezier-curve-visualiser
    2. user:pc/projects$ cd bezier-curve-visualiser
    3. user:pc/projects/bezier-curve-visualiser$ Scripts\activate
    4. user:pc/projects/bezier-curve-visualiser$ pip install -r requirements.txt
  3. Start program
    1. user:pc/projects/bezier-curve-visualiser$ python main.py <nr of control points> <steps>

Extra information

Bezier curves can be constructed by recursively create linear interpolations between n-1 dimensions and drawing the points.
This can be visualised by clicking on the curve. This shows these constructions lines.

You can also take a drag the control points around.

Images

image of the program with a construction curve
image of the program with more control points