数字孪生Web 后台dt( digital twin)2.0版本 统一命名格式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.4 KiB

12 months ago
define(["exports","./Check-35e1a91d","./Cartesian2-c451a606","./Transforms-e4be2a30","./OrientedBoundingBox-b779e812"],function(n,e,f,x,B){"use strict";var t={},s=new f.Cartesian3,P=new f.Cartesian3,M=new f.Cartesian3,h=new f.Cartesian3,v=new B.OrientedBoundingBox;function o(n,e,t,r,a){var i=f.Cartesian3.subtract(n,e,s),o=f.Cartesian3.dot(t,i),u=f.Cartesian3.dot(r,i);return f.Cartesian2.fromElements(o,u,a)}t.validOutline=function(n){var e=B.OrientedBoundingBox.fromPoints(n,v).halfAxes,t=x.Matrix3.getColumn(e,0,P),r=x.Matrix3.getColumn(e,1,M),a=x.Matrix3.getColumn(e,2,h),i=f.Cartesian3.magnitude(t),o=f.Cartesian3.magnitude(r),u=f.Cartesian3.magnitude(a);return!(0===i&&(0===o||0===u)||0===o&&0===u)},t.computeProjectTo2DArguments=function(n,e,t,r){var a,i,o=B.OrientedBoundingBox.fromPoints(n,v),u=o.halfAxes,s=x.Matrix3.getColumn(u,0,P),C=x.Matrix3.getColumn(u,1,M),m=x.Matrix3.getColumn(u,2,h),c=f.Cartesian3.magnitude(s),g=f.Cartesian3.magnitude(C),d=f.Cartesian3.magnitude(m),l=Math.min(c,g,d);return(0!==c||0!==g&&0!==d)&&(0!==g||0!==d)&&(l!==g&&l!==d||(a=s),l===c?a=C:l===d&&(i=C),l!==c&&l!==g||(i=m),f.Cartesian3.normalize(a,t),f.Cartesian3.normalize(i,r),f.Cartesian3.clone(o.center,e),!0)},t.createProjectPointsTo2DFunction=function(r,a,i){return function(n){for(var e=new Array(n.length),t=0;t<n.length;t++)e[t]=o(n[t],r,a,i);return e}},t.createProjectPointTo2DFunction=function(t,r,a){return function(n,e){return o(n,t,r,a,e)}},n.CoplanarPolygonGeometryLibrary=t});