This script is a simple example of clipping line segment with a polygon.
- PyOpenGL
- GLFW
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