Text this: Pattern matching technique from B-rep model