// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("exports ../../core/deprecate ../../core/Logger ../../chunks/vec32 ../Point ./MeshGeoreferencedVertexSpace ./MeshLocalVertexSpace".split(" "),function(c,m,h,n,p,q,r){function d(a){return null!=a.origin}c.isAbsoluteVertexSpace=function(a){return!d(a)};c.isMeshWithRelativeVertexSpace=function(a){return d(a.vertexSpace)};c.isRelativeVertexSpace=d;c.selectVertexSpace=function(a,b){const {x:e,y:f,z:g,spatialReference:k}=a;a=[e,f,g??0];void 0!==b?.geographic&&(m.deprecated(h.getLogger("esri.geometry.Mesh"), "option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),b.vertexSpace&&h.getLogger("esri.geometry.Mesh").warn("Deprecated geographic flag ignored since vertexSpace option is provided."));var l;null!=(l=b?.vertexSpace)?b=l:(b=b?.geographic,b=null==b?void 0:b?"local":"georeferenced");return"local"===(b??(k.isGeographic||k.isWebMercator?"local":"georeferenced"))?new r({origin:a}):new q({origin:a})};c.vertexSpaceEquals=function(a,b){return a.type===b.type&& (a.origin===b.origin||null!=a.origin&&null!=b.origin&&n.exactEquals(a.origin,b.origin))};c.vertexSpaceOriginToPoint=function(a,b){if(!d(a))return null;const [e,f,g]=a.origin;return new p({x:e,y:f,z:g,spatialReference:b})};Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});