generatePathPoints now collects the values it needs rather than getting them from parameters.