added sharp planes recognition