Skip to content

Python script that generates a Wavefront .OBJ file for a 3D Lissajous knot.

License

Notifications You must be signed in to change notification settings

jtweigle/knot-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

knot-engine

Generates a Wavefront .OBJ file for a 3D Lissajous knot. Just run python3 ./knot-engine.py and see what happens, or python3 ./knot-engine.py --help for more options.

I find it nice to view them in MeshLab. Here's the default output:

default-curve

You can make it look janky by setting a low --curve-density. This one is done with --curve-density 30:

janky-curve

The parametric formulae that specify the curve contain three coefficients, given in -a, -b, and -c. This curve was generated with -a 1 -b 2 -c 3:

curve-1-2-3

Here's the same curve with --wrap-radius 50:

curve-50

About

Python script that generates a Wavefront .OBJ file for a 3D Lissajous knot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages