knot <- makeExampleKnot()
reduced <- msr(points3D = knot)
## 3D plot of both the trefoil and its reduced structure
plotKnot3D(knot, ends = c(), radius = 0.01, lwd = 2.5)
plotKnot3D(reduced$points3D, reduced$ends, colors = 'red', radius = 0.1, lwd = 2.5)
Run the code above in your browser using DataLab