Replace point grid by segment grid