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