Geometrical modelling of braided textiles