Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.
the same shape
the shape to check