@tomaso909/js3d 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.obf.js +1 -1
- package/package.json +1 -1
package/dist/index.obf.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x5db7(){const _0x1e4d64=['3CoYPHT','Generated\x20by\x20js3d\x20IGES\x20converter\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x201','substr','weights','15H','padStart','116,','Knot\x20vector\x20length\x20must\x20be\x20','max','NEGATIVE_INFINITY','floor','1.E-06,100.0,7H','sqrt','NURBS\x20curve\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202','toExponential',',11H','totalLength',',1,0.01,15H','formatGlobalLine','units','scalarProduct','No\x20valid\x20geometries\x20found\x20to\x20convert','object','2070556htaEuS','_gaussJ','solve','Geometries\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty','findPointAtParameter','106,','linspace','E$1','filter','degree','filename',',7H',',32,38,6,38,15,4H','push','fill','Weights\x20array\x20length\x20must\x20match\x20control\x20points\x20length','endsWith','findKnotSpan','\x20control\x20points\x20required\x20for\x20degree\x20','warn','flattenLines','polyline','js3d','formatParameterLine','\x20control\x20points\x20for\x20degree\x20','degree\x20must\x20be\x20less\x20than\x20or\x20equal\x20to\x20point\x20count\x20-\x201','Combined\x20geometry\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202','combined.iges','controlPoints','allPoints','organization','properties','50XKeIeh','bad\x20knot\x20vector\x20length',',0.0,0.0,0.0','flattenNurbs','POSITIVE_INFINITY','numControlPoints','numPoints','Points\x20to\x20IGES\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202','Points\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty','Skipping\x20NURBS:\x20need\x20at\x20least\x20','zerosMat',',0,0,1,0','out\x20of\x20bounds','T\x20\x20\x20\x20\x20\x201\x0a','normalVector','bspline','454589clqEYv','parseIgesNumber','replace','toString','length','nurbs.iges','asPolyline','toLowerCase','Invalid\x20point\x20format.\x20Expected\x20[x,\x20y,\x20z]','126,','abs','log','data','4752631YChZiP','parameters','isArray','formatDirectoryLine','6WpFiaL','knotVector','trim','formatTerminateSection','numKnots','segmentLengths',',0.0;','576776yocZsw','formatNumber','swapRows','Invalid\x20geometry\x20object.\x20Expected\x20{\x20type:\x20\x22points|polyline|nurbs\x22,\x20data:\x20[...]\x20}','charAt','Generated','processPolylineEntity','.\x20Supported\x20types:\x20points,\x20polyline,\x20nurbs','map','1H,,1H;,4H','dot','slice','12yGuHgI','ceil','pow','from','1.0,1,4H','2440955dXwyzj','computeBasisFunctions','normalizedCosineSpacing','split','14qvCWxm','getFullYear','min','lines','type','1951812oXDIbC','832634tsyebA','START','sin','padEnd','2TJpZeP','sub','counter','toFixed','move','cumulativeLength','toISOString','author','findParameterAtPoint','formatSection','processNurbsEntity','points','includeNurbsMetadata','IGES\x20content\x20must\x20be\x20a\x20non-empty\x20string','_uniform_knot_spacing','precision','degree\x20must\x20be\x20at\x20least\x201\x20(linear)','nurbs','processPointEntity','11H','getNaturalKs','join'];a0_0x5db7=function(){return _0x1e4d64;};return a0_0x5db7();}function a0_0x28b8(_0xc8729b,_0x103545){const _0x5db70b=a0_0x5db7();return a0_0x28b8=function(_0x28b808,_0x199708){_0x28b808=_0x28b808-0x1cc;let _0x188942=_0x5db70b[_0x28b808];return _0x188942;},a0_0x28b8(_0xc8729b,_0x103545);}const a0_0x1c617d=a0_0x28b8;(function(_0x346192,_0x539cfd){const _0x375e46=a0_0x28b8,_0xb7f72a=_0x346192();while(!![]){try{const _0x4b8a18=parseInt(_0x375e46(0x1e3))/0x1*(parseInt(_0x375e46(0x21a))/0x2)+parseInt(_0x375e46(0x230))/0x3*(-parseInt(_0x375e46(0x247))/0x4)+-parseInt(_0x375e46(0x20c))/0x5*(-parseInt(_0x375e46(0x1f4))/0x6)+-parseInt(_0x375e46(0x210))/0x7*(-parseInt(_0x375e46(0x1fb))/0x8)+-parseInt(_0x375e46(0x215))/0x9+parseInt(_0x375e46(0x1d3))/0xa*(-parseInt(_0x375e46(0x216))/0xb)+-parseInt(_0x375e46(0x207))/0xc*(-parseInt(_0x375e46(0x1f0))/0xd);if(_0x4b8a18===_0x539cfd)break;else _0xb7f72a['push'](_0xb7f72a['shift']());}catch(_0x5eabc8){_0xb7f72a['push'](_0xb7f72a['shift']());}}}(a0_0x5db7,0x52e80));var w={'length':function(_0x19b519){const _0x3a1ad5=a0_0x28b8;return Math[_0x3a1ad5(0x23c)](_0x19b519[0x0]**0x2+_0x19b519[0x1]**0x2+_0x19b519[0x2]**0x2);},'scalarProduct':function(_0xfd88d1,_0x49a973){return[_0xfd88d1[0x0]*_0x49a973,_0xfd88d1[0x1]*_0x49a973,_0xfd88d1[0x2]*_0x49a973];},'dot':function(_0x200caf,_0x4f0f4c){return _0x200caf[0x0]*_0x4f0f4c[0x0]+_0x200caf[0x1]*_0x4f0f4c[0x1]+_0x200caf[0x2]*_0x4f0f4c[0x2];},'angle':function(_0x122752,_0xc85cd0){const _0x1e68f4=a0_0x28b8;let _0x3d3184=this[_0x1e68f4(0x205)](_0x122752,_0xc85cd0)/(this[_0x1e68f4(0x1e7)](_0x122752)*this['length'](_0xc85cd0));return Math['acos'](_0x3d3184);},'sub':function(_0x25bbb1,_0x340c8f){return[_0x25bbb1[0x0]-_0x340c8f[0x0],_0x25bbb1[0x1]-_0x340c8f[0x1],_0x25bbb1[0x2]-_0x340c8f[0x2]];},'add':function(_0x185c34,_0xea3a61){return[_0x185c34[0x0]+_0xea3a61[0x0],_0x185c34[0x1]+_0xea3a61[0x1],_0x185c34[0x2]+_0xea3a61[0x2]];},'rotate':function(_0x111adb,_0x4b665b,_0x233c37){let _0xe407cf=_0x233c37*Math['PI']/0xb4,_0x2b95f0=Math['cos'](_0xe407cf),_0x1bcc93=Math['sin'](_0xe407cf),_0x525a41=_0x111adb[0x0],_0x245716=_0x111adb[0x1],_0xec7aa1=_0x111adb[0x2],_0x168cdf=_0x4b665b[0x0],_0x1e8594=_0x4b665b[0x1],_0x291c24=_0x4b665b[0x2],_0x4cded4=_0x168cdf*_0x525a41+_0x1e8594*_0x245716+_0x291c24*_0xec7aa1,_0x4a1332=_0x168cdf*_0x4cded4*(0x1-_0x2b95f0)+_0x525a41*_0x2b95f0+(-_0x291c24*_0x245716+_0x1e8594*_0xec7aa1)*_0x1bcc93,_0x208c2f=_0x1e8594*_0x4cded4*(0x1-_0x2b95f0)+_0x245716*_0x2b95f0+(_0x291c24*_0x525a41-_0x168cdf*_0xec7aa1)*_0x1bcc93,_0x141b45=_0x291c24*_0x4cded4*(0x1-_0x2b95f0)+_0xec7aa1*_0x2b95f0+(-_0x1e8594*_0x525a41+_0x168cdf*_0x245716)*_0x1bcc93;return[_0x4a1332,_0x208c2f,_0x141b45];},'fromTwoPoints':function(_0x3b1bf5,_0xb5082e){return[_0xb5082e[0x0]-_0x3b1bf5[0x0],_0xb5082e[0x1]-_0x3b1bf5[0x1],_0xb5082e[0x2]-_0x3b1bf5[0x2]];},'normalized':function(_0x10a6bb){const _0x1ff0d5=a0_0x28b8;return w[_0x1ff0d5(0x244)](_0x10a6bb,0x1/w[_0x1ff0d5(0x1e7)](_0x10a6bb));},'cross':function(_0x1c8116,_0x1143c9){return[_0x1c8116[0x1]*_0x1143c9[0x2]-_0x1c8116[0x2]*_0x1143c9[0x1],_0x1c8116[0x2]*_0x1143c9[0x0]-_0x1c8116[0x0]*_0x1143c9[0x2],_0x1c8116[0x0]*_0x1143c9[0x1]-_0x1c8116[0x1]*_0x1143c9[0x0]];}},F={'distance':function(_0xfe9df5,_0x1f34e7){const _0x9c0bd8=a0_0x28b8;return w[_0x9c0bd8(0x1e7)](w[_0x9c0bd8(0x21b)](_0x1f34e7,_0xfe9df5));},'move':function(_0x366fba,_0x5dd155){return w['add'](_0x366fba,_0x5dd155);},'scale':function(_0x4530e5,_0x2bae09,_0x4f7f5c){const _0x26e5df=a0_0x28b8;return _0x4f7f5c!=null&&(_0x4530e5=this[_0x26e5df(0x21e)](_0x4530e5,w['scalarProduct'](_0x4f7f5c,-0x1))),_0x4530e5=w[_0x26e5df(0x244)](_0x4530e5,_0x2bae09),_0x4f7f5c!=null&&(_0x4530e5=this[_0x26e5df(0x21e)](_0x4530e5,_0x4f7f5c)),_0x4530e5;},'rotate':function(_0x1447ee,_0x57b7f3,_0x3a66be,_0x13e297){const _0x358c1e=a0_0x28b8;let _0x54266f=_0x3a66be*Math['PI']/0xb4,_0x2c6613=Math['cos'](_0x54266f),_0x2a4711=Math[_0x358c1e(0x218)](_0x54266f),_0x3ed65c=_0x1447ee[0x0],_0xb6d208=_0x1447ee[0x1],_0x5517a5=_0x1447ee[0x2];_0x13e297!=null&&(_0x3ed65c=_0x3ed65c-_0x13e297[0x0],_0xb6d208=_0xb6d208-_0x13e297[0x1],_0x5517a5=_0x5517a5-_0x13e297[0x2]);let _0xdc00b4=_0x57b7f3[0x0],_0x16797d=_0x57b7f3[0x1],_0x582a53=_0x57b7f3[0x2],_0x4f2dfd=_0xdc00b4*_0x3ed65c+_0x16797d*_0xb6d208+_0x582a53*_0x5517a5,_0x935d22=_0xdc00b4*_0x4f2dfd*(0x1-_0x2c6613)+_0x3ed65c*_0x2c6613+(-_0x582a53*_0xb6d208+_0x16797d*_0x5517a5)*_0x2a4711,_0x2d9604=_0x16797d*_0x4f2dfd*(0x1-_0x2c6613)+_0xb6d208*_0x2c6613+(_0x582a53*_0x3ed65c-_0xdc00b4*_0x5517a5)*_0x2a4711,_0x4b2c8a=_0x582a53*_0x4f2dfd*(0x1-_0x2c6613)+_0x5517a5*_0x2c6613+(-_0x16797d*_0x3ed65c+_0xdc00b4*_0xb6d208)*_0x2a4711,_0x3f25b3=[_0x935d22,_0x2d9604,_0x4b2c8a];return _0x13e297!=null&&(_0x3f25b3[0x0]=_0x3f25b3[0x0]+_0x13e297[0x0],_0x3f25b3[0x1]=_0x3f25b3[0x1]+_0x13e297[0x1],_0x3f25b3[0x2]=_0x3f25b3[0x2]+_0x13e297[0x2]),_0x3f25b3;},'project':function(_0x1ae267,_0x1ccfa9,_0x13e3ef){const _0x57971b=a0_0x28b8;let _0x409a2f=w['sub'](_0x1ae267,_0x13e3ef),_0x37468c=w[_0x57971b(0x205)](_0x409a2f,_0x1ccfa9)/w[_0x57971b(0x1e7)](_0x1ccfa9),_0x31792d=w[_0x57971b(0x244)](_0x1ccfa9,0x1/w[_0x57971b(0x1e7)](_0x1ccfa9));return w[_0x57971b(0x21b)](_0x1ae267,w[_0x57971b(0x244)](_0x31792d,_0x37468c));}},H={'linspace':function(_0x108de6,_0xfebffd,_0x26ac55,_0x512b28=!0x0){let _0x525894=_0x512b28?_0x26ac55-0x1:_0x26ac55,_0x19c591=(_0xfebffd-_0x108de6)/_0x525894;return Array['from']({'length':_0x26ac55},(_0x26d76d,_0xece42c)=>_0x108de6+_0x19c591*_0xece42c);},'cosineSpacing':function(_0x2e205a,_0x500fbb,_0x3e564d){const _0x320302=a0_0x28b8;let _0x341724=Array[_0x320302(0x20a)]({'length':_0x3e564d},(_0x5d90af,_0x593d2b)=>_0x593d2b/(_0x3e564d-0x1))[_0x320302(0x203)](_0x1b68fe=>(0x1-Math['cos'](_0x1b68fe*Math['PI']))/0x2),_0x173280=[];for(let _0x353244=0x0;_0x353244<_0x341724[_0x320302(0x1e7)];_0x353244++){let _0x377904=_0x341724[_0x353244];_0x173280[_0x320302(0x254)](mapToSpace(_0x377904,[0x0,0x1],[_0x2e205a,_0x500fbb]));}return _0x173280;},'normalizedCosineSpacing':function(_0x3ea0ce){const _0xf0120a=a0_0x28b8;return Array[_0xf0120a(0x20a)]({'length':_0x3ea0ce},(_0x5f0601,_0x23f3e9)=>_0x23f3e9/(_0x3ea0ce-0x1))['map'](_0x42160c=>(0x1-Math['cos'](_0x42160c*Math['PI']))/0x2);},'mapToSpace':function(_0x4c5406,_0x481cf2,_0x1a97c1){return _0x1a97c1[0x1]+(_0x4c5406-_0x481cf2[0x1])*(_0x1a97c1[0x0]-_0x1a97c1[0x1])/(_0x481cf2[0x0]-_0x481cf2[0x1]);}},j={'from_control_points':function(_0x40cc06,_0x98adef,_0x252de6,_0xbd214f){const _0x23b25d=a0_0x28b8;_0xbd214f===void 0x0&&(_0xbd214f=this['_uniform_knot_spacing'](_0x40cc06,_0x98adef));let _0x59ebba=H[_0x23b25d(0x24d)](0x0,0x1,_0x252de6);console[_0x23b25d(0x1ee)](_0x59ebba);let _0x256f4e=[];for(var _0x1d2395 of _0x59ebba)_0x256f4e['push'](this['bspline'](_0x1d2395,_0x98adef,_0x40cc06,_0xbd214f));return _0x256f4e;},'from_control_points_cosine':function(_0x2cbb4c,_0xcb301f,_0x439b74,_0x5f49b2){const _0x4befdd=a0_0x28b8;_0x5f49b2===void 0x0&&(_0x5f49b2=this[_0x4befdd(0x228)](_0x2cbb4c,_0xcb301f));let _0x11e309=H[_0x4befdd(0x20e)](_0x439b74),_0x481c95=[];for(var _0x3bb663 of _0x11e309)_0x481c95[_0x4befdd(0x254)](this[_0x4befdd(0x1e2)](_0x3bb663,_0xcb301f,_0x2cbb4c,_0x5f49b2));return _0x481c95;},'_uniform_knot_spacing':function(_0x32e371,_0x290e62){const _0x3968f3=a0_0x28b8;let _0x5cff4a=_0x32e371['length']+_0x290e62+0x1,_0x6a6a89=[],_0x13739f=_0x5cff4a-(_0x290e62+0x1)*0x2;for(var _0x407a92=0x0;_0x407a92<_0x290e62+0x1;_0x407a92++)_0x6a6a89[_0x3968f3(0x254)](0x0);for(var _0x407a92=0x0;_0x407a92<_0x13739f;_0x407a92++)_0x6a6a89[_0x3968f3(0x254)](_0x407a92+0x1);let _0x96a487=_0x6a6a89[_0x6a6a89[_0x3968f3(0x1e7)]-0x1]+0x1;for(var _0x407a92=0x0;_0x407a92<_0x290e62+0x1;_0x407a92++)_0x6a6a89[_0x3968f3(0x254)](_0x96a487);return _0x6a6a89;},'bspline':function(_0x5808d6,_0x97bd8,_0x540d37,_0x21058d,_0x3249b4,_0x389152){const _0x3df96b=a0_0x28b8;var _0x110585,_0x140a90,_0x13fc5b,_0x3fed47,_0x29c91d=_0x540d37[_0x3df96b(0x1e7)],_0x399200=_0x540d37[0x0][_0x3df96b(0x1e7)];if(_0x97bd8<0x1)throw new Error(_0x3df96b(0x22a));if(_0x97bd8>_0x29c91d-0x1)throw new Error(_0x3df96b(0x1cc));if(!_0x3249b4){for(_0x3249b4=[],_0x110585=0x0;_0x110585<_0x29c91d;_0x110585++)_0x3249b4[_0x110585]=0x1;}if(_0x21058d){if(_0x21058d[_0x3df96b(0x1e7)]!==_0x29c91d+_0x97bd8+0x1)throw new Error(_0x3df96b(0x1d4));}else{var _0x21058d=[];for(_0x110585=0x0;_0x110585<_0x29c91d+_0x97bd8+0x1;_0x110585++)_0x21058d[_0x110585]=_0x110585;}var _0x2ec439=[_0x97bd8,_0x21058d[_0x3df96b(0x1e7)]-0x1-_0x97bd8],_0x46c49d=_0x21058d[_0x2ec439[0x0]],_0x159112=_0x21058d[_0x2ec439[0x1]];if(_0x5808d6=_0x5808d6*(_0x159112-_0x46c49d)+_0x46c49d,_0x5808d6<_0x46c49d||_0x5808d6>_0x159112)throw new Error(_0x3df96b(0x1df));for(_0x13fc5b=_0x2ec439[0x0];_0x13fc5b<_0x2ec439[0x1]&&!(_0x5808d6>=_0x21058d[_0x13fc5b]&&_0x5808d6<=_0x21058d[_0x13fc5b+0x1]);_0x13fc5b++);var _0xa8dfbc=[];for(_0x110585=0x0;_0x110585<_0x29c91d;_0x110585++){for(_0xa8dfbc[_0x110585]=[],_0x140a90=0x0;_0x140a90<_0x399200;_0x140a90++)_0xa8dfbc[_0x110585][_0x140a90]=_0x540d37[_0x110585][_0x140a90]*_0x3249b4[_0x110585];_0xa8dfbc[_0x110585][_0x399200]=_0x3249b4[_0x110585];}var _0x4a11b3;for(_0x3fed47=0x1;_0x3fed47<=_0x97bd8+0x1;_0x3fed47++)for(_0x110585=_0x13fc5b;_0x110585>_0x13fc5b-_0x97bd8-0x1+_0x3fed47;_0x110585--)for(_0x4a11b3=(_0x5808d6-_0x21058d[_0x110585])/(_0x21058d[_0x110585+_0x97bd8+0x1-_0x3fed47]-_0x21058d[_0x110585]),_0x140a90=0x0;_0x140a90<_0x399200+0x1;_0x140a90++)_0xa8dfbc[_0x110585][_0x140a90]=(0x1-_0x4a11b3)*_0xa8dfbc[_0x110585-0x1][_0x140a90]+_0x4a11b3*_0xa8dfbc[_0x110585][_0x140a90];var _0x389152=_0x389152||[];for(_0x110585=0x0;_0x110585<_0x399200;_0x110585++)_0x389152[_0x110585]=_0xa8dfbc[_0x13fc5b][_0x110585]/_0xa8dfbc[_0x13fc5b][_0x399200];return _0x389152;}},C={'_gaussJ':{'solve':function(_0x1df639,_0x11c3f9){const _0x4b9887=a0_0x28b8;let _0x27f55e=_0x1df639[_0x4b9887(0x1e7)];for(let _0x3751bc=0x0;_0x3751bc<_0x27f55e;_0x3751bc++){let _0x5682ff=0x0,_0x1fd8e7=Number[_0x4b9887(0x239)];for(let _0x39cb3b=_0x3751bc;_0x39cb3b<_0x27f55e;_0x39cb3b++)Math[_0x4b9887(0x1ed)](_0x1df639[_0x39cb3b][_0x3751bc])>_0x1fd8e7&&(_0x5682ff=_0x39cb3b,_0x1fd8e7=Math[_0x4b9887(0x1ed)](_0x1df639[_0x39cb3b][_0x3751bc]));this[_0x4b9887(0x1fd)](_0x1df639,_0x3751bc,_0x5682ff);for(let _0x23167d=_0x3751bc+0x1;_0x23167d<_0x27f55e;_0x23167d++){let _0x586bcd=_0x1df639[_0x23167d][_0x3751bc]/_0x1df639[_0x3751bc][_0x3751bc];for(let _0x579314=_0x3751bc;_0x579314<_0x27f55e+0x1;_0x579314++)_0x1df639[_0x23167d][_0x579314]-=_0x1df639[_0x3751bc][_0x579314]*_0x586bcd;}}for(let _0x5799af=_0x27f55e-0x1;_0x5799af>=0x0;_0x5799af--){let _0x57adfd=_0x1df639[_0x5799af][_0x27f55e]/_0x1df639[_0x5799af][_0x5799af];_0x11c3f9[_0x5799af]=_0x57adfd;for(let _0x1040a2=_0x5799af-0x1;_0x1040a2>=0x0;_0x1040a2--)_0x1df639[_0x1040a2][_0x27f55e]-=_0x1df639[_0x1040a2][_0x5799af]*_0x57adfd,_0x1df639[_0x1040a2][_0x5799af]=0x0;}},'zerosMat':function(_0x3a48e2,_0x312fb2){let _0x3b84a7=[];for(let _0x151057=0x0;_0x151057<_0x3a48e2;_0x151057++)_0x3b84a7['push'](new Array(_0x312fb2)['fill'](0x0));return _0x3b84a7;},'printMat':function(_0x5c3b5e){_0x5c3b5e['forEach'](_0x564a5e=>console['log'](_0x564a5e));},'swapRows':function(_0x5d155d,_0x175944,_0x3a7b40){let _0x112b13=_0x5d155d[_0x175944];_0x5d155d[_0x175944]=_0x5d155d[_0x3a7b40],_0x5d155d[_0x3a7b40]=_0x112b13;}},'getNaturalKs':function(_0x3f0fb6,_0x1b99d7,_0x473197){const _0x1166da=a0_0x28b8;let _0x7dfc36=_0x3f0fb6['length']-0x1,_0x3997fd=this[_0x1166da(0x248)][_0x1166da(0x1dd)](_0x7dfc36+0x1,_0x7dfc36+0x2);for(let _0x284a3d=0x1;_0x284a3d<_0x7dfc36;_0x284a3d++)_0x3997fd[_0x284a3d][_0x284a3d-0x1]=0x1/(_0x3f0fb6[_0x284a3d]-_0x3f0fb6[_0x284a3d-0x1]),_0x3997fd[_0x284a3d][_0x284a3d]=0x2*(0x1/(_0x3f0fb6[_0x284a3d]-_0x3f0fb6[_0x284a3d-0x1])+0x1/(_0x3f0fb6[_0x284a3d+0x1]-_0x3f0fb6[_0x284a3d])),_0x3997fd[_0x284a3d][_0x284a3d+0x1]=0x1/(_0x3f0fb6[_0x284a3d+0x1]-_0x3f0fb6[_0x284a3d]),_0x3997fd[_0x284a3d][_0x7dfc36+0x1]=0x3*((_0x1b99d7[_0x284a3d]-_0x1b99d7[_0x284a3d-0x1])/(_0x3f0fb6[_0x284a3d]-_0x3f0fb6[_0x284a3d-0x1])**0x2+(_0x1b99d7[_0x284a3d+0x1]-_0x1b99d7[_0x284a3d])/(_0x3f0fb6[_0x284a3d+0x1]-_0x3f0fb6[_0x284a3d])**0x2);_0x3997fd[0x0][0x0]=0x2/(_0x3f0fb6[0x1]-_0x3f0fb6[0x0]),_0x3997fd[0x0][0x1]=0x1/(_0x3f0fb6[0x1]-_0x3f0fb6[0x0]),_0x3997fd[0x0][_0x7dfc36+0x1]=0x3*(_0x1b99d7[0x1]-_0x1b99d7[0x0])/(_0x3f0fb6[0x1]-_0x3f0fb6[0x0])**0x2,_0x3997fd[_0x7dfc36][_0x7dfc36-0x1]=0x1/(_0x3f0fb6[_0x7dfc36]-_0x3f0fb6[_0x7dfc36-0x1]),_0x3997fd[_0x7dfc36][_0x7dfc36]=0x2/(_0x3f0fb6[_0x7dfc36]-_0x3f0fb6[_0x7dfc36-0x1]),_0x3997fd[_0x7dfc36][_0x7dfc36+0x1]=0x3*(_0x1b99d7[_0x7dfc36]-_0x1b99d7[_0x7dfc36-0x1])/(_0x3f0fb6[_0x7dfc36]-_0x3f0fb6[_0x7dfc36-0x1])**0x2,this[_0x1166da(0x248)][_0x1166da(0x249)](_0x3997fd,_0x473197);},'from_control_points':function(_0xb349e0,_0x4e32cc){const _0x2cffe0=a0_0x28b8;let _0x3b10f0=_0x4e32cc[_0x2cffe0(0x203)](_0x39f329=>_0x39f329[0x0]),_0x30864b=_0x4e32cc[_0x2cffe0(0x203)](_0x1498a6=>_0x1498a6[0x1]),_0x39eb0d=new Array(_0x3b10f0['length'])[_0x2cffe0(0x255)](0x0);this[_0x2cffe0(0x22e)](_0x3b10f0,_0x30864b,_0x39eb0d);let _0x1a4940=[];for(let _0x2e0ccc of _0xb349e0){let _0x2199f5=0x1;for(;_0x3b10f0[_0x2199f5]<_0x2e0ccc;)_0x2199f5++;let _0x5582a7=(_0x2e0ccc-_0x3b10f0[_0x2199f5-0x1])/(_0x3b10f0[_0x2199f5]-_0x3b10f0[_0x2199f5-0x1]),_0xb60e93=_0x39eb0d[_0x2199f5-0x1]*(_0x3b10f0[_0x2199f5]-_0x3b10f0[_0x2199f5-0x1])-(_0x30864b[_0x2199f5]-_0x30864b[_0x2199f5-0x1]),_0x4b424f=-_0x39eb0d[_0x2199f5]*(_0x3b10f0[_0x2199f5]-_0x3b10f0[_0x2199f5-0x1])+(_0x30864b[_0x2199f5]-_0x30864b[_0x2199f5-0x1]),_0x345fc2=(0x1-_0x5582a7)*_0x30864b[_0x2199f5-0x1]+_0x5582a7*_0x30864b[_0x2199f5]+_0x5582a7*(0x1-_0x5582a7)*(_0xb60e93*(0x1-_0x5582a7)+_0x4b424f*_0x5582a7);_0x1a4940['push']([_0x2e0ccc,_0x345fc2]);}return _0x1a4940;}},D=class{constructor(_0x2562c7){const _0x117746=a0_0x28b8;this[_0x117746(0x225)]=_0x2562c7,this[_0x117746(0x1f9)]=[],this['cumulativeLength']=[0x0];for(let _0x300a8e=0x1;_0x300a8e<_0x2562c7[_0x117746(0x1e7)];_0x300a8e++){let _0xae35da=_0x2562c7[_0x300a8e][0x0]-_0x2562c7[_0x300a8e-0x1][0x0],_0x3f2ccf=_0x2562c7[_0x300a8e][0x1]-_0x2562c7[_0x300a8e-0x1][0x1],_0x316bfa=_0x2562c7[_0x300a8e][0x2]-_0x2562c7[_0x300a8e-0x1][0x2],_0x3c78e1=Math[_0x117746(0x23c)](_0xae35da*_0xae35da+_0x3f2ccf*_0x3f2ccf+_0x316bfa*_0x316bfa);this[_0x117746(0x1f9)][_0x117746(0x254)](_0x3c78e1),this[_0x117746(0x21f)]['push'](this[_0x117746(0x21f)][this[_0x117746(0x21f)]['length']-0x1]+_0x3c78e1);}this[_0x117746(0x240)]=this['segmentLengths'][_0x117746(0x1e7)]>0x0?this[_0x117746(0x21f)][this['cumulativeLength'][_0x117746(0x1e7)]-0x1]:0x0;}[a0_0x1c617d(0x222)](_0x1099a0){const _0x45e58b=a0_0x1c617d;let _0x177291=0x0,_0x5aae9e=Number[_0x45e58b(0x1d7)];for(let _0x3de787=0x0;_0x3de787<this['points'][_0x45e58b(0x1e7)]-0x1;_0x3de787++){let _0x5b2d6c=this['points'][_0x3de787],_0x39acf1=this[_0x45e58b(0x225)][_0x3de787+0x1],_0x598e92=_0x1099a0,_0x1c851f=[_0x39acf1[0x0]-_0x5b2d6c[0x0],_0x39acf1[0x1]-_0x5b2d6c[0x1],_0x39acf1[0x2]-_0x5b2d6c[0x2]],_0x47a663=[_0x598e92[0x0]-_0x5b2d6c[0x0],_0x598e92[0x1]-_0x5b2d6c[0x1],_0x598e92[0x2]-_0x5b2d6c[0x2]],_0x5593b1=_0x1c851f[0x0]*_0x1c851f[0x0]+_0x1c851f[0x1]*_0x1c851f[0x1]+_0x1c851f[0x2]*_0x1c851f[0x2];if(_0x5593b1===0x0)continue;let _0x4b6113=(_0x47a663[0x0]*_0x1c851f[0x0]+_0x47a663[0x1]*_0x1c851f[0x1]+_0x47a663[0x2]*_0x1c851f[0x2])/_0x5593b1;_0x4b6113=Math[_0x45e58b(0x238)](0x0,Math['min'](0x1,_0x4b6113));let _0x17002e=[_0x5b2d6c[0x0]+_0x4b6113*_0x1c851f[0x0],_0x5b2d6c[0x1]+_0x4b6113*_0x1c851f[0x1],_0x5b2d6c[0x2]+_0x4b6113*_0x1c851f[0x2]],_0x5aa7ac=Math[_0x45e58b(0x209)](_0x598e92[0x0]-_0x17002e[0x0],0x2)+Math['pow'](_0x598e92[0x1]-_0x17002e[0x1],0x2)+Math['pow'](_0x598e92[0x2]-_0x17002e[0x2],0x2);_0x5aa7ac<_0x5aae9e&&(_0x5aae9e=_0x5aa7ac,_0x177291=(this['cumulativeLength'][_0x3de787]+_0x4b6113*this[_0x45e58b(0x1f9)][_0x3de787])/this['totalLength']);}return _0x177291;}[a0_0x1c617d(0x24b)](_0x18dec6){const _0xfc4144=a0_0x1c617d;if(_0x18dec6<=0x0)return[...this[_0xfc4144(0x225)][0x0]];if(_0x18dec6>=0x1)return[...this[_0xfc4144(0x225)][this[_0xfc4144(0x225)][_0xfc4144(0x1e7)]-0x1]];let _0x5339f5=_0x18dec6*this[_0xfc4144(0x240)];for(let _0x4438b4=0x0;_0x4438b4<this[_0xfc4144(0x21f)][_0xfc4144(0x1e7)]-0x1;_0x4438b4++)if(this['cumulativeLength'][_0x4438b4]<=_0x5339f5&&_0x5339f5<=this[_0xfc4144(0x21f)][_0x4438b4+0x1]){let _0x23f104=(_0x5339f5-this['cumulativeLength'][_0x4438b4])/this[_0xfc4144(0x1f9)][_0x4438b4],_0x33fa00=this[_0xfc4144(0x225)][_0x4438b4],_0x45b2e5=this[_0xfc4144(0x225)][_0x4438b4+0x1],_0x545128=(0x1-_0x23f104)*_0x33fa00[0x0]+_0x23f104*_0x45b2e5[0x0],_0x63fa17=(0x1-_0x23f104)*_0x33fa00[0x1]+_0x23f104*_0x45b2e5[0x1],_0x48fb12=(0x1-_0x23f104)*_0x33fa00[0x2]+_0x23f104*_0x45b2e5[0x2];return[_0x545128,_0x63fa17,_0x48fb12];}return[...this['points'][this[_0xfc4144(0x225)][_0xfc4144(0x1e7)]-0x1]];}},_={'pointsToIges':function(_0x16c584,_0x16ed1f={}){const _0x3e7cf9=a0_0x1c617d;let _0x365476={'units':'MM','filename':'points.iges','author':_0x3e7cf9(0x25d),'organization':_0x3e7cf9(0x200),'asPolyline':!0x1,..._0x16ed1f};if(!Array[_0x3e7cf9(0x1f2)](_0x16c584)||_0x16c584[_0x3e7cf9(0x1e7)]===0x0)throw new Error(_0x3e7cf9(0x1db));let _0x334921=_0x16c584[_0x3e7cf9(0x203)](_0x1db833=>{const _0x421467=_0x3e7cf9;if(!Array[_0x421467(0x1f2)](_0x1db833)||_0x1db833[_0x421467(0x1e7)]<0x2)throw new Error(_0x421467(0x1eb));return[_0x1db833[0x0]||0x0,_0x1db833[0x1]||0x0,_0x1db833[0x2]||0x0];}),_0x4d3581='',_0x45beb9='',_0x23f287='',_0x4d1772='',_0x103d28=0x0,_0x3313e4=0x1,_0x24547=0x1,_0x5d5c7e=new Date()['toISOString']()['slice'](0x0,0x13)[_0x3e7cf9(0x1e5)](/[-:]/g,'')[_0x3e7cf9(0x1e5)]('T','.');if(_0x45beb9+=this['formatGlobalLine'](_0x3e7cf9(0x204)+_0x365476['filename']+_0x3e7cf9(0x252)+_0x365476['author']+','),_0x45beb9+=this[_0x3e7cf9(0x242)]('11H'+_0x365476[_0x3e7cf9(0x1d1)]+_0x3e7cf9(0x253)+_0x365476[_0x3e7cf9(0x251)]+','),_0x45beb9+=this[_0x3e7cf9(0x242)](_0x3e7cf9(0x20b)+_0x365476['units']['toUpperCase']()+_0x3e7cf9(0x241)+_0x5d5c7e+','),_0x45beb9+=this[_0x3e7cf9(0x242)]('1.E-06,100.0,7H'+_0x365476[_0x3e7cf9(0x221)]+_0x3e7cf9(0x23f)+_0x365476[_0x3e7cf9(0x1d1)]+',11,0,'),_0x45beb9+=this[_0x3e7cf9(0x242)](_0x3e7cf9(0x234)+_0x5d5c7e+',;'),_0x365476[_0x3e7cf9(0x1e9)]&&_0x334921[_0x3e7cf9(0x1e7)]>0x1){_0x103d28++,_0x23f287+=this[_0x3e7cf9(0x1f3)](0x6a,_0x3313e4,0x0,0x0,0x0,0x0,0x0,0x0,_0x24547),_0x23f287+=this[_0x3e7cf9(0x1f3)](0x6a,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x24547+0x1),_0x24547+=0x2;let _0x2eea0f='106,'+(_0x334921[_0x3e7cf9(0x1e7)]-0x1);for(let _0x5323df=0x0;_0x5323df<_0x334921[_0x3e7cf9(0x1e7)];_0x5323df++){let _0xbd13df=_0x334921[_0x5323df];_0x2eea0f+=','+this[_0x3e7cf9(0x1fc)](_0xbd13df[0x0])+','+this[_0x3e7cf9(0x1fc)](_0xbd13df[0x1])+','+this[_0x3e7cf9(0x1fc)](_0xbd13df[0x2]);}_0x2eea0f+=';',_0x4d1772+=this['formatParameterLine'](_0x2eea0f,_0x3313e4),_0x3313e4+=Math[_0x3e7cf9(0x208)](_0x2eea0f[_0x3e7cf9(0x1e7)]/0x40);}else for(let _0x5afb5d=0x0;_0x5afb5d<_0x334921['length'];_0x5afb5d++){_0x103d28++;let _0x392a15=_0x334921[_0x5afb5d];_0x23f287+=this[_0x3e7cf9(0x1f3)](0x74,_0x3313e4,0x0,0x0,0x0,0x0,0x0,0x0,_0x24547),_0x23f287+=this[_0x3e7cf9(0x1f3)](0x74,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x24547+0x1),_0x24547+=0x2;let _0x4ec2fb=_0x3e7cf9(0x236)+this['formatNumber'](_0x392a15[0x0])+','+this[_0x3e7cf9(0x1fc)](_0x392a15[0x1])+','+this[_0x3e7cf9(0x1fc)](_0x392a15[0x2])+_0x3e7cf9(0x1fa);_0x4d1772+=this['formatParameterLine'](_0x4ec2fb,_0x3313e4),_0x3313e4+=Math[_0x3e7cf9(0x208)](_0x4ec2fb['length']/0x40);}let _0x23aee8=this[_0x3e7cf9(0x223)]('START',[_0x3e7cf9(0x231),_0x3e7cf9(0x1da)]),_0x1b87c9=this[_0x3e7cf9(0x1f7)](_0x23aee8[_0x3e7cf9(0x20f)]('\x0a')['length']-0x1,_0x45beb9[_0x3e7cf9(0x20f)]('\x0a')[_0x3e7cf9(0x1e7)]-0x1,_0x23f287[_0x3e7cf9(0x20f)]('\x0a')[_0x3e7cf9(0x1e7)]-0x1,_0x4d1772['split']('\x0a')[_0x3e7cf9(0x1e7)]-0x1);return _0x23aee8+_0x45beb9+_0x23f287+_0x4d1772+_0x1b87c9;},'formatNumber':function(_0x2d0cf6){const _0x9d482d=a0_0x1c617d;return Number['isInteger'](_0x2d0cf6)?_0x2d0cf6[_0x9d482d(0x1e6)]():Math['abs'](_0x2d0cf6)<0.001||Math[_0x9d482d(0x1ed)](_0x2d0cf6)>0xf4240?_0x2d0cf6[_0x9d482d(0x23e)](0x6):_0x2d0cf6[_0x9d482d(0x21d)](0x6)[_0x9d482d(0x1e5)](/\.?0+$/,'');},'formatGlobalLine':function(_0x17b1d4){const _0x2dc477=a0_0x1c617d;let _0x480d7f=(this[_0x2dc477(0x242)][_0x2dc477(0x21c)]||0x0)+0x1;return this[_0x2dc477(0x242)][_0x2dc477(0x21c)]=_0x480d7f,_0x17b1d4[_0x2dc477(0x219)](0x48)+('G'+_0x480d7f[_0x2dc477(0x1e6)]()[_0x2dc477(0x235)](0x7)+'\x0a');},'formatDirectoryLine':function(_0x1d0dc0,_0xaaf7f0,_0x37c5f1,_0x4146dd,_0x198d44,_0x16566c,_0x2689b8,_0xa2773e,_0x2ef518){const _0x3da28d=a0_0x1c617d;return[_0x1d0dc0[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8),_0xaaf7f0[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8),_0x37c5f1[_0x3da28d(0x1e6)]()['padStart'](0x8),_0x4146dd[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8),_0x198d44[_0x3da28d(0x1e6)]()['padStart'](0x8),_0x16566c[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8),_0x2689b8[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8),_0xa2773e[_0x3da28d(0x1e6)]()[_0x3da28d(0x235)](0x8)][_0x3da28d(0x22f)]('')+('D'+_0x2ef518['toString']()[_0x3da28d(0x235)](0x7)+'\x0a');},'formatParameterLine':function(_0x57806c,_0x115fb0){const _0x3613a4=a0_0x1c617d;let _0x38b44f='',_0x3ca58a=_0x115fb0;for(let _0x361bf9=0x0;_0x361bf9<_0x57806c[_0x3613a4(0x1e7)];_0x361bf9+=0x40){let _0x43c15b=_0x57806c[_0x3613a4(0x232)](_0x361bf9,0x40);_0x38b44f+=_0x43c15b[_0x3613a4(0x219)](0x40)+('\x20'+_0x3ca58a[_0x3613a4(0x1e6)]()[_0x3613a4(0x235)](0x7)+'P'+_0x3ca58a[_0x3613a4(0x1e6)]()['padStart'](0x7)+'\x0a'),_0x3ca58a++;}return _0x38b44f;},'formatSection':function(_0x4b14a8,_0x2bc360){const _0x234baf=a0_0x1c617d;return _0x2bc360[_0x234baf(0x203)]((_0x509c72,_0xd4401c)=>_0x509c72+'\x0a')[_0x234baf(0x22f)]('');},'formatTerminateSection':function(_0x3917fc,_0x263ce3,_0x364d22,_0x3196d3){const _0x1a546c=a0_0x1c617d;return['S'+_0x3917fc[_0x1a546c(0x1e6)]()[_0x1a546c(0x235)](0x7),'G'+_0x263ce3['toString']()[_0x1a546c(0x235)](0x7),'D'+_0x364d22[_0x1a546c(0x1e6)]()[_0x1a546c(0x235)](0x7),'P'+_0x3196d3[_0x1a546c(0x1e6)]()[_0x1a546c(0x235)](0x7)]['join']('')['padEnd'](0x48)+_0x1a546c(0x1e0);},'nurbsToIges':function(_0x48bac8,_0x44a52b={}){const _0x3d8fe7=a0_0x1c617d;let _0xa7d8b0={'units':'MM','filename':_0x3d8fe7(0x1e8),'author':_0x3d8fe7(0x25d),'organization':_0x3d8fe7(0x200),'degree':0x3,'weights':null,'knotVector':null,..._0x44a52b};if(!Array['isArray'](_0x48bac8)||_0x48bac8[_0x3d8fe7(0x1e7)]===0x0)throw new Error('Control\x20points\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty');if(_0x48bac8[_0x3d8fe7(0x1e7)]<_0xa7d8b0[_0x3d8fe7(0x250)]+0x1)throw new Error('At\x20least\x20'+(_0xa7d8b0[_0x3d8fe7(0x250)]+0x1)+_0x3d8fe7(0x259)+_0xa7d8b0[_0x3d8fe7(0x250)]+'\x20NURBS');let _0x51d512=_0x48bac8[_0x3d8fe7(0x203)](_0x132929=>{const _0x3b172c=_0x3d8fe7;if(!Array['isArray'](_0x132929)||_0x132929[_0x3b172c(0x1e7)]<0x2)throw new Error('Invalid\x20control\x20point\x20format.\x20Expected\x20[x,\x20y,\x20z]');return[_0x132929[0x0]||0x0,_0x132929[0x1]||0x0,_0x132929[0x2]||0x0];}),_0x50bc73=_0x51d512[_0x3d8fe7(0x1e7)],_0x373087=_0xa7d8b0[_0x3d8fe7(0x233)]||new Array(_0x50bc73)[_0x3d8fe7(0x255)](0x1);if(_0x373087[_0x3d8fe7(0x1e7)]!==_0x50bc73)throw new Error(_0x3d8fe7(0x256));let _0x440f43=_0xa7d8b0[_0x3d8fe7(0x1f5)];if(!_0x440f43){let _0x2c61ee=_0x50bc73+_0xa7d8b0[_0x3d8fe7(0x250)]+0x1;_0x440f43=[];let _0x51b309=_0x50bc73-0x1,_0x33b464=_0xa7d8b0[_0x3d8fe7(0x250)];for(let _0x398ca6=0x0;_0x398ca6<=_0x33b464;_0x398ca6++)_0x440f43[_0x3d8fe7(0x254)](0x0);for(let _0x389073=0x1;_0x389073<_0x51b309-_0x33b464+0x1;_0x389073++)_0x440f43['push'](_0x389073/(_0x51b309-_0x33b464+0x1));for(let _0x3528aa=0x0;_0x3528aa<=_0x33b464;_0x3528aa++)_0x440f43['push'](0x1);}if(_0x440f43[_0x3d8fe7(0x1e7)]!==_0x50bc73+_0xa7d8b0['degree']+0x1)throw new Error(_0x3d8fe7(0x237)+(_0x50bc73+_0xa7d8b0['degree']+0x1));let _0x102d62='',_0x4257ca='',_0x3867b0='',_0x490a93=0x1,_0x48944a=0x1,_0x2c0fee=new Date()[_0x3d8fe7(0x220)]()[_0x3d8fe7(0x206)](0x0,0x13)[_0x3d8fe7(0x1e5)](/[-:]/g,'')[_0x3d8fe7(0x1e5)]('T','.');_0x102d62+=this['formatGlobalLine'](_0x3d8fe7(0x204)+_0xa7d8b0[_0x3d8fe7(0x251)]+',7H'+_0xa7d8b0['author']+','),_0x102d62+=this[_0x3d8fe7(0x242)](_0x3d8fe7(0x22d)+_0xa7d8b0[_0x3d8fe7(0x1d1)]+_0x3d8fe7(0x253)+_0xa7d8b0[_0x3d8fe7(0x251)]+','),_0x102d62+=this[_0x3d8fe7(0x242)](_0x3d8fe7(0x20b)+_0xa7d8b0[_0x3d8fe7(0x243)]['toUpperCase']()+_0x3d8fe7(0x241)+_0x2c0fee+','),_0x102d62+=this[_0x3d8fe7(0x242)](_0x3d8fe7(0x23b)+_0xa7d8b0[_0x3d8fe7(0x221)]+',11H'+_0xa7d8b0[_0x3d8fe7(0x1d1)]+',11,0,'),_0x102d62+=this[_0x3d8fe7(0x242)](_0x3d8fe7(0x234)+_0x2c0fee+',;'),_0x4257ca+=this[_0x3d8fe7(0x1f3)](0x7e,_0x490a93,0x0,0x0,0x0,0x0,0x0,0x0,_0x48944a),_0x4257ca+=this[_0x3d8fe7(0x1f3)](0x7e,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x48944a+0x1),_0x48944a+=0x2;let _0x2d7405=_0x50bc73-0x1,_0x3b9e81=_0xa7d8b0[_0x3d8fe7(0x250)],_0x4a67f1=_0x3d8fe7(0x1ec)+_0x2d7405+','+_0x3b9e81+',0,0,1,0';for(let _0x10f7d3=0x0;_0x10f7d3<_0x440f43[_0x3d8fe7(0x1e7)];_0x10f7d3++)_0x4a67f1+=','+this[_0x3d8fe7(0x1fc)](_0x440f43[_0x10f7d3]);for(let _0x277cb7=0x0;_0x277cb7<_0x373087[_0x3d8fe7(0x1e7)];_0x277cb7++)_0x4a67f1+=','+this[_0x3d8fe7(0x1fc)](_0x373087[_0x277cb7]);for(let _0x5dbabc=0x0;_0x5dbabc<0x3;_0x5dbabc++)for(let _0x246109=0x0;_0x246109<_0x51d512[_0x3d8fe7(0x1e7)];_0x246109++)_0x4a67f1+=','+this[_0x3d8fe7(0x1fc)](_0x51d512[_0x246109][_0x5dbabc]);_0x4a67f1+=','+this[_0x3d8fe7(0x1fc)](_0x440f43[0x0])+','+this[_0x3d8fe7(0x1fc)](_0x440f43[_0x440f43['length']-0x1]),_0x4a67f1+=_0x3d8fe7(0x1d5),_0x4a67f1+=';',_0x3867b0+=this[_0x3d8fe7(0x25e)](_0x4a67f1,_0x490a93),_0x490a93+=Math[_0x3d8fe7(0x208)](_0x4a67f1[_0x3d8fe7(0x1e7)]/0x40);let _0x5c1020=this[_0x3d8fe7(0x223)](_0x3d8fe7(0x217),[_0x3d8fe7(0x231),_0x3d8fe7(0x23d)]),_0x102c5d=this[_0x3d8fe7(0x1f7)](_0x5c1020[_0x3d8fe7(0x20f)]('\x0a')['length']-0x1,_0x102d62['split']('\x0a')['length']-0x1,_0x4257ca[_0x3d8fe7(0x20f)]('\x0a')[_0x3d8fe7(0x1e7)]-0x1,_0x3867b0[_0x3d8fe7(0x20f)]('\x0a')[_0x3d8fe7(0x1e7)]-0x1);return _0x5c1020+_0x102d62+_0x4257ca+_0x3867b0+_0x102c5d;},'geometryToIges':function(_0x329f84,_0x3e0199={}){const _0x41bcc3=a0_0x1c617d;let _0x28ae75={'units':'MM','filename':_0x41bcc3(0x1ce),'author':_0x41bcc3(0x25d),'organization':_0x41bcc3(0x200),..._0x3e0199};if(!Array[_0x41bcc3(0x1f2)](_0x329f84)||_0x329f84[_0x41bcc3(0x1e7)]===0x0)throw new Error(_0x41bcc3(0x24a));let _0x52f26a='',_0x142a04='',_0x406c3e='',_0x305bbe=0x1,_0x4754c6=0x1,_0x5f3dd9=0x0,_0x38c379=new Date()[_0x41bcc3(0x220)]()[_0x41bcc3(0x206)](0x0,0x13)[_0x41bcc3(0x1e5)](/[-:]/g,'')[_0x41bcc3(0x1e5)]('T','.');_0x52f26a+=this[_0x41bcc3(0x242)](_0x41bcc3(0x204)+_0x28ae75[_0x41bcc3(0x251)]+_0x41bcc3(0x252)+_0x28ae75[_0x41bcc3(0x221)]+','),_0x52f26a+=this[_0x41bcc3(0x242)](_0x41bcc3(0x22d)+_0x28ae75[_0x41bcc3(0x1d1)]+_0x41bcc3(0x253)+_0x28ae75[_0x41bcc3(0x251)]+','),_0x52f26a+=this[_0x41bcc3(0x242)](_0x41bcc3(0x20b)+_0x28ae75[_0x41bcc3(0x243)]['toUpperCase']()+_0x41bcc3(0x241)+_0x38c379+','),_0x52f26a+=this[_0x41bcc3(0x242)](_0x41bcc3(0x23b)+_0x28ae75[_0x41bcc3(0x221)]+_0x41bcc3(0x23f)+_0x28ae75[_0x41bcc3(0x1d1)]+',11,0,'),_0x52f26a+=this[_0x41bcc3(0x242)](_0x41bcc3(0x234)+_0x38c379+',;');for(let _0x479a1d of _0x329f84){if(!_0x479a1d||typeof _0x479a1d!=_0x41bcc3(0x246)||!_0x479a1d[_0x41bcc3(0x214)]||!_0x479a1d[_0x41bcc3(0x1ef)])throw new Error(_0x41bcc3(0x1fe));let _0x49ec33=_0x479a1d['type'][_0x41bcc3(0x1ea)](),_0x2dcf72=_0x479a1d[_0x41bcc3(0x1ef)]['map'](_0x197981=>{const _0x55b328=_0x41bcc3;if(!Array[_0x55b328(0x1f2)](_0x197981)||_0x197981[_0x55b328(0x1e7)]<0x2)throw new Error(_0x55b328(0x1eb));return[_0x197981[0x0]||0x0,_0x197981[0x1]||0x0,_0x197981[0x2]||0x0];});if(_0x2dcf72[_0x41bcc3(0x1e7)]!==0x0)switch(_0x49ec33){case _0x41bcc3(0x225):for(let _0x8dadce of _0x2dcf72){_0x5f3dd9++,_0x142a04+=this[_0x41bcc3(0x1f3)](0x74,_0x305bbe,0x0,0x0,0x0,0x0,0x0,0x0,_0x4754c6),_0x142a04+=this[_0x41bcc3(0x1f3)](0x74,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x4754c6+0x1),_0x4754c6+=0x2;let _0x44bb1b=_0x41bcc3(0x236)+this[_0x41bcc3(0x1fc)](_0x8dadce[0x0])+','+this[_0x41bcc3(0x1fc)](_0x8dadce[0x1])+','+this['formatNumber'](_0x8dadce[0x2])+_0x41bcc3(0x1fa);_0x406c3e+=this['formatParameterLine'](_0x44bb1b,_0x305bbe),_0x305bbe+=Math[_0x41bcc3(0x208)](_0x44bb1b['length']/0x40);}break;case _0x41bcc3(0x25c):if(_0x2dcf72['length']>0x1){_0x5f3dd9++,_0x142a04+=this[_0x41bcc3(0x1f3)](0x6a,_0x305bbe,0x0,0x0,0x0,0x0,0x0,0x0,_0x4754c6),_0x142a04+=this[_0x41bcc3(0x1f3)](0x6a,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x4754c6+0x1),_0x4754c6+=0x2;let _0x3feff1=_0x41bcc3(0x24c)+(_0x2dcf72[_0x41bcc3(0x1e7)]-0x1);for(let _0x38f15d of _0x2dcf72)_0x3feff1+=','+this[_0x41bcc3(0x1fc)](_0x38f15d[0x0])+','+this[_0x41bcc3(0x1fc)](_0x38f15d[0x1])+','+this[_0x41bcc3(0x1fc)](_0x38f15d[0x2]);_0x3feff1+=';',_0x406c3e+=this[_0x41bcc3(0x25e)](_0x3feff1,_0x305bbe),_0x305bbe+=Math[_0x41bcc3(0x208)](_0x3feff1[_0x41bcc3(0x1e7)]/0x40);}break;case _0x41bcc3(0x22b):let _0x441656=_0x479a1d[_0x41bcc3(0x250)]||0x3,_0x24ad80=_0x2dcf72[_0x41bcc3(0x1e7)];if(_0x24ad80<_0x441656+0x1){console[_0x41bcc3(0x25a)](_0x41bcc3(0x1dc)+(_0x441656+0x1)+_0x41bcc3(0x25f)+_0x441656);continue;}let _0x573f0c=_0x479a1d[_0x41bcc3(0x233)]||new Array(_0x24ad80)[_0x41bcc3(0x255)](0x1);if(_0x573f0c[_0x41bcc3(0x1e7)]!==_0x24ad80)throw new Error('Weights\x20array\x20length\x20must\x20match\x20control\x20points\x20length');let _0x1674f1=_0x479a1d[_0x41bcc3(0x1f5)];if(!_0x1674f1){let _0x2ffa02=_0x24ad80-0x1,_0x178ec6=_0x441656;_0x1674f1=[];for(let _0x38d057=0x0;_0x38d057<=_0x178ec6;_0x38d057++)_0x1674f1[_0x41bcc3(0x254)](0x0);for(let _0x576733=0x1;_0x576733<_0x2ffa02-_0x178ec6+0x1;_0x576733++)_0x1674f1['push'](_0x576733/(_0x2ffa02-_0x178ec6+0x1));for(let _0x48618b=0x0;_0x48618b<=_0x178ec6;_0x48618b++)_0x1674f1[_0x41bcc3(0x254)](0x1);}_0x5f3dd9++,_0x142a04+=this[_0x41bcc3(0x1f3)](0x7e,_0x305bbe,0x0,0x0,0x0,0x0,0x0,0x0,_0x4754c6),_0x142a04+=this['formatDirectoryLine'](0x7e,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x4754c6+0x1),_0x4754c6+=0x2;let _0x171bbf='126,'+(_0x24ad80-0x1)+','+_0x441656+_0x41bcc3(0x1de);for(let _0x4dcdcf of _0x1674f1)_0x171bbf+=','+this[_0x41bcc3(0x1fc)](_0x4dcdcf);for(let _0x34de7b of _0x573f0c)_0x171bbf+=','+this[_0x41bcc3(0x1fc)](_0x34de7b);for(let _0x11e65f=0x0;_0x11e65f<0x3;_0x11e65f++)for(let _0x23501d of _0x2dcf72)_0x171bbf+=','+this[_0x41bcc3(0x1fc)](_0x23501d[_0x11e65f]);_0x171bbf+=','+this[_0x41bcc3(0x1fc)](_0x1674f1[0x0])+','+this['formatNumber'](_0x1674f1[_0x1674f1[_0x41bcc3(0x1e7)]-0x1]),_0x171bbf+=_0x41bcc3(0x1d5),_0x171bbf+=';',_0x406c3e+=this['formatParameterLine'](_0x171bbf,_0x305bbe),_0x305bbe+=Math['ceil'](_0x171bbf['length']/0x40);break;default:throw new Error('Unknown\x20geometry\x20type:\x20'+_0x49ec33+_0x41bcc3(0x202));}}if(_0x5f3dd9===0x0)throw new Error(_0x41bcc3(0x245));let _0x21b941=this[_0x41bcc3(0x223)]('START',[_0x41bcc3(0x231),_0x41bcc3(0x1cd)]),_0x1eeef3=this[_0x41bcc3(0x1f7)](_0x21b941[_0x41bcc3(0x20f)]('\x0a')['length']-0x1,_0x52f26a[_0x41bcc3(0x20f)]('\x0a')[_0x41bcc3(0x1e7)]-0x1,_0x142a04[_0x41bcc3(0x20f)]('\x0a')[_0x41bcc3(0x1e7)]-0x1,_0x406c3e[_0x41bcc3(0x20f)]('\x0a')['length']-0x1);return _0x21b941+_0x52f26a+_0x142a04+_0x406c3e+_0x1eeef3;},'readIgesFile':function(_0x3dd434){const _0x9c8675=a0_0x1c617d;if(!_0x3dd434||typeof _0x3dd434!='string')throw new Error(_0x9c8675(0x227));let _0xa0aef5=[],_0x2d8672=[],_0x30d1af=[],_0x2faab2=_0x3dd434[_0x9c8675(0x20f)]('\x0a')[_0x9c8675(0x24f)](_0x12c512=>_0x12c512['trim']()&&_0x12c512[_0x9c8675(0x1ff)](0x48)==='P'),_0x4cd2d2='';for(let _0x50e540 of _0x2faab2){let _0x25e97a=_0x50e540['substring'](0x0,0x40)[_0x9c8675(0x1f6)]();_0x4cd2d2+=_0x25e97a,_0x25e97a[_0x9c8675(0x257)](';')&&(this['processEntity'](_0x4cd2d2,_0xa0aef5,_0x2d8672,_0x30d1af),_0x4cd2d2='');}return{'lines':_0xa0aef5,'points':_0x2d8672,'nurbs':_0x30d1af};},'parseIgesNumber':function(_0x18b294){const _0x592f97=a0_0x1c617d;if(!_0x18b294||typeof _0x18b294!='string')return 0x0;let _0x54fa67=_0x18b294[_0x592f97(0x1f6)]()[_0x592f97(0x1e5)](/D([+-]?\d+)/g,_0x592f97(0x24e)),_0x1119bc=parseFloat(_0x54fa67);return isNaN(_0x1119bc)?0x0:_0x1119bc;},'processEntity':function(_0x53b841,_0x35abd9,_0x44837,_0x2242a9){const _0x192c91=a0_0x1c617d;let _0x5c098f=_0x53b841[_0x192c91(0x1e5)](';','')[_0x192c91(0x20f)](',')[_0x192c91(0x203)](_0x117706=>_0x117706['trim']());if(_0x5c098f['length']===0x0)return;switch(parseInt(_0x5c098f[0x0])){case 0x74:this[_0x192c91(0x22c)](_0x5c098f,_0x44837);break;case 0x6a:this[_0x192c91(0x201)](_0x5c098f,_0x35abd9);break;case 0x7e:this[_0x192c91(0x224)](_0x5c098f,_0x2242a9);break;case 0x6e:this['processLineEntity'](_0x5c098f,_0x35abd9);break;default:break;}},'processPointEntity':function(_0x625a29,_0x1cc6a9){const _0x311262=a0_0x1c617d;if(_0x625a29[_0x311262(0x1e7)]>=0x4){let _0x5dfeae=this['parseIgesNumber'](_0x625a29[0x1]),_0x4fe293=this[_0x311262(0x1e4)](_0x625a29[0x2]),_0x15fff9=this['parseIgesNumber'](_0x625a29[0x3]);_0x1cc6a9[_0x311262(0x254)]([_0x5dfeae,_0x4fe293,_0x15fff9]);}},'processPolylineEntity':function(_0x68fcae,_0x51d2a0){const _0x4dc8b9=a0_0x1c617d;if(_0x68fcae[_0x4dc8b9(0x1e7)]<0x2)return;let _0x17f68c=parseInt(_0x68fcae[0x1]),_0x2c99d3=0x2+(_0x17f68c+0x1)*0x3;if(_0x68fcae[_0x4dc8b9(0x1e7)]<_0x2c99d3)return;let _0x448c84=[];for(let _0x1773dc=0x0;_0x1773dc<=_0x17f68c;_0x1773dc++){let _0x568ffd=0x2+_0x1773dc*0x3;if(_0x568ffd+0x2<_0x68fcae[_0x4dc8b9(0x1e7)]){let _0x55e10c=this[_0x4dc8b9(0x1e4)](_0x68fcae[_0x568ffd]),_0x18555a=this[_0x4dc8b9(0x1e4)](_0x68fcae[_0x568ffd+0x1]),_0x47cb2a=this[_0x4dc8b9(0x1e4)](_0x68fcae[_0x568ffd+0x2]);_0x448c84[_0x4dc8b9(0x254)]([_0x55e10c,_0x18555a,_0x47cb2a]);}}_0x448c84['length']>0x1&&_0x51d2a0[_0x4dc8b9(0x254)](_0x448c84);},'processLineEntity':function(_0x460e12,_0x5b0b9b){const _0x13918c=a0_0x1c617d;if(_0x460e12[_0x13918c(0x1e7)]>=0x7){let _0xf29a5d=this[_0x13918c(0x1e4)](_0x460e12[0x1]),_0x312eec=this[_0x13918c(0x1e4)](_0x460e12[0x2]),_0x1ad990=this[_0x13918c(0x1e4)](_0x460e12[0x3]),_0x54a304=this[_0x13918c(0x1e4)](_0x460e12[0x4]),_0x346746=this['parseIgesNumber'](_0x460e12[0x5]),_0xe9f414=this[_0x13918c(0x1e4)](_0x460e12[0x6]);_0x5b0b9b[_0x13918c(0x254)]([[_0xf29a5d,_0x312eec,_0x1ad990],[_0x54a304,_0x346746,_0xe9f414]]);}},'processNurbsEntity':function(_0x2cc173,_0x474507){const _0x28870b=a0_0x1c617d;if(_0x2cc173[_0x28870b(0x1e7)]<0x7)return;let _0x2aee3f=parseInt(_0x2cc173[0x1]),_0x5d5997=parseInt(_0x2cc173[0x2]),_0x328f54=parseInt(_0x2cc173[0x3]),_0x2290d1=parseInt(_0x2cc173[0x4]),_0x859ec=parseInt(_0x2cc173[0x5]),_0x5bf324=parseInt(_0x2cc173[0x6]),_0x622f96=_0x2aee3f+0x1,_0x472c1c=_0x2aee3f+_0x5d5997+0x2,_0x50b841=0x7,_0x448e00=_0x50b841+_0x472c1c,_0xbc5c3c=_0x448e00+_0x622f96+_0x622f96+_0x622f96+_0x622f96+0x2;if(_0x2cc173['length']<_0xbc5c3c+0x3)return;let _0x24175d=[];for(let _0x1faae7=0x0;_0x1faae7<_0x472c1c;_0x1faae7++)_0x24175d[_0x28870b(0x254)](this[_0x28870b(0x1e4)](_0x2cc173[_0x50b841+_0x1faae7]));let _0x21c280=[];for(let _0x293f67=0x0;_0x293f67<_0x622f96;_0x293f67++)_0x21c280[_0x28870b(0x254)](this['parseIgesNumber'](_0x2cc173[_0x448e00+_0x293f67])||0x1);let _0x3fc6f0=[],_0x1c74a4=_0x448e00+_0x622f96,_0x133a08=_0x1c74a4+_0x622f96*0x3;if(_0x2cc173[_0x28870b(0x1e7)]>=_0x133a08+0x5){for(let _0x5d6ab4=0x0;_0x5d6ab4<_0x622f96;_0x5d6ab4++){let _0x154184=_0x1c74a4+_0x5d6ab4*0x3,_0x3e8dd8=this[_0x28870b(0x1e4)](_0x2cc173[_0x154184]),_0x2110e4=this[_0x28870b(0x1e4)](_0x2cc173[_0x154184+0x1]),_0x390c06=this[_0x28870b(0x1e4)](_0x2cc173[_0x154184+0x2]);_0x3fc6f0[_0x28870b(0x254)]([_0x3e8dd8,_0x2110e4,_0x390c06]);}let _0x9240ec=_0x133a08,_0x172a7d=_0x9240ec+0x2,_0x1b3dee=this[_0x28870b(0x1e4)](_0x2cc173[_0x9240ec]),_0x4e2679=this[_0x28870b(0x1e4)](_0x2cc173[_0x9240ec+0x1])||0x1,_0x1bdcd0=[this[_0x28870b(0x1e4)](_0x2cc173[_0x172a7d]),this[_0x28870b(0x1e4)](_0x2cc173[_0x172a7d+0x1]),this['parseIgesNumber'](_0x2cc173[_0x172a7d+0x2])],_0x33b3b5={'type':_0x28870b(0x22b),'degree':_0x5d5997,'controlPoints':_0x3fc6f0,'weights':_0x21c280,'knotVector':_0x24175d,'parameterRange':[_0x1b3dee,_0x4e2679],'properties':{'planar':_0x328f54===0x1,'closed':_0x2290d1===0x1,'rational':_0x859ec===0x1,'periodic':_0x5bf324===0x1},'normalVector':_0x1bdcd0,'numControlPoints':_0x622f96,'numKnots':_0x472c1c,'upperControlPointIndex':_0x2aee3f};_0x474507[_0x28870b(0x254)](_0x33b3b5);}else{let _0x114219=_0x448e00+_0x622f96,_0x5f209a=_0x114219+_0x622f96,_0x2fd0cd=_0x5f209a+_0x622f96,_0x3903a5=_0x2fd0cd+_0x622f96,_0x124802=_0x3903a5+0x2;if(_0x2cc173[_0x28870b(0x1e7)]<_0x124802+0x3)return;for(let _0x3957a9=0x0;_0x3957a9<_0x622f96;_0x3957a9++){let _0x256b4f=this[_0x28870b(0x1e4)](_0x2cc173[_0x114219+_0x3957a9]),_0x53f5b0=this[_0x28870b(0x1e4)](_0x2cc173[_0x5f209a+_0x3957a9]),_0x518870=this[_0x28870b(0x1e4)](_0x2cc173[_0x2fd0cd+_0x3957a9]);_0x3fc6f0[_0x28870b(0x254)]([_0x256b4f,_0x53f5b0,_0x518870]);}let _0x24e4cd=this[_0x28870b(0x1e4)](_0x2cc173[_0x3903a5]),_0x28bc5e=this['parseIgesNumber'](_0x2cc173[_0x3903a5+0x1])||0x1,_0x5786d2=[this[_0x28870b(0x1e4)](_0x2cc173[_0x124802]),this[_0x28870b(0x1e4)](_0x2cc173[_0x124802+0x1]),this[_0x28870b(0x1e4)](_0x2cc173[_0x124802+0x2])],_0xf8855b={'type':'nurbs','degree':_0x5d5997,'controlPoints':_0x3fc6f0,'weights':_0x21c280,'knotVector':_0x24175d,'parameterRange':[_0x24e4cd,_0x28bc5e],'properties':{'planar':_0x328f54===0x1,'closed':_0x2290d1===0x1,'rational':_0x859ec===0x1,'periodic':_0x5bf324===0x1},'normalVector':_0x5786d2,'numControlPoints':_0x622f96,'numKnots':_0x472c1c,'upperControlPointIndex':_0x2aee3f};_0x474507[_0x28870b(0x254)](_0xf8855b);}},'evaluateNurbsCurve':function(_0xa34643,_0x579576={}){const _0xa28275=a0_0x1c617d;let _0x2538f6={'numPoints':0x32,'parameters':null,..._0x579576};if(!_0xa34643||_0xa34643[_0xa28275(0x214)]!==_0xa28275(0x22b))throw new Error('Invalid\x20NURBS\x20curve\x20object');let {degree:_0x2aa403,controlPoints:_0x131a51,weights:_0xcf1ced,knotVector:_0x11ec8f,parameterRange:_0x361ab4}=_0xa34643,[_0x1026fc,_0x543805]=_0x361ab4,_0x3ff86a=_0x2538f6[_0xa28275(0x1f1)];if(!_0x3ff86a){_0x3ff86a=[];for(let _0x3cf165=0x0;_0x3cf165<_0x2538f6[_0xa28275(0x1d9)];_0x3cf165++){let _0x1de2f2=_0x1026fc+(_0x543805-_0x1026fc)*_0x3cf165/(_0x2538f6[_0xa28275(0x1d9)]-0x1);_0x3ff86a[_0xa28275(0x254)](_0x1de2f2);}}let _0x1c42ea=[];for(let _0x402cc0 of _0x3ff86a){let _0x43c466=Math[_0xa28275(0x238)](_0x1026fc,Math[_0xa28275(0x212)](_0x543805,_0x402cc0)),_0x132b96=this[_0xa28275(0x258)](_0x43c466,_0x2aa403,_0x11ec8f),_0x43cbce=this[_0xa28275(0x20d)](_0x132b96,_0x43c466,_0x2aa403,_0x11ec8f),_0xb7eb73=[0x0,0x0,0x0],_0x154454=0x0;for(let _0x4f8983=0x0;_0x4f8983<=_0x2aa403;_0x4f8983++){let _0x1395b4=_0x132b96-_0x2aa403+_0x4f8983;if(_0x1395b4>=0x0&&_0x1395b4<_0x131a51[_0xa28275(0x1e7)]){let _0x16300c=_0xcf1ced[_0x1395b4]*_0x43cbce[_0x4f8983];_0x154454+=_0x16300c,_0xb7eb73[0x0]+=_0x131a51[_0x1395b4][0x0]*_0x16300c,_0xb7eb73[0x1]+=_0x131a51[_0x1395b4][0x1]*_0x16300c,_0xb7eb73[0x2]+=_0x131a51[_0x1395b4][0x2]*_0x16300c;}}_0x154454>0x0&&(_0xb7eb73[0x0]/=_0x154454,_0xb7eb73[0x1]/=_0x154454,_0xb7eb73[0x2]/=_0x154454),_0x1c42ea['push'](_0xb7eb73);}return _0x1c42ea;},'findKnotSpan':function(_0x1fd08e,_0x2e1d74,_0x5d9177){const _0x468f41=a0_0x1c617d;let _0x10e085=_0x5d9177['length']-_0x2e1d74-0x2;if(_0x1fd08e>=_0x5d9177[_0x10e085+0x1])return _0x10e085;if(_0x1fd08e<=_0x5d9177[_0x2e1d74])return _0x2e1d74;let _0x404c47=_0x2e1d74,_0x29fafb=_0x10e085+0x1,_0x38e9e2=Math[_0x468f41(0x23a)]((_0x404c47+_0x29fafb)/0x2);for(;_0x1fd08e<_0x5d9177[_0x38e9e2]||_0x1fd08e>=_0x5d9177[_0x38e9e2+0x1];)_0x1fd08e<_0x5d9177[_0x38e9e2]?_0x29fafb=_0x38e9e2:_0x404c47=_0x38e9e2,_0x38e9e2=Math[_0x468f41(0x23a)]((_0x404c47+_0x29fafb)/0x2);return _0x38e9e2;},'computeBasisFunctions':function(_0x54c037,_0x14ca55,_0x5a35c5,_0x396fff){let _0x327a9c=new Array(_0x5a35c5+0x1),_0x30710a=new Array(_0x5a35c5+0x1),_0xf9dc91=new Array(_0x5a35c5+0x1);_0x327a9c[0x0]=0x1;for(let _0x30a0ea=0x1;_0x30a0ea<=_0x5a35c5;_0x30a0ea++){_0x30710a[_0x30a0ea]=_0x14ca55-_0x396fff[_0x54c037+0x1-_0x30a0ea],_0xf9dc91[_0x30a0ea]=_0x396fff[_0x54c037+_0x30a0ea]-_0x14ca55;let _0x5b99f8=0x0;for(let _0x1be4d7=0x0;_0x1be4d7<_0x30a0ea;_0x1be4d7++){let _0x415f24=_0x327a9c[_0x1be4d7]/(_0xf9dc91[_0x1be4d7+0x1]+_0x30710a[_0x30a0ea-_0x1be4d7]);_0x327a9c[_0x1be4d7]=_0x5b99f8+_0xf9dc91[_0x1be4d7+0x1]*_0x415f24,_0x5b99f8=_0x30710a[_0x30a0ea-_0x1be4d7]*_0x415f24;}_0x327a9c[_0x30a0ea]=_0x5b99f8;}return _0x327a9c;},'simplifyIgesData':function(_0x59b0b4,_0xb52e3e={}){const _0x124f74=a0_0x1c617d;let _0x4b302e={'flattenLines':!0x1,'flattenNurbs':!0x1,'precision':0x6,'includeNurbsMetadata':!0x0,..._0xb52e3e},_0x10f93c={'points':_0x59b0b4[_0x124f74(0x225)]['map'](_0x4cd073=>_0x4cd073[_0x124f74(0x203)](_0x2373b1=>parseFloat(_0x2373b1['toFixed'](_0x4b302e[_0x124f74(0x229)])))),'lines':_0x59b0b4[_0x124f74(0x213)][_0x124f74(0x203)](_0x2db44b=>_0x2db44b[_0x124f74(0x203)](_0x1b6705=>_0x1b6705[_0x124f74(0x203)](_0x24ee74=>parseFloat(_0x24ee74[_0x124f74(0x21d)](_0x4b302e['precision']))))),'nurbs':[]};if(_0x59b0b4[_0x124f74(0x22b)]&&_0x59b0b4[_0x124f74(0x22b)][_0x124f74(0x1e7)]>0x0){for(let _0x1997f6 of _0x59b0b4[_0x124f74(0x22b)])if(_0x4b302e[_0x124f74(0x1d6)]){let _0x38c724=_0x1997f6[_0x124f74(0x1cf)][_0x124f74(0x203)](_0x4d6eee=>_0x4d6eee[_0x124f74(0x203)](_0x2c21e4=>parseFloat(_0x2c21e4['toFixed'](_0x4b302e['precision']))));_0x10f93c[_0x124f74(0x213)]['push'](_0x38c724);}else{let _0x2d5af4={'type':'nurbs','degree':_0x1997f6['degree'],'controlPoints':_0x1997f6[_0x124f74(0x1cf)][_0x124f74(0x203)](_0x3fa8f7=>_0x3fa8f7[_0x124f74(0x203)](_0x3d325f=>parseFloat(_0x3d325f['toFixed'](_0x4b302e[_0x124f74(0x229)])))),'weights':_0x1997f6[_0x124f74(0x233)]['map'](_0x2e8c7c=>parseFloat(_0x2e8c7c[_0x124f74(0x21d)](_0x4b302e['precision']))),'knotVector':_0x1997f6[_0x124f74(0x1f5)][_0x124f74(0x203)](_0xfde7d0=>parseFloat(_0xfde7d0['toFixed'](_0x4b302e[_0x124f74(0x229)]))),'parameterRange':_0x1997f6['parameterRange'][_0x124f74(0x203)](_0x489b26=>parseFloat(_0x489b26[_0x124f74(0x21d)](_0x4b302e['precision'])))};_0x4b302e[_0x124f74(0x226)]&&(_0x2d5af4[_0x124f74(0x1d2)]=_0x1997f6['properties'],_0x2d5af4[_0x124f74(0x1e1)]=_0x1997f6[_0x124f74(0x1e1)][_0x124f74(0x203)](_0x3e5e8b=>parseFloat(_0x3e5e8b[_0x124f74(0x21d)](_0x4b302e['precision']))),_0x2d5af4[_0x124f74(0x1d8)]=_0x1997f6[_0x124f74(0x1d8)],_0x2d5af4[_0x124f74(0x1f8)]=_0x1997f6['numKnots']),_0x10f93c[_0x124f74(0x22b)]['push'](_0x2d5af4);}}if(_0x4b302e[_0x124f74(0x25b)]){let _0x2bd528=[..._0x10f93c[_0x124f74(0x225)]];for(let _0x3b52e1 of _0x10f93c[_0x124f74(0x213)])_0x2bd528[_0x124f74(0x254)](..._0x3b52e1);_0x10f93c[_0x124f74(0x1d0)]=_0x2bd528;}return _0x10f93c;}};if(new Date()[a0_0x1c617d(0x211)]()>0x7e9)throw new Error('');export{j as Bspline3d,C as Cspline3d,_ as Iges,F as Point3d,D as Polyline3D,H as Utils,w as Vector3d};
|
|
1
|
+
const a0_0x5d04ea=a0_0x135a;(function(_0x3e58d9,_0x4a70ad){const _0x210e47=a0_0x135a,_0x388cf5=_0x3e58d9();while(!![]){try{const _0xe46d65=-parseInt(_0x210e47(0x1e0))/0x1*(-parseInt(_0x210e47(0x1c6))/0x2)+-parseInt(_0x210e47(0x1fd))/0x3+-parseInt(_0x210e47(0x219))/0x4*(-parseInt(_0x210e47(0x1ce))/0x5)+-parseInt(_0x210e47(0x1e4))/0x6+-parseInt(_0x210e47(0x1c5))/0x7*(parseInt(_0x210e47(0x1b7))/0x8)+parseInt(_0x210e47(0x20e))/0x9+-parseInt(_0x210e47(0x1cd))/0xa;if(_0xe46d65===_0x4a70ad)break;else _0x388cf5['push'](_0x388cf5['shift']());}catch(_0x225cce){_0x388cf5['push'](_0x388cf5['shift']());}}}(a0_0x1fdc,0x25d31));var w={'length':function(_0x55d77a){const _0x519064=a0_0x135a;return Math[_0x519064(0x1c7)](_0x55d77a[0x0]**0x2+_0x55d77a[0x1]**0x2+_0x55d77a[0x2]**0x2);},'scalarProduct':function(_0x30a83c,_0x4b93b2){return[_0x30a83c[0x0]*_0x4b93b2,_0x30a83c[0x1]*_0x4b93b2,_0x30a83c[0x2]*_0x4b93b2];},'dot':function(_0x5a2a90,_0x59fe72){return _0x5a2a90[0x0]*_0x59fe72[0x0]+_0x5a2a90[0x1]*_0x59fe72[0x1]+_0x5a2a90[0x2]*_0x59fe72[0x2];},'angle':function(_0x3bc301,_0x2b5651,_0x293358=!0x1){const _0x33075e=a0_0x135a;let _0x2d9605=this[_0x33075e(0x1b1)](_0x3bc301,_0x2b5651)/(this[_0x33075e(0x1b5)](_0x3bc301)*this[_0x33075e(0x1b5)](_0x2b5651)),_0x53276a=Math['acos'](_0x2d9605);return _0x293358&&_0x53276a>Math['PI']/0x2&&(_0x53276a=Math['PI']-_0x53276a),_0x53276a;},'sub':function(_0x450b69,_0x3cfa35){return[_0x450b69[0x0]-_0x3cfa35[0x0],_0x450b69[0x1]-_0x3cfa35[0x1],_0x450b69[0x2]-_0x3cfa35[0x2]];},'add':function(_0x17c060,_0x36e5ce){return[_0x17c060[0x0]+_0x36e5ce[0x0],_0x17c060[0x1]+_0x36e5ce[0x1],_0x17c060[0x2]+_0x36e5ce[0x2]];},'rotate':function(_0x529f3,_0x192b14,_0x55d29f){const _0x4e29b7=a0_0x135a;let _0xcf23b=_0x55d29f*Math['PI']/0xb4,_0x4324f6=Math[_0x4e29b7(0x1fe)](_0xcf23b),_0x318fd9=Math[_0x4e29b7(0x1b4)](_0xcf23b),_0x2236ec=_0x529f3[0x0],_0x24d721=_0x529f3[0x1],_0x419656=_0x529f3[0x2],_0x2ffc7d=_0x192b14[0x0],_0x58cdb4=_0x192b14[0x1],_0x41811d=_0x192b14[0x2],_0xf5c0b9=_0x2ffc7d*_0x2236ec+_0x58cdb4*_0x24d721+_0x41811d*_0x419656,_0x20b0f6=_0x2ffc7d*_0xf5c0b9*(0x1-_0x4324f6)+_0x2236ec*_0x4324f6+(-_0x41811d*_0x24d721+_0x58cdb4*_0x419656)*_0x318fd9,_0x4d2257=_0x58cdb4*_0xf5c0b9*(0x1-_0x4324f6)+_0x24d721*_0x4324f6+(_0x41811d*_0x2236ec-_0x2ffc7d*_0x419656)*_0x318fd9,_0x3c3969=_0x41811d*_0xf5c0b9*(0x1-_0x4324f6)+_0x419656*_0x4324f6+(-_0x58cdb4*_0x2236ec+_0x2ffc7d*_0x24d721)*_0x318fd9;return[_0x20b0f6,_0x4d2257,_0x3c3969];},'fromTwoPoints':function(_0x4addd9,_0x382b0d){return[_0x382b0d[0x0]-_0x4addd9[0x0],_0x382b0d[0x1]-_0x4addd9[0x1],_0x382b0d[0x2]-_0x4addd9[0x2]];},'normalized':function(_0x150269){const _0x505063=a0_0x135a;return w[_0x505063(0x214)](_0x150269,0x1/w[_0x505063(0x1b5)](_0x150269));},'cross':function(_0x52b71a,_0xab33d3){return[_0x52b71a[0x1]*_0xab33d3[0x2]-_0x52b71a[0x2]*_0xab33d3[0x1],_0x52b71a[0x2]*_0xab33d3[0x0]-_0x52b71a[0x0]*_0xab33d3[0x2],_0x52b71a[0x0]*_0xab33d3[0x1]-_0x52b71a[0x1]*_0xab33d3[0x0]];}},F={'distance':function(_0x2ad3fe,_0x50f9b5){const _0x514ec9=a0_0x135a;return w[_0x514ec9(0x1b5)](w[_0x514ec9(0x1d5)](_0x50f9b5,_0x2ad3fe));},'move':function(_0x310377,_0x5f39d8){const _0x22f85d=a0_0x135a;return w[_0x22f85d(0x198)](_0x310377,_0x5f39d8);},'scale':function(_0x2137f7,_0x39c354,_0x15b08b){const _0x4a1d82=a0_0x135a;return _0x15b08b!=null&&(_0x2137f7=this[_0x4a1d82(0x19b)](_0x2137f7,w[_0x4a1d82(0x214)](_0x15b08b,-0x1))),_0x2137f7=w['scalarProduct'](_0x2137f7,_0x39c354),_0x15b08b!=null&&(_0x2137f7=this[_0x4a1d82(0x19b)](_0x2137f7,_0x15b08b)),_0x2137f7;},'rotate':function(_0xda0c69,_0xcc39ff,_0x33bb44,_0x1e1cfe){const _0x361393=a0_0x135a;let _0x215bd6=_0x33bb44*Math['PI']/0xb4,_0x35bc17=Math['cos'](_0x215bd6),_0x416adb=Math[_0x361393(0x1b4)](_0x215bd6),_0x5a31eb=_0xda0c69[0x0],_0x513a0e=_0xda0c69[0x1],_0x585d07=_0xda0c69[0x2];_0x1e1cfe!=null&&(_0x5a31eb=_0x5a31eb-_0x1e1cfe[0x0],_0x513a0e=_0x513a0e-_0x1e1cfe[0x1],_0x585d07=_0x585d07-_0x1e1cfe[0x2]);let _0xcfdf85=_0xcc39ff[0x0],_0x2d3304=_0xcc39ff[0x1],_0x6c56a7=_0xcc39ff[0x2],_0x495d75=_0xcfdf85*_0x5a31eb+_0x2d3304*_0x513a0e+_0x6c56a7*_0x585d07,_0x37bb88=_0xcfdf85*_0x495d75*(0x1-_0x35bc17)+_0x5a31eb*_0x35bc17+(-_0x6c56a7*_0x513a0e+_0x2d3304*_0x585d07)*_0x416adb,_0x3cfa59=_0x2d3304*_0x495d75*(0x1-_0x35bc17)+_0x513a0e*_0x35bc17+(_0x6c56a7*_0x5a31eb-_0xcfdf85*_0x585d07)*_0x416adb,_0x355c51=_0x6c56a7*_0x495d75*(0x1-_0x35bc17)+_0x585d07*_0x35bc17+(-_0x2d3304*_0x5a31eb+_0xcfdf85*_0x513a0e)*_0x416adb,_0x19eacb=[_0x37bb88,_0x3cfa59,_0x355c51];return _0x1e1cfe!=null&&(_0x19eacb[0x0]=_0x19eacb[0x0]+_0x1e1cfe[0x0],_0x19eacb[0x1]=_0x19eacb[0x1]+_0x1e1cfe[0x1],_0x19eacb[0x2]=_0x19eacb[0x2]+_0x1e1cfe[0x2]),_0x19eacb;},'project':function(_0x459251,_0x91218b,_0x5bec0c){const _0x3833d2=a0_0x135a;let _0x235fec=w['sub'](_0x459251,_0x5bec0c),_0x134123=w['dot'](_0x235fec,_0x91218b)/w['length'](_0x91218b),_0x419adf=w[_0x3833d2(0x214)](_0x91218b,0x1/w['length'](_0x91218b));return w[_0x3833d2(0x1d5)](_0x459251,w[_0x3833d2(0x214)](_0x419adf,_0x134123));}},H={'linspace':function(_0x3cbe6f,_0x105476,_0x2eb9fc,_0x3ceda5=!0x0){const _0x818148=a0_0x135a;let _0x5a363e=_0x3ceda5?_0x2eb9fc-0x1:_0x2eb9fc,_0x36d088=(_0x105476-_0x3cbe6f)/_0x5a363e;return Array[_0x818148(0x21c)]({'length':_0x2eb9fc},(_0x47562a,_0x4456d7)=>_0x3cbe6f+_0x36d088*_0x4456d7);},'cosineSpacing':function(_0x49aafe,_0x44f269,_0x3ccdb8){const _0x39e1ce=a0_0x135a;let _0x163ac7=Array[_0x39e1ce(0x21c)]({'length':_0x3ccdb8},(_0x1aab64,_0x2ea948)=>_0x2ea948/(_0x3ccdb8-0x1))[_0x39e1ce(0x1a3)](_0x47afa5=>(0x1-Math[_0x39e1ce(0x1fe)](_0x47afa5*Math['PI']))/0x2),_0x136501=[];for(let _0x572706=0x0;_0x572706<_0x163ac7['length'];_0x572706++){let _0x1df875=_0x163ac7[_0x572706];_0x136501[_0x39e1ce(0x197)](mapToSpace(_0x1df875,[0x0,0x1],[_0x49aafe,_0x44f269]));}return _0x136501;},'normalizedCosineSpacing':function(_0x2d1a2e){const _0x361395=a0_0x135a;return Array[_0x361395(0x21c)]({'length':_0x2d1a2e},(_0x5e8cf4,_0x2da5f9)=>_0x2da5f9/(_0x2d1a2e-0x1))[_0x361395(0x1a3)](_0xe837c4=>(0x1-Math[_0x361395(0x1fe)](_0xe837c4*Math['PI']))/0x2);},'mapToSpace':function(_0x46bd28,_0x1e1da9,_0x23857f){return _0x23857f[0x1]+(_0x46bd28-_0x1e1da9[0x1])*(_0x23857f[0x0]-_0x23857f[0x1])/(_0x1e1da9[0x0]-_0x1e1da9[0x1]);}},j={'from_control_points':function(_0x13a7f0,_0x581c58,_0x34690e,_0x1de983){const _0x1b5a9e=a0_0x135a;_0x1de983===void 0x0&&(_0x1de983=this['_uniform_knot_spacing'](_0x13a7f0,_0x581c58));let _0x40bb1b=H[_0x1b5a9e(0x1cf)](0x0,0x1,_0x34690e),_0x41f971=[];for(var _0x536816 of _0x40bb1b)_0x41f971['push'](this[_0x1b5a9e(0x207)](_0x536816,_0x581c58,_0x13a7f0,_0x1de983));return _0x41f971;},'from_control_points_cosine':function(_0x3159a0,_0x2e5107,_0x5c7a95,_0x40246d){const _0x511a19=a0_0x135a;_0x40246d===void 0x0&&(_0x40246d=this['_uniform_knot_spacing'](_0x3159a0,_0x2e5107));let _0x55b205=H['normalizedCosineSpacing'](_0x5c7a95),_0x530617=[];for(var _0x5577fc of _0x55b205)_0x530617[_0x511a19(0x197)](this[_0x511a19(0x207)](_0x5577fc,_0x2e5107,_0x3159a0,_0x40246d));return _0x530617;},'_uniform_knot_spacing':function(_0x1836c8,_0x5d8ffd){const _0x4da085=a0_0x135a;let _0x24393a=_0x1836c8[_0x4da085(0x1b5)]+_0x5d8ffd+0x1,_0x9b2b49=[],_0x500763=_0x24393a-(_0x5d8ffd+0x1)*0x2;for(var _0x4d1617=0x0;_0x4d1617<_0x5d8ffd+0x1;_0x4d1617++)_0x9b2b49[_0x4da085(0x197)](0x0);for(var _0x4d1617=0x0;_0x4d1617<_0x500763;_0x4d1617++)_0x9b2b49[_0x4da085(0x197)](_0x4d1617+0x1);let _0x4fb112=_0x9b2b49[_0x9b2b49[_0x4da085(0x1b5)]-0x1]+0x1;for(var _0x4d1617=0x0;_0x4d1617<_0x5d8ffd+0x1;_0x4d1617++)_0x9b2b49[_0x4da085(0x197)](_0x4fb112);return _0x9b2b49;},'bspline':function(_0x599409,_0x3b015e,_0xbeba38,_0x4d0867,_0x1c78dc,_0x3e4feb){const _0x22c4f2=a0_0x135a;var _0x142094,_0x1e669f,_0x125b53,_0x59b58e,_0x4d1fb0=_0xbeba38[_0x22c4f2(0x1b5)],_0x45331a=_0xbeba38[0x0][_0x22c4f2(0x1b5)];if(_0x3b015e<0x1)throw new Error(_0x22c4f2(0x1ff));if(_0x3b015e>_0x4d1fb0-0x1)throw new Error(_0x22c4f2(0x1b2));if(!_0x1c78dc){for(_0x1c78dc=[],_0x142094=0x0;_0x142094<_0x4d1fb0;_0x142094++)_0x1c78dc[_0x142094]=0x1;}if(_0x4d0867){if(_0x4d0867[_0x22c4f2(0x1b5)]!==_0x4d1fb0+_0x3b015e+0x1)throw new Error(_0x22c4f2(0x1c9));}else{var _0x4d0867=[];for(_0x142094=0x0;_0x142094<_0x4d1fb0+_0x3b015e+0x1;_0x142094++)_0x4d0867[_0x142094]=_0x142094;}var _0x293ffa=[_0x3b015e,_0x4d0867['length']-0x1-_0x3b015e],_0x156eeb=_0x4d0867[_0x293ffa[0x0]],_0x2d0419=_0x4d0867[_0x293ffa[0x1]];if(_0x599409=_0x599409*(_0x2d0419-_0x156eeb)+_0x156eeb,_0x599409<_0x156eeb||_0x599409>_0x2d0419)throw new Error('out\x20of\x20bounds');for(_0x125b53=_0x293ffa[0x0];_0x125b53<_0x293ffa[0x1]&&!(_0x599409>=_0x4d0867[_0x125b53]&&_0x599409<=_0x4d0867[_0x125b53+0x1]);_0x125b53++);var _0x199d77=[];for(_0x142094=0x0;_0x142094<_0x4d1fb0;_0x142094++){for(_0x199d77[_0x142094]=[],_0x1e669f=0x0;_0x1e669f<_0x45331a;_0x1e669f++)_0x199d77[_0x142094][_0x1e669f]=_0xbeba38[_0x142094][_0x1e669f]*_0x1c78dc[_0x142094];_0x199d77[_0x142094][_0x45331a]=_0x1c78dc[_0x142094];}var _0xc536d1;for(_0x59b58e=0x1;_0x59b58e<=_0x3b015e+0x1;_0x59b58e++)for(_0x142094=_0x125b53;_0x142094>_0x125b53-_0x3b015e-0x1+_0x59b58e;_0x142094--)for(_0xc536d1=(_0x599409-_0x4d0867[_0x142094])/(_0x4d0867[_0x142094+_0x3b015e+0x1-_0x59b58e]-_0x4d0867[_0x142094]),_0x1e669f=0x0;_0x1e669f<_0x45331a+0x1;_0x1e669f++)_0x199d77[_0x142094][_0x1e669f]=(0x1-_0xc536d1)*_0x199d77[_0x142094-0x1][_0x1e669f]+_0xc536d1*_0x199d77[_0x142094][_0x1e669f];var _0x3e4feb=_0x3e4feb||[];for(_0x142094=0x0;_0x142094<_0x45331a;_0x142094++)_0x3e4feb[_0x142094]=_0x199d77[_0x125b53][_0x142094]/_0x199d77[_0x125b53][_0x45331a];return _0x3e4feb;}},C={'_gaussJ':{'solve':function(_0x20c9f5,_0x266b06){const _0x46468b=a0_0x135a;let _0x25e28d=_0x20c9f5[_0x46468b(0x1b5)];for(let _0xf0a856=0x0;_0xf0a856<_0x25e28d;_0xf0a856++){let _0x5aee06=0x0,_0x1cd6a1=Number['NEGATIVE_INFINITY'];for(let _0xe0218b=_0xf0a856;_0xe0218b<_0x25e28d;_0xe0218b++)Math[_0x46468b(0x1ed)](_0x20c9f5[_0xe0218b][_0xf0a856])>_0x1cd6a1&&(_0x5aee06=_0xe0218b,_0x1cd6a1=Math[_0x46468b(0x1ed)](_0x20c9f5[_0xe0218b][_0xf0a856]));this[_0x46468b(0x1e6)](_0x20c9f5,_0xf0a856,_0x5aee06);for(let _0x3049b5=_0xf0a856+0x1;_0x3049b5<_0x25e28d;_0x3049b5++){let _0x5689d5=_0x20c9f5[_0x3049b5][_0xf0a856]/_0x20c9f5[_0xf0a856][_0xf0a856];for(let _0xd271d7=_0xf0a856;_0xd271d7<_0x25e28d+0x1;_0xd271d7++)_0x20c9f5[_0x3049b5][_0xd271d7]-=_0x20c9f5[_0xf0a856][_0xd271d7]*_0x5689d5;}}for(let _0x583fb8=_0x25e28d-0x1;_0x583fb8>=0x0;_0x583fb8--){let _0x2904e6=_0x20c9f5[_0x583fb8][_0x25e28d]/_0x20c9f5[_0x583fb8][_0x583fb8];_0x266b06[_0x583fb8]=_0x2904e6;for(let _0x2f9da1=_0x583fb8-0x1;_0x2f9da1>=0x0;_0x2f9da1--)_0x20c9f5[_0x2f9da1][_0x25e28d]-=_0x20c9f5[_0x2f9da1][_0x583fb8]*_0x2904e6,_0x20c9f5[_0x2f9da1][_0x583fb8]=0x0;}},'zerosMat':function(_0x5b3a6c,_0x14ffcf){const _0x4f38e1=a0_0x135a;let _0x4966a7=[];for(let _0x56927a=0x0;_0x56927a<_0x5b3a6c;_0x56927a++)_0x4966a7[_0x4f38e1(0x197)](new Array(_0x14ffcf)['fill'](0x0));return _0x4966a7;},'printMat':function(_0x2fafd7){const _0x4ae7f6=a0_0x135a;_0x2fafd7[_0x4ae7f6(0x204)](_0x28f69c=>console[_0x4ae7f6(0x1c2)](_0x28f69c));},'swapRows':function(_0x15987a,_0x49d2a3,_0x37c6e8){let _0x3d424e=_0x15987a[_0x49d2a3];_0x15987a[_0x49d2a3]=_0x15987a[_0x37c6e8],_0x15987a[_0x37c6e8]=_0x3d424e;}},'getNaturalKs':function(_0x1d0e82,_0x3bd37e,_0x5cbcde){const _0x35522d=a0_0x135a;let _0x4dbf17=_0x1d0e82[_0x35522d(0x1b5)]-0x1,_0x449a65=this[_0x35522d(0x218)]['zerosMat'](_0x4dbf17+0x1,_0x4dbf17+0x2);for(let _0x4c9f03=0x1;_0x4c9f03<_0x4dbf17;_0x4c9f03++)_0x449a65[_0x4c9f03][_0x4c9f03-0x1]=0x1/(_0x1d0e82[_0x4c9f03]-_0x1d0e82[_0x4c9f03-0x1]),_0x449a65[_0x4c9f03][_0x4c9f03]=0x2*(0x1/(_0x1d0e82[_0x4c9f03]-_0x1d0e82[_0x4c9f03-0x1])+0x1/(_0x1d0e82[_0x4c9f03+0x1]-_0x1d0e82[_0x4c9f03])),_0x449a65[_0x4c9f03][_0x4c9f03+0x1]=0x1/(_0x1d0e82[_0x4c9f03+0x1]-_0x1d0e82[_0x4c9f03]),_0x449a65[_0x4c9f03][_0x4dbf17+0x1]=0x3*((_0x3bd37e[_0x4c9f03]-_0x3bd37e[_0x4c9f03-0x1])/(_0x1d0e82[_0x4c9f03]-_0x1d0e82[_0x4c9f03-0x1])**0x2+(_0x3bd37e[_0x4c9f03+0x1]-_0x3bd37e[_0x4c9f03])/(_0x1d0e82[_0x4c9f03+0x1]-_0x1d0e82[_0x4c9f03])**0x2);_0x449a65[0x0][0x0]=0x2/(_0x1d0e82[0x1]-_0x1d0e82[0x0]),_0x449a65[0x0][0x1]=0x1/(_0x1d0e82[0x1]-_0x1d0e82[0x0]),_0x449a65[0x0][_0x4dbf17+0x1]=0x3*(_0x3bd37e[0x1]-_0x3bd37e[0x0])/(_0x1d0e82[0x1]-_0x1d0e82[0x0])**0x2,_0x449a65[_0x4dbf17][_0x4dbf17-0x1]=0x1/(_0x1d0e82[_0x4dbf17]-_0x1d0e82[_0x4dbf17-0x1]),_0x449a65[_0x4dbf17][_0x4dbf17]=0x2/(_0x1d0e82[_0x4dbf17]-_0x1d0e82[_0x4dbf17-0x1]),_0x449a65[_0x4dbf17][_0x4dbf17+0x1]=0x3*(_0x3bd37e[_0x4dbf17]-_0x3bd37e[_0x4dbf17-0x1])/(_0x1d0e82[_0x4dbf17]-_0x1d0e82[_0x4dbf17-0x1])**0x2,this[_0x35522d(0x218)][_0x35522d(0x1fc)](_0x449a65,_0x5cbcde);},'from_control_points':function(_0x43c741,_0x2add11){const _0x2308b=a0_0x135a;let _0x58b919=_0x2add11[_0x2308b(0x1a3)](_0x4a3bb1=>_0x4a3bb1[0x0]),_0x2198d5=_0x2add11[_0x2308b(0x1a3)](_0xfad153=>_0xfad153[0x1]),_0x14680b=new Array(_0x58b919[_0x2308b(0x1b5)])[_0x2308b(0x1be)](0x0);this[_0x2308b(0x21a)](_0x58b919,_0x2198d5,_0x14680b);let _0x4a18bd=[];for(let _0x6097ff of _0x43c741){let _0x3b432d=0x1;for(;_0x58b919[_0x3b432d]<_0x6097ff;)_0x3b432d++;let _0x2e8325=(_0x6097ff-_0x58b919[_0x3b432d-0x1])/(_0x58b919[_0x3b432d]-_0x58b919[_0x3b432d-0x1]),_0x3a7037=_0x14680b[_0x3b432d-0x1]*(_0x58b919[_0x3b432d]-_0x58b919[_0x3b432d-0x1])-(_0x2198d5[_0x3b432d]-_0x2198d5[_0x3b432d-0x1]),_0x66ee80=-_0x14680b[_0x3b432d]*(_0x58b919[_0x3b432d]-_0x58b919[_0x3b432d-0x1])+(_0x2198d5[_0x3b432d]-_0x2198d5[_0x3b432d-0x1]),_0x58b172=(0x1-_0x2e8325)*_0x2198d5[_0x3b432d-0x1]+_0x2e8325*_0x2198d5[_0x3b432d]+_0x2e8325*(0x1-_0x2e8325)*(_0x3a7037*(0x1-_0x2e8325)+_0x66ee80*_0x2e8325);_0x4a18bd['push']([_0x6097ff,_0x58b172]);}return _0x4a18bd;}},D=class{constructor(_0x1e6a5d){const _0x2a1780=a0_0x135a;this[_0x2a1780(0x1a7)]=_0x1e6a5d,this['segmentLengths']=[],this[_0x2a1780(0x1e7)]=[0x0];for(let _0x4f8685=0x1;_0x4f8685<_0x1e6a5d[_0x2a1780(0x1b5)];_0x4f8685++){let _0x9a784d=_0x1e6a5d[_0x4f8685][0x0]-_0x1e6a5d[_0x4f8685-0x1][0x0],_0x11bd70=_0x1e6a5d[_0x4f8685][0x1]-_0x1e6a5d[_0x4f8685-0x1][0x1],_0x121b18=_0x1e6a5d[_0x4f8685][0x2]-_0x1e6a5d[_0x4f8685-0x1][0x2],_0x499691=Math[_0x2a1780(0x1c7)](_0x9a784d*_0x9a784d+_0x11bd70*_0x11bd70+_0x121b18*_0x121b18);this[_0x2a1780(0x1f5)][_0x2a1780(0x197)](_0x499691),this[_0x2a1780(0x1e7)][_0x2a1780(0x197)](this[_0x2a1780(0x1e7)][this[_0x2a1780(0x1e7)]['length']-0x1]+_0x499691);}this[_0x2a1780(0x1cb)]=this[_0x2a1780(0x1f5)][_0x2a1780(0x1b5)]>0x0?this['cumulativeLength'][this['cumulativeLength'][_0x2a1780(0x1b5)]-0x1]:0x0;}[a0_0x5d04ea(0x195)](_0x59bf6d){const _0x207232=a0_0x5d04ea;let _0x3a14a8=0x0,_0x3768a4=Number[_0x207232(0x1a0)];for(let _0x440a94=0x0;_0x440a94<this[_0x207232(0x1a7)][_0x207232(0x1b5)]-0x1;_0x440a94++){let _0x18f942=this[_0x207232(0x1a7)][_0x440a94],_0x20cf54=this[_0x207232(0x1a7)][_0x440a94+0x1],_0x1e21fa=_0x59bf6d,_0x35d1fe=[_0x20cf54[0x0]-_0x18f942[0x0],_0x20cf54[0x1]-_0x18f942[0x1],_0x20cf54[0x2]-_0x18f942[0x2]],_0xd28e60=[_0x1e21fa[0x0]-_0x18f942[0x0],_0x1e21fa[0x1]-_0x18f942[0x1],_0x1e21fa[0x2]-_0x18f942[0x2]],_0x24d553=_0x35d1fe[0x0]*_0x35d1fe[0x0]+_0x35d1fe[0x1]*_0x35d1fe[0x1]+_0x35d1fe[0x2]*_0x35d1fe[0x2];if(_0x24d553===0x0)continue;let _0x48f940=(_0xd28e60[0x0]*_0x35d1fe[0x0]+_0xd28e60[0x1]*_0x35d1fe[0x1]+_0xd28e60[0x2]*_0x35d1fe[0x2])/_0x24d553;_0x48f940=Math[_0x207232(0x205)](0x0,Math['min'](0x1,_0x48f940));let _0x4e57cf=[_0x18f942[0x0]+_0x48f940*_0x35d1fe[0x0],_0x18f942[0x1]+_0x48f940*_0x35d1fe[0x1],_0x18f942[0x2]+_0x48f940*_0x35d1fe[0x2]],_0x1162ce=Math[_0x207232(0x213)](_0x1e21fa[0x0]-_0x4e57cf[0x0],0x2)+Math[_0x207232(0x213)](_0x1e21fa[0x1]-_0x4e57cf[0x1],0x2)+Math['pow'](_0x1e21fa[0x2]-_0x4e57cf[0x2],0x2);_0x1162ce<_0x3768a4&&(_0x3768a4=_0x1162ce,_0x3a14a8=(this[_0x207232(0x1e7)][_0x440a94]+_0x48f940*this[_0x207232(0x1f5)][_0x440a94])/this['totalLength']);}return _0x3a14a8;}[a0_0x5d04ea(0x1a8)](_0x2d4df7){const _0x223c83=a0_0x5d04ea;if(_0x2d4df7<=0x0)return[...this[_0x223c83(0x1a7)][0x0]];if(_0x2d4df7>=0x1)return[...this['points'][this['points'][_0x223c83(0x1b5)]-0x1]];let _0xb9dd71=_0x2d4df7*this[_0x223c83(0x1cb)];for(let _0xa15507=0x0;_0xa15507<this[_0x223c83(0x1e7)][_0x223c83(0x1b5)]-0x1;_0xa15507++)if(this[_0x223c83(0x1e7)][_0xa15507]<=_0xb9dd71&&_0xb9dd71<=this['cumulativeLength'][_0xa15507+0x1]){let _0x520c8c=(_0xb9dd71-this[_0x223c83(0x1e7)][_0xa15507])/this['segmentLengths'][_0xa15507],_0x3f9ed9=this['points'][_0xa15507],_0x195b0c=this[_0x223c83(0x1a7)][_0xa15507+0x1],_0x27d1f5=(0x1-_0x520c8c)*_0x3f9ed9[0x0]+_0x520c8c*_0x195b0c[0x0],_0x2c6399=(0x1-_0x520c8c)*_0x3f9ed9[0x1]+_0x520c8c*_0x195b0c[0x1],_0x1f9767=(0x1-_0x520c8c)*_0x3f9ed9[0x2]+_0x520c8c*_0x195b0c[0x2];return[_0x27d1f5,_0x2c6399,_0x1f9767];}return[...this['points'][this['points'][_0x223c83(0x1b5)]-0x1]];}},_={'pointsToIges':function(_0x4d894d,_0x4edb9f={}){const _0x598ef2=a0_0x5d04ea;let _0x50239f={'units':'MM','filename':_0x598ef2(0x1ab),'author':_0x598ef2(0x1a4),'organization':_0x598ef2(0x20b),'asPolyline':!0x1,..._0x4edb9f};if(!Array[_0x598ef2(0x1e1)](_0x4d894d)||_0x4d894d['length']===0x0)throw new Error(_0x598ef2(0x1f9));let _0x5a4f7d=_0x4d894d['map'](_0x3baf01=>{const _0x38d861=_0x598ef2;if(!Array[_0x38d861(0x1e1)](_0x3baf01)||_0x3baf01[_0x38d861(0x1b5)]<0x2)throw new Error(_0x38d861(0x1a6));return[_0x3baf01[0x0]||0x0,_0x3baf01[0x1]||0x0,_0x3baf01[0x2]||0x0];}),_0xc9c79a='',_0x57056f='',_0x5e57f9='',_0x3835be='',_0xd44085=0x0,_0x465294=0x1,_0x49f5e4=0x1,_0x36c11a=new Date()[_0x598ef2(0x19f)]()[_0x598ef2(0x1c8)](0x0,0x13)[_0x598ef2(0x206)](/[-:]/g,'')[_0x598ef2(0x206)]('T','.');if(_0x57056f+=this[_0x598ef2(0x19a)](_0x598ef2(0x209)+_0x50239f['filename']+',7H'+_0x50239f[_0x598ef2(0x1fa)]+','),_0x57056f+=this[_0x598ef2(0x19a)](_0x598ef2(0x1e9)+_0x50239f[_0x598ef2(0x1f4)]+',32,38,6,38,15,4H'+_0x50239f['filename']+','),_0x57056f+=this[_0x598ef2(0x19a)]('1.0,1,4H'+_0x50239f['units'][_0x598ef2(0x1f3)]()+_0x598ef2(0x1ad)+_0x36c11a+','),_0x57056f+=this[_0x598ef2(0x19a)]('1.E-06,100.0,7H'+_0x50239f[_0x598ef2(0x1fa)]+',11H'+_0x50239f[_0x598ef2(0x1f4)]+',11,0,'),_0x57056f+=this['formatGlobalLine'](_0x598ef2(0x1c3)+_0x36c11a+',;'),_0x50239f[_0x598ef2(0x1aa)]&&_0x5a4f7d['length']>0x1){_0xd44085++,_0x5e57f9+=this[_0x598ef2(0x1e2)](0x6a,_0x465294,0x0,0x0,0x0,0x0,0x0,0x0,_0x49f5e4),_0x5e57f9+=this[_0x598ef2(0x1e2)](0x6a,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x49f5e4+0x1),_0x49f5e4+=0x2;let _0x114bd7=_0x598ef2(0x1b8)+(_0x5a4f7d[_0x598ef2(0x1b5)]-0x1);for(let _0x591e54=0x0;_0x591e54<_0x5a4f7d[_0x598ef2(0x1b5)];_0x591e54++){let _0x323801=_0x5a4f7d[_0x591e54];_0x114bd7+=','+this[_0x598ef2(0x203)](_0x323801[0x0])+','+this[_0x598ef2(0x203)](_0x323801[0x1])+','+this['formatNumber'](_0x323801[0x2]);}_0x114bd7+=';',_0x3835be+=this[_0x598ef2(0x1ae)](_0x114bd7,_0x465294),_0x465294+=Math[_0x598ef2(0x1dd)](_0x114bd7[_0x598ef2(0x1b5)]/0x40);}else for(let _0x33a429=0x0;_0x33a429<_0x5a4f7d['length'];_0x33a429++){_0xd44085++;let _0x2c4573=_0x5a4f7d[_0x33a429];_0x5e57f9+=this[_0x598ef2(0x1e2)](0x74,_0x465294,0x0,0x0,0x0,0x0,0x0,0x0,_0x49f5e4),_0x5e57f9+=this[_0x598ef2(0x1e2)](0x74,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x49f5e4+0x1),_0x49f5e4+=0x2;let _0x5a3926='116,'+this[_0x598ef2(0x203)](_0x2c4573[0x0])+','+this[_0x598ef2(0x203)](_0x2c4573[0x1])+','+this[_0x598ef2(0x203)](_0x2c4573[0x2])+_0x598ef2(0x1ea);_0x3835be+=this[_0x598ef2(0x1ae)](_0x5a3926,_0x465294),_0x465294+=Math[_0x598ef2(0x1dd)](_0x5a3926[_0x598ef2(0x1b5)]/0x40);}let _0x495b5a=this['formatSection'](_0x598ef2(0x20d),[_0x598ef2(0x1ef),_0x598ef2(0x1f6)]),_0x5e5704=this['formatTerminateSection'](_0x495b5a[_0x598ef2(0x1a9)]('\x0a')[_0x598ef2(0x1b5)]-0x1,_0x57056f[_0x598ef2(0x1a9)]('\x0a')['length']-0x1,_0x5e57f9[_0x598ef2(0x1a9)]('\x0a')['length']-0x1,_0x3835be[_0x598ef2(0x1a9)]('\x0a')[_0x598ef2(0x1b5)]-0x1);return _0x495b5a+_0x57056f+_0x5e57f9+_0x3835be+_0x5e5704;},'formatNumber':function(_0x4222fb){const _0x27581d=a0_0x5d04ea;return Number['isInteger'](_0x4222fb)?_0x4222fb['toString']():Math[_0x27581d(0x1ed)](_0x4222fb)<0.001||Math[_0x27581d(0x1ed)](_0x4222fb)>0xf4240?_0x4222fb[_0x27581d(0x1d2)](0x6):_0x4222fb[_0x27581d(0x1a1)](0x6)[_0x27581d(0x206)](/\.?0+$/,'');},'formatGlobalLine':function(_0x363ba4){const _0xbe2e5c=a0_0x5d04ea;let _0xc2a774=(this[_0xbe2e5c(0x19a)]['counter']||0x0)+0x1;return this['formatGlobalLine'][_0xbe2e5c(0x1f7)]=_0xc2a774,_0x363ba4['padEnd'](0x48)+('G'+_0xc2a774['toString']()[_0xbe2e5c(0x21b)](0x7)+'\x0a');},'formatDirectoryLine':function(_0x3ddfb7,_0x5e60be,_0x5a055c,_0x589b05,_0x3a3462,_0x5c46a5,_0x4ffd82,_0x140a1c,_0x1fa050){const _0x2531cd=a0_0x5d04ea;return[_0x3ddfb7[_0x2531cd(0x1fb)]()['padStart'](0x8),_0x5e60be[_0x2531cd(0x1fb)]()[_0x2531cd(0x21b)](0x8),_0x5a055c['toString']()[_0x2531cd(0x21b)](0x8),_0x589b05[_0x2531cd(0x1fb)]()[_0x2531cd(0x21b)](0x8),_0x3a3462[_0x2531cd(0x1fb)]()[_0x2531cd(0x21b)](0x8),_0x5c46a5[_0x2531cd(0x1fb)]()[_0x2531cd(0x21b)](0x8),_0x4ffd82[_0x2531cd(0x1fb)]()[_0x2531cd(0x21b)](0x8),_0x140a1c['toString']()[_0x2531cd(0x21b)](0x8)][_0x2531cd(0x1c1)]('')+('D'+_0x1fa050['toString']()['padStart'](0x7)+'\x0a');},'formatParameterLine':function(_0xfb856d,_0x357621){const _0x31bb14=a0_0x5d04ea;let _0x59f76e='',_0x4d5ca8=_0x357621;for(let _0x4fe13c=0x0;_0x4fe13c<_0xfb856d[_0x31bb14(0x1b5)];_0x4fe13c+=0x40){let _0x3bf1a5=_0xfb856d['substr'](_0x4fe13c,0x40);_0x59f76e+=_0x3bf1a5['padEnd'](0x40)+('\x20'+_0x4d5ca8[_0x31bb14(0x1fb)]()[_0x31bb14(0x21b)](0x7)+'P'+_0x4d5ca8[_0x31bb14(0x1fb)]()[_0x31bb14(0x21b)](0x7)+'\x0a'),_0x4d5ca8++;}return _0x59f76e;},'formatSection':function(_0x94cbad,_0x39af27){const _0x35baaa=a0_0x5d04ea;return _0x39af27[_0x35baaa(0x1a3)]((_0x1a3064,_0x1dc629)=>_0x1a3064+'\x0a')[_0x35baaa(0x1c1)]('');},'formatTerminateSection':function(_0x38b8c3,_0x4f4242,_0x477d3f,_0x2266f7){const _0x237732=a0_0x5d04ea;return['S'+_0x38b8c3[_0x237732(0x1fb)]()[_0x237732(0x21b)](0x7),'G'+_0x4f4242[_0x237732(0x1fb)]()[_0x237732(0x21b)](0x7),'D'+_0x477d3f[_0x237732(0x1fb)]()[_0x237732(0x21b)](0x7),'P'+_0x2266f7[_0x237732(0x1fb)]()[_0x237732(0x21b)](0x7)]['join']('')[_0x237732(0x1b3)](0x48)+'T\x20\x20\x20\x20\x20\x201\x0a';},'nurbsToIges':function(_0x1b47ec,_0x7dc753={}){const _0xeb1276=a0_0x5d04ea;let _0x41f89c={'units':'MM','filename':'nurbs.iges','author':_0xeb1276(0x1a4),'organization':_0xeb1276(0x20b),'degree':0x3,'weights':null,'knotVector':null,..._0x7dc753};if(!Array[_0xeb1276(0x1e1)](_0x1b47ec)||_0x1b47ec['length']===0x0)throw new Error(_0xeb1276(0x1c0));if(_0x1b47ec[_0xeb1276(0x1b5)]<_0x41f89c[_0xeb1276(0x1d6)]+0x1)throw new Error(_0xeb1276(0x1d1)+(_0x41f89c[_0xeb1276(0x1d6)]+0x1)+_0xeb1276(0x210)+_0x41f89c['degree']+_0xeb1276(0x1a2));let _0x59a88e=_0x1b47ec[_0xeb1276(0x1a3)](_0x168641=>{const _0x4b6f16=_0xeb1276;if(!Array[_0x4b6f16(0x1e1)](_0x168641)||_0x168641['length']<0x2)throw new Error(_0x4b6f16(0x1f8));return[_0x168641[0x0]||0x0,_0x168641[0x1]||0x0,_0x168641[0x2]||0x0];}),_0x49b804=_0x59a88e[_0xeb1276(0x1b5)],_0x44f601=_0x41f89c[_0xeb1276(0x202)]||new Array(_0x49b804)['fill'](0x1);if(_0x44f601[_0xeb1276(0x1b5)]!==_0x49b804)throw new Error(_0xeb1276(0x1d0));let _0x419956=_0x41f89c['knotVector'];if(!_0x419956){let _0x104408=_0x49b804+_0x41f89c['degree']+0x1;_0x419956=[];let _0x3966eb=_0x49b804-0x1,_0x4b1bab=_0x41f89c[_0xeb1276(0x1d6)];for(let _0x52cbf0=0x0;_0x52cbf0<=_0x4b1bab;_0x52cbf0++)_0x419956[_0xeb1276(0x197)](0x0);for(let _0x2a68ac=0x1;_0x2a68ac<_0x3966eb-_0x4b1bab+0x1;_0x2a68ac++)_0x419956[_0xeb1276(0x197)](_0x2a68ac/(_0x3966eb-_0x4b1bab+0x1));for(let _0x29a5a4=0x0;_0x29a5a4<=_0x4b1bab;_0x29a5a4++)_0x419956[_0xeb1276(0x197)](0x1);}if(_0x419956[_0xeb1276(0x1b5)]!==_0x49b804+_0x41f89c[_0xeb1276(0x1d6)]+0x1)throw new Error(_0xeb1276(0x1ba)+(_0x49b804+_0x41f89c['degree']+0x1));let _0x490607='',_0xccab0a='',_0x52bc0c='',_0x102507=0x1,_0x39da06=0x1,_0x4d6ed9=new Date()[_0xeb1276(0x19f)]()[_0xeb1276(0x1c8)](0x0,0x13)[_0xeb1276(0x206)](/[-:]/g,'')[_0xeb1276(0x206)]('T','.');_0x490607+=this[_0xeb1276(0x19a)](_0xeb1276(0x209)+_0x41f89c[_0xeb1276(0x215)]+_0xeb1276(0x19d)+_0x41f89c[_0xeb1276(0x1fa)]+','),_0x490607+=this[_0xeb1276(0x19a)](_0xeb1276(0x1e9)+_0x41f89c[_0xeb1276(0x1f4)]+_0xeb1276(0x1d8)+_0x41f89c[_0xeb1276(0x215)]+','),_0x490607+=this['formatGlobalLine'](_0xeb1276(0x1e5)+_0x41f89c[_0xeb1276(0x216)][_0xeb1276(0x1f3)]()+_0xeb1276(0x1ad)+_0x4d6ed9+','),_0x490607+=this[_0xeb1276(0x19a)](_0xeb1276(0x1db)+_0x41f89c[_0xeb1276(0x1fa)]+_0xeb1276(0x1da)+_0x41f89c[_0xeb1276(0x1f4)]+',11,0,'),_0x490607+=this['formatGlobalLine'](_0xeb1276(0x1c3)+_0x4d6ed9+',;'),_0xccab0a+=this[_0xeb1276(0x1e2)](0x7e,_0x102507,0x0,0x0,0x0,0x0,0x0,0x0,_0x39da06),_0xccab0a+=this[_0xeb1276(0x1e2)](0x7e,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x39da06+0x1),_0x39da06+=0x2;let _0x2c34c7=_0x49b804-0x1,_0x50861a=_0x41f89c[_0xeb1276(0x1d6)],_0x56bd4f=_0xeb1276(0x217)+_0x2c34c7+','+_0x50861a+_0xeb1276(0x1df);for(let _0x4eeb30=0x0;_0x4eeb30<_0x419956[_0xeb1276(0x1b5)];_0x4eeb30++)_0x56bd4f+=','+this[_0xeb1276(0x203)](_0x419956[_0x4eeb30]);for(let _0x4d880a=0x0;_0x4d880a<_0x44f601[_0xeb1276(0x1b5)];_0x4d880a++)_0x56bd4f+=','+this[_0xeb1276(0x203)](_0x44f601[_0x4d880a]);for(let _0x301633=0x0;_0x301633<0x3;_0x301633++)for(let _0x29bb97=0x0;_0x29bb97<_0x59a88e[_0xeb1276(0x1b5)];_0x29bb97++)_0x56bd4f+=','+this['formatNumber'](_0x59a88e[_0x29bb97][_0x301633]);_0x56bd4f+=','+this[_0xeb1276(0x203)](_0x419956[0x0])+','+this['formatNumber'](_0x419956[_0x419956[_0xeb1276(0x1b5)]-0x1]),_0x56bd4f+=',0.0,0.0,0.0',_0x56bd4f+=';',_0x52bc0c+=this[_0xeb1276(0x1ae)](_0x56bd4f,_0x102507),_0x102507+=Math[_0xeb1276(0x1dd)](_0x56bd4f[_0xeb1276(0x1b5)]/0x40);let _0x1d40e7=this[_0xeb1276(0x194)](_0xeb1276(0x20d),[_0xeb1276(0x1ef),'NURBS\x20curve\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202']),_0x169930=this[_0xeb1276(0x1d9)](_0x1d40e7[_0xeb1276(0x1a9)]('\x0a')[_0xeb1276(0x1b5)]-0x1,_0x490607['split']('\x0a')['length']-0x1,_0xccab0a['split']('\x0a')['length']-0x1,_0x52bc0c[_0xeb1276(0x1a9)]('\x0a')[_0xeb1276(0x1b5)]-0x1);return _0x1d40e7+_0x490607+_0xccab0a+_0x52bc0c+_0x169930;},'geometryToIges':function(_0x4f186c,_0xa37140={}){const _0x3a23fe=a0_0x5d04ea;let _0x335775={'units':'MM','filename':_0x3a23fe(0x20c),'author':_0x3a23fe(0x1a4),'organization':_0x3a23fe(0x20b),..._0xa37140};if(!Array[_0x3a23fe(0x1e1)](_0x4f186c)||_0x4f186c[_0x3a23fe(0x1b5)]===0x0)throw new Error('Geometries\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty');let _0xc798b='',_0x18c6d2='',_0x1fe99a='',_0x6e5d05=0x1,_0x428914=0x1,_0x4a75c4=0x0,_0x4d0041=new Date()['toISOString']()[_0x3a23fe(0x1c8)](0x0,0x13)['replace'](/[-:]/g,'')[_0x3a23fe(0x206)]('T','.');_0xc798b+=this['formatGlobalLine']('1H,,1H;,4H'+_0x335775['filename']+_0x3a23fe(0x19d)+_0x335775[_0x3a23fe(0x1fa)]+','),_0xc798b+=this[_0x3a23fe(0x19a)]('11H'+_0x335775[_0x3a23fe(0x1f4)]+_0x3a23fe(0x1d8)+_0x335775[_0x3a23fe(0x215)]+','),_0xc798b+=this[_0x3a23fe(0x19a)](_0x3a23fe(0x1e5)+_0x335775[_0x3a23fe(0x216)]['toUpperCase']()+_0x3a23fe(0x1ad)+_0x4d0041+','),_0xc798b+=this[_0x3a23fe(0x19a)](_0x3a23fe(0x1db)+_0x335775[_0x3a23fe(0x1fa)]+_0x3a23fe(0x1da)+_0x335775[_0x3a23fe(0x1f4)]+_0x3a23fe(0x1ca)),_0xc798b+=this['formatGlobalLine'](_0x3a23fe(0x1c3)+_0x4d0041+',;');for(let _0x4f187c of _0x4f186c){if(!_0x4f187c||typeof _0x4f187c!=_0x3a23fe(0x1b6)||!_0x4f187c[_0x3a23fe(0x1b0)]||!_0x4f187c[_0x3a23fe(0x1de)])throw new Error(_0x3a23fe(0x1cc));let _0x409aaa=_0x4f187c[_0x3a23fe(0x1b0)][_0x3a23fe(0x1d3)](),_0x54e3ac=_0x4f187c[_0x3a23fe(0x1de)]['map'](_0x37b741=>{const _0x96b3=_0x3a23fe;if(!Array[_0x96b3(0x1e1)](_0x37b741)||_0x37b741[_0x96b3(0x1b5)]<0x2)throw new Error(_0x96b3(0x1a6));return[_0x37b741[0x0]||0x0,_0x37b741[0x1]||0x0,_0x37b741[0x2]||0x0];});if(_0x54e3ac[_0x3a23fe(0x1b5)]!==0x0)switch(_0x409aaa){case _0x3a23fe(0x1a7):for(let _0x1b315b of _0x54e3ac){_0x4a75c4++,_0x18c6d2+=this[_0x3a23fe(0x1e2)](0x74,_0x6e5d05,0x0,0x0,0x0,0x0,0x0,0x0,_0x428914),_0x18c6d2+=this['formatDirectoryLine'](0x74,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x428914+0x1),_0x428914+=0x2;let _0x43636d='116,'+this['formatNumber'](_0x1b315b[0x0])+','+this[_0x3a23fe(0x203)](_0x1b315b[0x1])+','+this[_0x3a23fe(0x203)](_0x1b315b[0x2])+',0.0;';_0x1fe99a+=this[_0x3a23fe(0x1ae)](_0x43636d,_0x6e5d05),_0x6e5d05+=Math['ceil'](_0x43636d[_0x3a23fe(0x1b5)]/0x40);}break;case _0x3a23fe(0x212):if(_0x54e3ac[_0x3a23fe(0x1b5)]>0x1){_0x4a75c4++,_0x18c6d2+=this['formatDirectoryLine'](0x6a,_0x6e5d05,0x0,0x0,0x0,0x0,0x0,0x0,_0x428914),_0x18c6d2+=this[_0x3a23fe(0x1e2)](0x6a,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x428914+0x1),_0x428914+=0x2;let _0x4a2389=_0x3a23fe(0x1b8)+(_0x54e3ac[_0x3a23fe(0x1b5)]-0x1);for(let _0x1bae38 of _0x54e3ac)_0x4a2389+=','+this[_0x3a23fe(0x203)](_0x1bae38[0x0])+','+this[_0x3a23fe(0x203)](_0x1bae38[0x1])+','+this[_0x3a23fe(0x203)](_0x1bae38[0x2]);_0x4a2389+=';',_0x1fe99a+=this[_0x3a23fe(0x1ae)](_0x4a2389,_0x6e5d05),_0x6e5d05+=Math['ceil'](_0x4a2389[_0x3a23fe(0x1b5)]/0x40);}break;case'nurbs':let _0x1b4fb2=_0x4f187c[_0x3a23fe(0x1d6)]||0x3,_0x547c6a=_0x54e3ac[_0x3a23fe(0x1b5)];if(_0x547c6a<_0x1b4fb2+0x1){console['warn'](_0x3a23fe(0x1eb)+(_0x1b4fb2+0x1)+_0x3a23fe(0x199)+_0x1b4fb2);continue;}let _0x43a4b5=_0x4f187c[_0x3a23fe(0x202)]||new Array(_0x547c6a)['fill'](0x1);if(_0x43a4b5[_0x3a23fe(0x1b5)]!==_0x547c6a)throw new Error('Weights\x20array\x20length\x20must\x20match\x20control\x20points\x20length');let _0x454a7a=_0x4f187c['knotVector'];if(!_0x454a7a){let _0x3c8aa3=_0x547c6a-0x1,_0x23265f=_0x1b4fb2;_0x454a7a=[];for(let _0x10f533=0x0;_0x10f533<=_0x23265f;_0x10f533++)_0x454a7a[_0x3a23fe(0x197)](0x0);for(let _0x4b4c07=0x1;_0x4b4c07<_0x3c8aa3-_0x23265f+0x1;_0x4b4c07++)_0x454a7a[_0x3a23fe(0x197)](_0x4b4c07/(_0x3c8aa3-_0x23265f+0x1));for(let _0x5264d3=0x0;_0x5264d3<=_0x23265f;_0x5264d3++)_0x454a7a[_0x3a23fe(0x197)](0x1);}_0x4a75c4++,_0x18c6d2+=this[_0x3a23fe(0x1e2)](0x7e,_0x6e5d05,0x0,0x0,0x0,0x0,0x0,0x0,_0x428914),_0x18c6d2+=this[_0x3a23fe(0x1e2)](0x7e,0x0,0x0,0x1,0x0,0x0,0x0,0x0,_0x428914+0x1),_0x428914+=0x2;let _0x475201=_0x3a23fe(0x217)+(_0x547c6a-0x1)+','+_0x1b4fb2+_0x3a23fe(0x1df);for(let _0x558022 of _0x454a7a)_0x475201+=','+this[_0x3a23fe(0x203)](_0x558022);for(let _0x33a486 of _0x43a4b5)_0x475201+=','+this[_0x3a23fe(0x203)](_0x33a486);for(let _0x18f645=0x0;_0x18f645<0x3;_0x18f645++)for(let _0x323a68 of _0x54e3ac)_0x475201+=','+this[_0x3a23fe(0x203)](_0x323a68[_0x18f645]);_0x475201+=','+this[_0x3a23fe(0x203)](_0x454a7a[0x0])+','+this['formatNumber'](_0x454a7a[_0x454a7a[_0x3a23fe(0x1b5)]-0x1]),_0x475201+=',0.0,0.0,0.0',_0x475201+=';',_0x1fe99a+=this['formatParameterLine'](_0x475201,_0x6e5d05),_0x6e5d05+=Math[_0x3a23fe(0x1dd)](_0x475201['length']/0x40);break;default:throw new Error('Unknown\x20geometry\x20type:\x20'+_0x409aaa+'.\x20Supported\x20types:\x20points,\x20polyline,\x20nurbs');}}if(_0x4a75c4===0x0)throw new Error('No\x20valid\x20geometries\x20found\x20to\x20convert');let _0x3e0509=this[_0x3a23fe(0x194)](_0x3a23fe(0x20d),['Generated\x20by\x20js3d\x20IGES\x20converter\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x201',_0x3a23fe(0x1f0)]),_0x43a5c3=this[_0x3a23fe(0x1d9)](_0x3e0509[_0x3a23fe(0x1a9)]('\x0a')['length']-0x1,_0xc798b[_0x3a23fe(0x1a9)]('\x0a')['length']-0x1,_0x18c6d2['split']('\x0a')[_0x3a23fe(0x1b5)]-0x1,_0x1fe99a[_0x3a23fe(0x1a9)]('\x0a')['length']-0x1);return _0x3e0509+_0xc798b+_0x18c6d2+_0x1fe99a+_0x43a5c3;},'readIgesFile':function(_0xbdc289){const _0x483304=a0_0x5d04ea;if(!_0xbdc289||typeof _0xbdc289!=_0x483304(0x1bb))throw new Error(_0x483304(0x1f2));let _0x7070e0=[],_0x70feed=[],_0x523cc9=[],_0x217698=_0xbdc289[_0x483304(0x1a9)]('\x0a')['filter'](_0x1020ed=>_0x1020ed[_0x483304(0x201)]()&&_0x1020ed[_0x483304(0x20f)](0x48)==='P'),_0x3bce8f='';for(let _0x65460e of _0x217698){let _0x2aed90=_0x65460e[_0x483304(0x1a5)](0x0,0x40)[_0x483304(0x201)]();_0x3bce8f+=_0x2aed90,_0x2aed90['endsWith'](';')&&(this['processEntity'](_0x3bce8f,_0x7070e0,_0x70feed,_0x523cc9),_0x3bce8f='');}return{'lines':_0x7070e0,'points':_0x70feed,'nurbs':_0x523cc9};},'parseIgesNumber':function(_0xa140b9){const _0x3a1e4b=a0_0x5d04ea;if(!_0xa140b9||typeof _0xa140b9!=_0x3a1e4b(0x1bb))return 0x0;let _0x1b2c28=_0xa140b9['trim']()[_0x3a1e4b(0x206)](/D([+-]?\d+)/g,_0x3a1e4b(0x211)),_0x356fc2=parseFloat(_0x1b2c28);return isNaN(_0x356fc2)?0x0:_0x356fc2;},'processEntity':function(_0xfbd01d,_0x26334f,_0x249309,_0x26cc25){const _0x2ee247=a0_0x5d04ea;let _0x3cc7eb=_0xfbd01d['replace'](';','')[_0x2ee247(0x1a9)](',')['map'](_0x34df72=>_0x34df72[_0x2ee247(0x201)]());if(_0x3cc7eb['length']===0x0)return;switch(parseInt(_0x3cc7eb[0x0])){case 0x74:this[_0x2ee247(0x19c)](_0x3cc7eb,_0x249309);break;case 0x6a:this[_0x2ee247(0x1d4)](_0x3cc7eb,_0x26334f);break;case 0x7e:this['processNurbsEntity'](_0x3cc7eb,_0x26cc25);break;case 0x6e:this[_0x2ee247(0x1bd)](_0x3cc7eb,_0x26334f);break;default:break;}},'processPointEntity':function(_0x46d3c,_0xe659aa){const _0x1242f7=a0_0x5d04ea;if(_0x46d3c['length']>=0x4){let _0x14248d=this[_0x1242f7(0x208)](_0x46d3c[0x1]),_0x314976=this['parseIgesNumber'](_0x46d3c[0x2]),_0x52e71a=this[_0x1242f7(0x208)](_0x46d3c[0x3]);_0xe659aa[_0x1242f7(0x197)]([_0x14248d,_0x314976,_0x52e71a]);}},'processPolylineEntity':function(_0x369cd6,_0x281e84){const _0x452e68=a0_0x5d04ea;if(_0x369cd6[_0x452e68(0x1b5)]<0x2)return;let _0x168efe=parseInt(_0x369cd6[0x1]),_0x4884d3=0x2+(_0x168efe+0x1)*0x3;if(_0x369cd6['length']<_0x4884d3)return;let _0x366b77=[];for(let _0x57fa83=0x0;_0x57fa83<=_0x168efe;_0x57fa83++){let _0x5e0ad6=0x2+_0x57fa83*0x3;if(_0x5e0ad6+0x2<_0x369cd6[_0x452e68(0x1b5)]){let _0xc08ea7=this['parseIgesNumber'](_0x369cd6[_0x5e0ad6]),_0x5574cc=this[_0x452e68(0x208)](_0x369cd6[_0x5e0ad6+0x1]),_0x1ea316=this[_0x452e68(0x208)](_0x369cd6[_0x5e0ad6+0x2]);_0x366b77[_0x452e68(0x197)]([_0xc08ea7,_0x5574cc,_0x1ea316]);}}_0x366b77[_0x452e68(0x1b5)]>0x1&&_0x281e84[_0x452e68(0x197)](_0x366b77);},'processLineEntity':function(_0xab1d63,_0x122256){const _0x22a15f=a0_0x5d04ea;if(_0xab1d63[_0x22a15f(0x1b5)]>=0x7){let _0x2867db=this['parseIgesNumber'](_0xab1d63[0x1]),_0x5f04c1=this[_0x22a15f(0x208)](_0xab1d63[0x2]),_0x5d2f2a=this[_0x22a15f(0x208)](_0xab1d63[0x3]),_0x283857=this[_0x22a15f(0x208)](_0xab1d63[0x4]),_0x2247a8=this[_0x22a15f(0x208)](_0xab1d63[0x5]),_0x367679=this['parseIgesNumber'](_0xab1d63[0x6]);_0x122256[_0x22a15f(0x197)]([[_0x2867db,_0x5f04c1,_0x5d2f2a],[_0x283857,_0x2247a8,_0x367679]]);}},'processNurbsEntity':function(_0x27da77,_0x5c16a9){const _0x3ad72a=a0_0x5d04ea;if(_0x27da77[_0x3ad72a(0x1b5)]<0x7)return;let _0x1c9c4e=parseInt(_0x27da77[0x1]),_0x10653e=parseInt(_0x27da77[0x2]),_0x126631=parseInt(_0x27da77[0x3]),_0x4dd2b5=parseInt(_0x27da77[0x4]),_0x3da69a=parseInt(_0x27da77[0x5]),_0x50046e=parseInt(_0x27da77[0x6]),_0x2f1113=_0x1c9c4e+0x1,_0xc271a6=_0x1c9c4e+_0x10653e+0x2,_0x48299b=0x7,_0x2a33a8=_0x48299b+_0xc271a6,_0xc1c2d4=_0x2a33a8+_0x2f1113+_0x2f1113+_0x2f1113+_0x2f1113+0x2;if(_0x27da77[_0x3ad72a(0x1b5)]<_0xc1c2d4+0x3)return;let _0x1e51b1=[];for(let _0x4a513d=0x0;_0x4a513d<_0xc271a6;_0x4a513d++)_0x1e51b1['push'](this[_0x3ad72a(0x208)](_0x27da77[_0x48299b+_0x4a513d]));let _0xe93d9f=[];for(let _0x55ac9e=0x0;_0x55ac9e<_0x2f1113;_0x55ac9e++)_0xe93d9f[_0x3ad72a(0x197)](this[_0x3ad72a(0x208)](_0x27da77[_0x2a33a8+_0x55ac9e])||0x1);let _0xb7f1d5=[],_0x24d633=_0x2a33a8+_0x2f1113,_0x1c3c89=_0x24d633+_0x2f1113*0x3;if(_0x27da77['length']>=_0x1c3c89+0x5){for(let _0x1ea2bc=0x0;_0x1ea2bc<_0x2f1113;_0x1ea2bc++){let _0xb74c3d=_0x24d633+_0x1ea2bc*0x3,_0x11c29c=this[_0x3ad72a(0x208)](_0x27da77[_0xb74c3d]),_0x14661e=this[_0x3ad72a(0x208)](_0x27da77[_0xb74c3d+0x1]),_0xd845d=this[_0x3ad72a(0x208)](_0x27da77[_0xb74c3d+0x2]);_0xb7f1d5['push']([_0x11c29c,_0x14661e,_0xd845d]);}let _0x189605=_0x1c3c89,_0x15eafa=_0x189605+0x2,_0x4c6ce2=this[_0x3ad72a(0x208)](_0x27da77[_0x189605]),_0xcac68c=this[_0x3ad72a(0x208)](_0x27da77[_0x189605+0x1])||0x1,_0x3fd27a=[this[_0x3ad72a(0x208)](_0x27da77[_0x15eafa]),this['parseIgesNumber'](_0x27da77[_0x15eafa+0x1]),this[_0x3ad72a(0x208)](_0x27da77[_0x15eafa+0x2])],_0x1b4e5e={'type':_0x3ad72a(0x1ee),'degree':_0x10653e,'controlPoints':_0xb7f1d5,'weights':_0xe93d9f,'knotVector':_0x1e51b1,'parameterRange':[_0x4c6ce2,_0xcac68c],'properties':{'planar':_0x126631===0x1,'closed':_0x4dd2b5===0x1,'rational':_0x3da69a===0x1,'periodic':_0x50046e===0x1},'normalVector':_0x3fd27a,'numControlPoints':_0x2f1113,'numKnots':_0xc271a6,'upperControlPointIndex':_0x1c9c4e};_0x5c16a9['push'](_0x1b4e5e);}else{let _0x1e111c=_0x2a33a8+_0x2f1113,_0x458f1f=_0x1e111c+_0x2f1113,_0x1de08f=_0x458f1f+_0x2f1113,_0x141d29=_0x1de08f+_0x2f1113,_0x3aea55=_0x141d29+0x2;if(_0x27da77[_0x3ad72a(0x1b5)]<_0x3aea55+0x3)return;for(let _0x282c4a=0x0;_0x282c4a<_0x2f1113;_0x282c4a++){let _0x5b05f1=this['parseIgesNumber'](_0x27da77[_0x1e111c+_0x282c4a]),_0x1be41f=this[_0x3ad72a(0x208)](_0x27da77[_0x458f1f+_0x282c4a]),_0x1636f9=this[_0x3ad72a(0x208)](_0x27da77[_0x1de08f+_0x282c4a]);_0xb7f1d5[_0x3ad72a(0x197)]([_0x5b05f1,_0x1be41f,_0x1636f9]);}let _0x291ba8=this[_0x3ad72a(0x208)](_0x27da77[_0x141d29]),_0x31caf0=this[_0x3ad72a(0x208)](_0x27da77[_0x141d29+0x1])||0x1,_0x328ee0=[this[_0x3ad72a(0x208)](_0x27da77[_0x3aea55]),this[_0x3ad72a(0x208)](_0x27da77[_0x3aea55+0x1]),this[_0x3ad72a(0x208)](_0x27da77[_0x3aea55+0x2])],_0x42e02d={'type':_0x3ad72a(0x1ee),'degree':_0x10653e,'controlPoints':_0xb7f1d5,'weights':_0xe93d9f,'knotVector':_0x1e51b1,'parameterRange':[_0x291ba8,_0x31caf0],'properties':{'planar':_0x126631===0x1,'closed':_0x4dd2b5===0x1,'rational':_0x3da69a===0x1,'periodic':_0x50046e===0x1},'normalVector':_0x328ee0,'numControlPoints':_0x2f1113,'numKnots':_0xc271a6,'upperControlPointIndex':_0x1c9c4e};_0x5c16a9[_0x3ad72a(0x197)](_0x42e02d);}},'evaluateNurbsCurve':function(_0x80feee,_0x30015b={}){const _0x537531=a0_0x5d04ea;let _0x142d08={'numPoints':0x32,'parameters':null,..._0x30015b};if(!_0x80feee||_0x80feee[_0x537531(0x1b0)]!==_0x537531(0x1ee))throw new Error('Invalid\x20NURBS\x20curve\x20object');let {degree:_0x460e70,controlPoints:_0x328a9a,weights:_0x49aed0,knotVector:_0x1d475c,parameterRange:_0x215c93}=_0x80feee,[_0x19874b,_0x43eedf]=_0x215c93,_0x58ae88=_0x142d08['parameters'];if(!_0x58ae88){_0x58ae88=[];for(let _0x1f8d90=0x0;_0x1f8d90<_0x142d08[_0x537531(0x1d7)];_0x1f8d90++){let _0x4cc0d0=_0x19874b+(_0x43eedf-_0x19874b)*_0x1f8d90/(_0x142d08['numPoints']-0x1);_0x58ae88[_0x537531(0x197)](_0x4cc0d0);}}let _0xece519=[];for(let _0x3766ba of _0x58ae88){let _0xdc481e=Math[_0x537531(0x205)](_0x19874b,Math[_0x537531(0x1e8)](_0x43eedf,_0x3766ba)),_0x7696a6=this[_0x537531(0x1dc)](_0xdc481e,_0x460e70,_0x1d475c),_0x263655=this[_0x537531(0x196)](_0x7696a6,_0xdc481e,_0x460e70,_0x1d475c),_0x168d50=[0x0,0x0,0x0],_0x4a17e2=0x0;for(let _0x3ade5c=0x0;_0x3ade5c<=_0x460e70;_0x3ade5c++){let _0x3f6faf=_0x7696a6-_0x460e70+_0x3ade5c;if(_0x3f6faf>=0x0&&_0x3f6faf<_0x328a9a[_0x537531(0x1b5)]){let _0x4fddca=_0x49aed0[_0x3f6faf]*_0x263655[_0x3ade5c];_0x4a17e2+=_0x4fddca,_0x168d50[0x0]+=_0x328a9a[_0x3f6faf][0x0]*_0x4fddca,_0x168d50[0x1]+=_0x328a9a[_0x3f6faf][0x1]*_0x4fddca,_0x168d50[0x2]+=_0x328a9a[_0x3f6faf][0x2]*_0x4fddca;}}_0x4a17e2>0x0&&(_0x168d50[0x0]/=_0x4a17e2,_0x168d50[0x1]/=_0x4a17e2,_0x168d50[0x2]/=_0x4a17e2),_0xece519[_0x537531(0x197)](_0x168d50);}return _0xece519;},'findKnotSpan':function(_0x1637e5,_0x3c2a5e,_0x1264c9){const _0x4817d0=a0_0x5d04ea;let _0x396ed8=_0x1264c9[_0x4817d0(0x1b5)]-_0x3c2a5e-0x2;if(_0x1637e5>=_0x1264c9[_0x396ed8+0x1])return _0x396ed8;if(_0x1637e5<=_0x1264c9[_0x3c2a5e])return _0x3c2a5e;let _0x1cdc80=_0x3c2a5e,_0x5e53f0=_0x396ed8+0x1,_0x23dfdc=Math['floor']((_0x1cdc80+_0x5e53f0)/0x2);for(;_0x1637e5<_0x1264c9[_0x23dfdc]||_0x1637e5>=_0x1264c9[_0x23dfdc+0x1];)_0x1637e5<_0x1264c9[_0x23dfdc]?_0x5e53f0=_0x23dfdc:_0x1cdc80=_0x23dfdc,_0x23dfdc=Math['floor']((_0x1cdc80+_0x5e53f0)/0x2);return _0x23dfdc;},'computeBasisFunctions':function(_0x2c584e,_0x1dd01a,_0x488f8a,_0x289873){let _0x4e6740=new Array(_0x488f8a+0x1),_0x48456b=new Array(_0x488f8a+0x1),_0xbd0254=new Array(_0x488f8a+0x1);_0x4e6740[0x0]=0x1;for(let _0x24166c=0x1;_0x24166c<=_0x488f8a;_0x24166c++){_0x48456b[_0x24166c]=_0x1dd01a-_0x289873[_0x2c584e+0x1-_0x24166c],_0xbd0254[_0x24166c]=_0x289873[_0x2c584e+_0x24166c]-_0x1dd01a;let _0xde2180=0x0;for(let _0x16baa3=0x0;_0x16baa3<_0x24166c;_0x16baa3++){let _0x2a279b=_0x4e6740[_0x16baa3]/(_0xbd0254[_0x16baa3+0x1]+_0x48456b[_0x24166c-_0x16baa3]);_0x4e6740[_0x16baa3]=_0xde2180+_0xbd0254[_0x16baa3+0x1]*_0x2a279b,_0xde2180=_0x48456b[_0x24166c-_0x16baa3]*_0x2a279b;}_0x4e6740[_0x24166c]=_0xde2180;}return _0x4e6740;},'simplifyIgesData':function(_0x40ebbf,_0x4a28cf={}){const _0x3ab9ee=a0_0x5d04ea;let _0x219044={'flattenLines':!0x1,'flattenNurbs':!0x1,'precision':0x6,'includeNurbsMetadata':!0x0,..._0x4a28cf},_0x4b1226={'points':_0x40ebbf[_0x3ab9ee(0x1a7)][_0x3ab9ee(0x1a3)](_0x22cc22=>_0x22cc22[_0x3ab9ee(0x1a3)](_0x41d488=>parseFloat(_0x41d488['toFixed'](_0x219044[_0x3ab9ee(0x1af)])))),'lines':_0x40ebbf[_0x3ab9ee(0x1bf)]['map'](_0x35dbb4=>_0x35dbb4[_0x3ab9ee(0x1a3)](_0x5b861e=>_0x5b861e[_0x3ab9ee(0x1a3)](_0x30dab8=>parseFloat(_0x30dab8[_0x3ab9ee(0x1a1)](_0x219044[_0x3ab9ee(0x1af)]))))),'nurbs':[]};if(_0x40ebbf[_0x3ab9ee(0x1ee)]&&_0x40ebbf[_0x3ab9ee(0x1ee)][_0x3ab9ee(0x1b5)]>0x0){for(let _0x1a95e1 of _0x40ebbf[_0x3ab9ee(0x1ee)])if(_0x219044[_0x3ab9ee(0x1e3)]){let _0x171ef0=_0x1a95e1[_0x3ab9ee(0x1f1)][_0x3ab9ee(0x1a3)](_0x292b1a=>_0x292b1a['map'](_0x414446=>parseFloat(_0x414446[_0x3ab9ee(0x1a1)](_0x219044[_0x3ab9ee(0x1af)]))));_0x4b1226[_0x3ab9ee(0x1bf)]['push'](_0x171ef0);}else{let _0x1d6865={'type':_0x3ab9ee(0x1ee),'degree':_0x1a95e1[_0x3ab9ee(0x1d6)],'controlPoints':_0x1a95e1['controlPoints'][_0x3ab9ee(0x1a3)](_0x48723f=>_0x48723f['map'](_0x50582f=>parseFloat(_0x50582f[_0x3ab9ee(0x1a1)](_0x219044[_0x3ab9ee(0x1af)])))),'weights':_0x1a95e1[_0x3ab9ee(0x202)][_0x3ab9ee(0x1a3)](_0x242d4a=>parseFloat(_0x242d4a['toFixed'](_0x219044[_0x3ab9ee(0x1af)]))),'knotVector':_0x1a95e1['knotVector'][_0x3ab9ee(0x1a3)](_0x4de99a=>parseFloat(_0x4de99a[_0x3ab9ee(0x1a1)](_0x219044[_0x3ab9ee(0x1af)]))),'parameterRange':_0x1a95e1[_0x3ab9ee(0x20a)][_0x3ab9ee(0x1a3)](_0xd905a2=>parseFloat(_0xd905a2['toFixed'](_0x219044['precision'])))};_0x219044[_0x3ab9ee(0x1ac)]&&(_0x1d6865[_0x3ab9ee(0x1bc)]=_0x1a95e1['properties'],_0x1d6865['normalVector']=_0x1a95e1[_0x3ab9ee(0x200)][_0x3ab9ee(0x1a3)](_0xf000e9=>parseFloat(_0xf000e9[_0x3ab9ee(0x1a1)](_0x219044[_0x3ab9ee(0x1af)]))),_0x1d6865[_0x3ab9ee(0x19e)]=_0x1a95e1[_0x3ab9ee(0x19e)],_0x1d6865[_0x3ab9ee(0x1ec)]=_0x1a95e1['numKnots']),_0x4b1226[_0x3ab9ee(0x1ee)][_0x3ab9ee(0x197)](_0x1d6865);}}if(_0x219044[_0x3ab9ee(0x1c4)]){let _0xa62151=[..._0x4b1226[_0x3ab9ee(0x1a7)]];for(let _0x480fcc of _0x4b1226[_0x3ab9ee(0x1bf)])_0xa62151[_0x3ab9ee(0x197)](..._0x480fcc);_0x4b1226[_0x3ab9ee(0x1b9)]=_0xa62151;}return _0x4b1226;}};function a0_0x135a(_0x5d6f1e,_0x163dfb){const _0x1fdc0f=a0_0x1fdc();return a0_0x135a=function(_0x135a92,_0x1ac59e){_0x135a92=_0x135a92-0x194;let _0x2c4266=_0x1fdc0f[_0x135a92];return _0x2c4266;},a0_0x135a(_0x5d6f1e,_0x163dfb);}function a0_0x1fdc(){const _0x2f9f08=['swapRows','cumulativeLength','min','11H',',0.0;','Skipping\x20NURBS:\x20need\x20at\x20least\x20','numKnots','abs','nurbs','Generated\x20by\x20js3d\x20IGES\x20converter\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x201','Combined\x20geometry\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202','controlPoints','IGES\x20content\x20must\x20be\x20a\x20non-empty\x20string','toUpperCase','organization','segmentLengths','Points\x20to\x20IGES\x20conversion\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20S\x20\x20\x20\x20\x20\x202','counter','Invalid\x20control\x20point\x20format.\x20Expected\x20[x,\x20y,\x20z]','Points\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty','author','toString','solve','12798OYYFIv','cos','degree\x20must\x20be\x20at\x20least\x201\x20(linear)','normalVector','trim','weights','formatNumber','forEach','max','replace','bspline','parseIgesNumber','1H,,1H;,4H','parameterRange','Generated','combined.iges','START','2680110kyijvl','charAt','\x20control\x20points\x20required\x20for\x20degree\x20','E$1','polyline','pow','scalarProduct','filename','units','126,','_gaussJ','204044CihtEb','getNaturalKs','padStart','from','formatSection','findParameterAtPoint','computeBasisFunctions','push','add','\x20control\x20points\x20for\x20degree\x20','formatGlobalLine','move','processPointEntity',',7H','numControlPoints','toISOString','POSITIVE_INFINITY','toFixed','\x20NURBS','map','js3d','substring','Invalid\x20point\x20format.\x20Expected\x20[x,\x20y,\x20z]','points','findPointAtParameter','split','asPolyline','points.iges','includeNurbsMetadata',',1,0.01,15H','formatParameterLine','precision','type','dot','degree\x20must\x20be\x20less\x20than\x20or\x20equal\x20to\x20point\x20count\x20-\x201','padEnd','sin','length','object','37544ErDpZs','106,','allPoints','Knot\x20vector\x20length\x20must\x20be\x20','string','properties','processLineEntity','fill','lines','Control\x20points\x20array\x20is\x20required\x20and\x20must\x20not\x20be\x20empty','join','log','15H','flattenLines','329qTBGFC','2YbJwFS','sqrt','slice','bad\x20knot\x20vector\x20length',',11,0,','totalLength','Invalid\x20geometry\x20object.\x20Expected\x20{\x20type:\x20\x22points|polyline|nurbs\x22,\x20data:\x20[...]\x20}','2574000IudkwR','25CFMHqq','linspace','Weights\x20array\x20length\x20must\x20match\x20control\x20points\x20length','At\x20least\x20','toExponential','toLowerCase','processPolylineEntity','sub','degree','numPoints',',32,38,6,38,15,4H','formatTerminateSection',',11H','1.E-06,100.0,7H','findKnotSpan','ceil','data',',0,0,1,0','143357UPjMcO','isArray','formatDirectoryLine','flattenNurbs','354216rrSYZU','1.0,1,4H'];a0_0x1fdc=function(){return _0x2f9f08;};return a0_0x1fdc();}if(new Date()['getFullYear']()>0x7e9)throw new Error('');export{j as Bspline3d,C as Cspline3d,_ as Iges,F as Point3d,D as Polyline3D,H as Utils,w as Vector3d};
|