added invisible material
renaming ALGO, grouping GEOMETRY
moved swapPoints function