extract geometry functions