Skip to content

filletofish/line-clipping-pyopengl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

line-clipping-pyopengl

This script is a simple example of clipping line segment with a polygon.

Requirements:

  • PyOpenGL
  • GLFW

Getting started:

python3 main.py
  • Use mouse to build clipper (polygon)
  • Press L to start building line segment. Same, use mouse to build it
  • Press S button to turn on / off slicing the line segment

About

Example of clipping line segment with a polygon in OpenGL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages