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