Modelling 3D spatial objects in a geo-DBMS using a 3D primitive