Author Topic: Mesh PQ Torus Knot demo  (Read 3830 times)



0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1320
    • View Profile
    • Geeks3D.com
Mesh PQ Torus Knot demo
« on: May 16, 2014, 03:21:24 PM »
GLSL Hacker 0.6.4.1 adds the creation of PQ torus knot. A demo is available in the host_api/Mesh_PQTorusKnot/ folder of the code sample pack.

A gallery of various PQ torus knots is available here:
http://www.geeks3d.com/20140516/pq-torus-knot/

The following code:
Code: [Select]
steps = 1024
facets = 32
scale = 4.0
thickness = 0.5
clumps = 0
clump_offset = 0
clump_scale = 0.0
u_scale = 2
v_scale = 32
P = 3
Q = -7
pqtorus = gh_mesh.create_pqtorus(steps, facets, scale, thickness, clumps, clump_offset, clump_scale, u_scale, v_scale, P, Q)

will create this torus knot:





« Last Edit: May 16, 2014, 04:00:38 PM by JeGX »