Added getSignalFromShape.m