I am doing the following to create a line loop (circle) in Mathematica:
(* generate points on a circle *) pts = Table[{a Cos[t], a Sin[t], 0}, {t, 0, 2 Pi, 0.1}]; (* add last segment *) pts = Append[pts, {a, 0, 0}]; (* build tr... *) (* ... *) (* draw *) Graphics3D[GeometricTransformation[Line[pts], tr]]
Is there a better way to create a table so that the first point is repeated? Append[] above looks bad.
I am not using Circle[] because I need to transform the circle in a Graphics3D[]. I am not using ParametricPlot3D because to my knowledge I can't put that inside a GeometricTransformation[].
Thanks for any suggestions.
Regards