Automatic detection of support material threshold angle