/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{newDoubleArray as t}from"../../../../geometry/support/DoubleArray.js";import{applyPerVertexElevationAlignment as e}from"../../layers/graphics/elevationAlignmentUtils.js";function o(o,n,r,s,i){const l=t(3*o.length),p=t(l.length);o.forEach((t,e)=>{l[3*e]=t[0],l[3*e+1]=t[1],l[3*e+2]=t.length>2?t[2]:0});const c=e(l,n,0,p,0,l,0,l.length/3,r,s,i),m=null!=c;return{numVertices:o.length,position:l,mapPositions:p,projectionSuccess:m,sampledElevation:c}}export{o as geometryToRenderInfo};
