Representation of curves and surfaces