g.line takes nPoints into account.