# create an object of class 'Knot' by using new
link <- makeExampleKnot( k = FALSE )
new('Knot', points3D = link$points3D, ends = link$ends)
#or by means of the constructor
newKnot(points3D = link$points3D, ends = link$ends)
#for knots, it is sufficient to specify the 3D coordinates
#ends are set by default to numeric(0)
knot <- makeExampleKnot( k = TRUE )
newKnot(points3D = knot)
#for creating an example, use makeExampleKnot.
#knot:
makeExampleKnot(k = TRUE)
#link:
makeExampleKnot(k = FALSE)
Run the code above in your browser using DataLab