1. Method of segmenting a selected region from a multi-dimensional dataset, wherein an adaptive mesh comprising a plurality of mesh primitives is to be adapted to the selected region, the method comprising the steps of: sampling data from the multi-dimensional dataset; estimating a probability that a mesh primitive of the plurality of mesh primitives belongs to a class of a plurality of classes by using the sampled data from the multi-dimensional dataset by means of an estimator; and applying an energy function corresponding to the class of the plurality of classes to adapt the mesh primitive of the plurality of mesh primitives to the selected region.