Skip to content

Curve editor that can draw and edit cubic splines and bezier curves.

License

Notifications You must be signed in to change notification settings

Mikolkar/curve_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curve editor

Curve editor is a program that can draw and edit cubic splines and bézier curves. The project was created by Mikołaj Karapka for a Numercial Analysis course. The program was written in python and utilizes PyQt6, Matplotlib and NumPy libraries.

Screenshots

Plot of Bézier curve

bezier

Plot of Cubic spline

cubic_spline

Plot with a pasted image

pasted_img

Features

  • Drawing and editing multiple Bézier curves
  • Drawing and editing multiple Cubic splines
  • Pasting image into plot
  • Saving created curves to file
  • Reducing the number of sharp edges in the function (Rozmiar u)
  • Moving drawn points on the axis by a specific amount
  • Zooming drawn curves

Installation

poetry install

Run

poetry run project

Usage

Shortcuts:

  • Draw a point: Ctrl + left mouse button

  • Remove the last point: Alt + left mouse button

Explanation of algorithms to calculate each curves

Click the link to open the explanation in exp.pdf: explanation

About

Curve editor that can draw and edit cubic splines and bezier curves.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published