New characterizations of spheres, cylinders and W-curves