"use strict";(self.webpackChunkfirebird=self.webpackChunkfirebird||[]).push([[8583],{8583:(y,_,m)=>{m.r(_),m.d(_,{drawPolyLine3D:()=>c,drawPolyMarker3D:()=>P});var l=m(467),o=m(6998),x=m(3366),h=m(4491),D=m(9109);function g(n){const t=n.getFramePainter();if(!t?.mode3d||!n.getObject())return null;if(t?.toplevel)return t;const r=n.getMainPainter();return r&&!(0,o.isFunc)(r.drawExtras)?null:(r?Promise.resolve(r):(0,h.drawDummy3DGeom)(n)).then(i=>{const s=n.getPadPainter();return s&&(s._disable_dragging=!0),i._dummy&&(0,o.isFunc)(n.get3DBox)&&i.extendCustomBoundingBox(n.get3DBox()),i.drawExtras(n.getObject(),"",!0,!0)})}function d(){const n=this.getObject();if(!n?.fP.length)return null;const t={min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}};for(let r=0;r<n.fP.length;r+=3){const e=n.fP[r],i=n.fP[r+1],s=n.fP[r+2];0===r?(t.min.x=t.max.x=e,t.min.y=t.max.y=i,t.min.z=t.max.z=s):(t.min.x=Math.min(e,t.min.x),t.max.x=Math.max(e,t.max.x),t.min.y=Math.min(i,t.min.y),t.max.y=Math.max(i,t.max.y),t.min.z=Math.min(s,t.min.z),t.max.z=Math.max(s,t.max.z))}return t}function P(){return u.apply(this,arguments)}function u(){return(u=(0,l.A)(function*(){this.get3DBox=d;const n=g(this);return(0,o.isObject)(n)&&n.grx&&n.gry&&n.grz?(this.$fp=n,D.Y.bind(this)()):n})).apply(this,arguments)}function c(){return f.apply(this,arguments)}function f(){return(f=(0,l.A)(function*(){this.get3DBox=d;const n=this.getObject(),t=g(this);if(!((0,o.isObject)(t)&&t.grx&&t.gry&&t.grz))return t;const r=3*n.fN,e=n.fP,i=[];for(let a=3;a<r;a+=3)i.push(t.grx(e[a-3]),t.gry(e[a-2]),t.grz(e[a-1]),t.grx(e[a]),t.gry(e[a+1]),t.grz(e[a+2]));const s=(0,x.Fc)(i,(0,x.DH)(this,n));return t.add3DMesh(s,this,!0),t.render3D(100),!0})).apply(this,arguments)}}}]);