This paper describes a method to accelerate the generation of shape primitives for N-dimensional images X N . These shape primitives can be used in conditions for topology preserving erosion or skeletonization in N-dimensional images. The method is based on the possibility to describe primitives for intrinsic dimensions by quadratic equations of the form