UNPKG

awv3

Version:
1 lines 21.4 kB
"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function meshHighlightable(){this.hover=function(){var t=this.parent,e=_sketch2["default"].FindSketchOf(this);if(e&&(this.material.color=new _three2["default"].Color(getColor(this.parent,!0)),!t.auxiliaryConstruction)){var i=new _three2["default"].LineBasicMaterial({color:getColor(this.parent,!1),transparent:!0,opacity:.3}),n=t.getAuxiliaryGeometry(),o=n?new _three2["default"].Line(n,i):null;t.auxiliaryConstruction=o,t.auxiliaryConstruction&&t.auxiliaryConstruction.position.copy(t.interact.position),o&&e.addAuxObject(o),t.hovered=!0}},this.unhover=function(){this.material.color=new _three2["default"].Color(getColor(this.parent,!1));var t=this.parent;if(t.auxiliaryConstruction){var e=_sketch2["default"].FindSketchOf(t.auxiliaryConstruction);e.removeAuxObject(t.auxiliaryConstruction),t.auxiliaryConstruction=void 0}}}function getColor(t,e){var i=10967001,n=12611824,o=8947848,r=15658734,s=[i,n,o,r],a=3373218,c=11194324,p=8947848,h=15658734,u=[a,c,p,h],l=12731257,d=15226024,f=8947848,y=15658734,m=[l,d,f,y],g=8355711,_=_sketch2["default"].FindSketchOf(t),b=!!_&&_.getConstraintsOnSketch(t).some(function(t){return"FIXATION"===t.name}),v=(b?2:0)+(e?1:0),P=void 0;return t instanceof Point?P=s[v]:t instanceof Line?P=u[v]:t instanceof Arc?P=m[v]:t instanceof WorkPlane&&(P=g),P}exports.__esModule=!0,exports.WorkPlane=exports.Arc=exports.Line=exports.Point=exports.GeometricObject=void 0;var _getIterator2=require("babel-runtime/core-js/get-iterator"),_getIterator3=_interopRequireDefault(_getIterator2),_map=require("babel-runtime/core-js/map"),_map2=_interopRequireDefault(_map),_regenerator=require("babel-runtime/regenerator"),_regenerator2=_interopRequireDefault(_regenerator),_asyncToGenerator2=require("babel-runtime/helpers/asyncToGenerator"),_asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_possibleConstructorReturn2=require("babel-runtime/helpers/possibleConstructorReturn"),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=require("babel-runtime/helpers/inherits"),_inherits3=_interopRequireDefault(_inherits2);exports.getColor=getColor;var _sketch=require("sketcher/sketch"),_sketch2=_interopRequireDefault(_sketch),_sketcher=require("sketcher/sketcher"),_sketcher2=_interopRequireDefault(_sketcher),_ccobjects=require("sketcher/ccobjects"),_view=require("core/view"),_view2=_interopRequireDefault(_view),_cchelpers=require("sketcher/cchelpers"),_three=require("three"),_three2=_interopRequireDefault(_three),InteractMesh=function(t){function e(i,n){return(0,_classCallCheck3["default"])(this,e),(0,_possibleConstructorReturn3["default"])(this,t.call(this,i,n))}return(0,_inherits3["default"])(e,t),e}(_three2["default"].Mesh);meshHighlightable.call(InteractMesh.prototype);var GeometricObject=exports.GeometricObject=function(t){function e(){(0,_classCallCheck3["default"])(this,e);var i=(0,_possibleConstructorReturn3["default"])(this,t.call(this));return _sketcher2["default"].mixinPixelSizedGeometry.call(i,i.thickness),i.constraintsSubstrate=new InteractMesh(new _three2["default"].BoxGeometry(1,1,1),new _three2["default"].MeshBasicMaterial({color:getColor(i,!1),side:_three2["default"].DoubleSide,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-10,transparent:!0,opacity:.3})),i.constraintsSubstrate.visible=!1,i}return(0,_inherits3["default"])(e,t),e.prototype.finishedUpdating=function(){this.updateGeometry()},e}(_ccobjects.ClassCadObject),Point=exports.Point=function(t){function e(){(0,_classCallCheck3["default"])(this,e);var i=(0,_possibleConstructorReturn3["default"])(this,t.call(this));return i.type="Point",i.mesh=new InteractMesh(new _three2["default"].CircleGeometry(.5,32),new _three2["default"].MeshBasicMaterial({color:getColor(i,!1),side:_three2["default"].DoubleSide,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-10})),i.interact=i.mesh,i.points=[i],i.add(i.mesh,i.constraintsSubstrate),i}return(0,_inherits3["default"])(e,t),e.prototype.move=function(){function t(t){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t){return _regenerator2["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.position.copy(t),e.next=3,this.emit("moved",this);case 3:this.updateGeometry();case 4:case"end":return e.stop()}},i,this)}));return t}(),e.prototype.moveRelative=function(){function t(t){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t){return _regenerator2["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.position.add(t),e.next=3,this.emit("moved",this);case 3:this.updateGeometry();case 4:case"end":return e.stop()}},i,this)}));return t}(),e.prototype.endDrag=function(){function t(t,i){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t,e){return _regenerator2["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.isOnSketch(this)){i.next=3;break}return i.next=3,t.updateFromServer(e,[this.prepareUpdateToServer(t)]);case 3:return i.next=5,this.emit("dragend",t,e);case 5:case"end":return i.stop()}},i,this)}));return t}(),e.prototype.setVisible=function(t){this.mesh.material.visible=t},e.prototype.updateGeometry=function(){},e.prototype.getAuxiliaryGeometry=function(){return null},e.prototype.updateAuxiliaryGeometry=function(){},e.prototype.setGeomSizes=function(t){var e=t[0];this.mesh.scale.set(e,e,e),this.constraintsSubstrate.visible&&_sketch2["default"].FindSketchOf(this).updateConstraints(this)},e.prototype.getSubstratePosition=function(t,e){var i=new _three2["default"].Vector3(t/2+e,e/2+e,0);return i},e.prototype.getState=function(){return new _map2["default"]([["x",this.position.x],["y",this.position.y]])},e.prototype.applyStateDiff=function(t){t.forEach(function(t,e){this.position[e]=t},this)},e.prototype.addStateDiff=function(t,e){null!==t&&t.forEach(function(t,i){this.position[i]+=t*e},this)},e.prototype.prepareAddOnServer=function(t){return _cchelpers.Interop.AddPoint(t,this.position).parseToObject(this)},e.prototype.prepareUpdateToServer=function(t){return _cchelpers.Interop.UpdatePoint(t,this,this.position).parseToObject(this)},e.prototype.prepareRemoveOnServer=function(t){return _cchelpers.Interop.RemovePoint(t,this)},e}(GeometricObject);_ccobjects.ClassCadObject.classMapping.CC_Point=Point;var Line=exports.Line=function(t){function e(){(0,_classCallCheck3["default"])(this,e);var i=(0,_possibleConstructorReturn3["default"])(this,t.call(this));return i.type="Line",i.mesh=new InteractMesh(new _three2["default"].BoxGeometry(1,1,0),new _three2["default"].MeshBasicMaterial({color:getColor(i,!1),side:_three2["default"].DoubleSide,polygonOffset:!0,polygonOffsetFactor:-1,polygonOffsetUnits:-5})),i.interact=i.mesh,i.points=[new Point,new Point],i.points[0].name="startPoint",i.points[1].name="endPoint",i.points.forEach(function(t){t.on("moved",i.updateGeometry.bind(i)),t.on("dragend",i.endDrag.bind(i))}),i.width=i.thickness,i.add(i.points[0],i.points[1],i.mesh,i.constraintsSubstrate),i.updateGeometry(),i}return(0,_inherits3["default"])(e,t),e.prototype.getMiddlePosition=function(){return this.points[0].position.clone().add(this.points[1].position).multiplyScalar(.5)},e.prototype.getTangent=function(t){var e=this.points[1].position.clone().sub(this.points[0].position);return e.length()>1e-9?e.normalize():new _three2["default"].Vector3(0,0,0)},e.prototype.getLength=function(){return this.points[0].position.distanceTo(this.points[1].position)},e.prototype.moveRelative=function(){function t(t){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t){var e,n,o,r,s,a;return _regenerator2["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=this.points,e.forEach(function(e){return e.position.add(t)}),this.updateGeometry(),n=e,o=Array.isArray(n),r=0,n=o?n:(0,_getIterator3["default"])(n);case 4:if(!o){i.next=10;break}if(!(r>=n.length)){i.next=7;break}return i.abrupt("break",19);case 7:s=n[r++],i.next=14;break;case 10:if(r=n.next(),!r.done){i.next=13;break}return i.abrupt("break",19);case 13:s=r.value;case 14:return a=s,i.next=17,a.emit("moved",a);case 17:i.next=4;break;case 19:return i.next=21,this.emit("moved",this);case 21:case"end":return i.stop()}},i,this)}));return t}(),e.prototype.endDrag=function(){function t(t,i){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t,e){return _regenerator2["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.isOnSketch(this)){i.next=3;break}return i.next=3,t.updateFromServer(e,[this.prepareUpdateToServer(t)]);case 3:return i.next=5,this.emit("dragend",t,e);case 5:case"end":return i.stop()}},i,this)}));return t}(),e.prototype.setVisible=function(t){this.mesh.material.visible=t,this.points.forEach(function(e){return e.setVisible(t)})},e.prototype.updateGeometry=function(){},e.prototype.getAuxiliaryGeometry=function(){var t=this.points[1].position.clone().sub(this.points[0].position).normalize(),e=1e4*this.points[0].scale.x,i=this.points[0].position.clone().add(t.clone().multiplyScalar(e).sub(this.getMiddlePosition())),n=this.points[0].position.clone().add(t.clone().multiplyScalar(-e).sub(this.getMiddlePosition())),o=new _three2["default"].Geometry;return o.vertices.push(i,n),o},e.prototype.updateAuxiliaryGeometry=function(){var t=this.points[1].position.clone().sub(this.points[0].position).normalize(),e=1e4*this.points[0].scale.x,i=this.points[0].position.clone().add(t.clone().multiplyScalar(e).sub(this.getMiddlePosition())),n=this.points[0].position.clone().add(t.clone().multiplyScalar(-e).sub(this.getMiddlePosition()));this.auxiliaryConstruction.position.copy(this.interact.position);var o=this.auxiliaryConstruction.geometry;o.vertices.length=0,o.vertices.push(i,n),o.verticesNeedUpdate=!0},e.prototype.getSizingPoint=function(){return this.getMiddlePosition()},e.prototype.setGeomSizes=function(t){this.width=t[0],this.constraintsSubstrate.visible&&_sketch2["default"].FindSketchOf(this).updateConstraints(this)},e.prototype.getSubstratePosition=function(t,e){var i=t/2+e,n=e/2+e,o=this.points[1].position.clone().sub(this.points[0].position),r=o.angleTo(new _three2["default"].Vector3(1,0,0)),s=o.cross(new _three2["default"].Vector3(1,0,0)).z>=0?-1:1;r=r*s-Math.PI/2;var a=this.getMiddlePosition().add(new _three2["default"].Vector3(i*Math.cos(r),n*Math.sin(r),0));return a},e.prototype.updateVisualization=function(){var t=this.points[0].position.distanceTo(this.points[1].position),e=this.width,i=.001;this.mesh.scale.set(Math.max(t,i),Math.max(e,i),i);var n=this.points[1].position.clone().sub(this.points[0].position).normalize(),o=(new _three2["default"].Quaternion).setFromUnitVectors(new _three2["default"].Vector3(1,0,0),n);this.mesh.quaternion.copy(o),this.mesh.position.copy(this.getMiddlePosition()),this.auxiliaryConstruction&&this.updateAuxiliaryGeometry()},e.prototype.getState=function(){return new _map2["default"]([["startPoint",this.points[0].getState()],["endPoint",this.points[1].getState()]])},e.prototype.applyStateDiff=function(t){t.has("startPoint")&&this.points[0].applyStateDiff(t.get("startPoint")),t.has("endPoint")&&this.points[1].applyStateDiff(t.get("endPoint"))},e.prototype.addStateDiff=function(t,e){null!==t&&(t.has("startPoint")&&this.points[0].addStateDiff(t.get("startPoint"),e),t.has("endPoint")&&this.points[1].addStateDiff(t.get("endPoint"),e))},e.prototype.prepareAddOnServer=function(t){return _cchelpers.Interop.AddLine(t,this.points[0].position,this.points[1].position).parseToObject(this)},e.prototype.prepareUpdateToServer=function(t){return _cchelpers.Interop.UpdateLine(t,this,this.points[0].position,this.points[1].position).parseToObject(this)},e.prototype.prepareRemoveOnServer=function(t){return _cchelpers.Interop.RemoveLine(t,this)},e}(GeometricObject);_ccobjects.ClassCadObject.classMapping.CC_Line=Line;var Arc=exports.Arc=function(t){function e(i){(0,_classCallCheck3["default"])(this,e);var n=(0,_possibleConstructorReturn3["default"])(this,t.call(this));n.type="Arc";for(var o=new _three2["default"].Geometry,r=0;r<=n.meshResolution;r++)o.vertices.push(new _three2["default"].Vector3(0,0,0),new _three2["default"].Vector3(0,0,0));for(var r=0;r<n.meshResolution;r++)o.faces.push(new _three2["default"].Face3(2*r,2*r+2,2*r+3,new _three2["default"].Vector3(0,0,1)),new _three2["default"].Face3(2*r+3,2*r+1,2*r,new _three2["default"].Vector3(0,0,1)));return n.mesh=new InteractMesh(o,new _three2["default"].MeshBasicMaterial({color:getColor(n,!1),side:_three2["default"].DoubleSide,polygonOffset:!0,polygonOffsetFactor:-1,polygonOffsetUnits:-5})),n.interact=n.mesh,n.points=[new Point,new Point],n.centerPoint=new Point,n.points[0].name="startPoint",n.points[1].name="endPoint",n.centerPoint.name="center",n.clockwise=!1,n.points.concat(n.centerPoint).forEach(function(t){t.on("moved",n.updateGeometry.bind(n)),t.on("dragend",n.endDrag.bind(n))}),n.width=n.thickness,n.add(n.points[0],n.points[1],n.centerPoint,n.mesh,n.constraintsSubstrate),n.updateGeometry(),n}return(0,_inherits3["default"])(e,t),e.prototype.getMiddlePosition=function(){var t=.5*(this.angleStart+this.angleEnd);return new _three2["default"].Vector3(Math.cos(t),Math.sin(t),0).multiplyScalar(this.radius).add(this.centerPoint.position)},e.prototype.getTangent=function(t){var e=t.clone().sub(this.centerPoint.position);if(e.length()<=1e-9)return new _three2["default"].Vector3(0,0,0);e.normalize();var i=new _three2["default"].Vector3((-e.y),e.x,0);return this.clockwise&&i.negate(),i},e.prototype.getAngle=function(){return Math.abs(this.angleEnd-this.angleStart)},e.prototype.getLength=function(){return this.radius*this.getAngle()},e.prototype.moveRelative=function(){function t(t){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t){var e,n,o,r,s,a;return _regenerator2["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=this.points.concat(this.centerPoint),e.forEach(function(e){return e.position.add(t)}),this.updateGeometry(),n=e,o=Array.isArray(n),r=0,n=o?n:(0,_getIterator3["default"])(n);case 4:if(!o){i.next=10;break}if(!(r>=n.length)){i.next=7;break}return i.abrupt("break",19);case 7:s=n[r++],i.next=14;break;case 10:if(r=n.next(),!r.done){i.next=13;break}return i.abrupt("break",19);case 13:s=r.value;case 14:return a=s,i.next=17,a.emit("moved",a);case 17:i.next=4;break;case 19:return i.next=21,this.emit("moved",this);case 21:case"end":return i.stop()}},i,this)}));return t}(),e.prototype.modify=function(t,e,i,n){t&&this.points[0].position.copy(t),e&&this.points[1].position.copy(e),i&&this.centerPoint.position.copy(i),n&&(this.clockwise=n),this.updateGeometry()},e.prototype.endDrag=function(){function t(t,i){return e.apply(this,arguments)}var e=(0,_asyncToGenerator3["default"])(_regenerator2["default"].mark(function i(t,e){return _regenerator2["default"].wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.isOnSketch(this)){i.next=3;break}return i.next=3,t.updateFromServer(e,[this.prepareUpdateToServer(t)]);case 3:return i.next=5,this.emit("dragend",t,e);case 5:case"end":return i.stop()}},i,this)}));return t}(),e.prototype.setVisible=function(t){this.mesh.material.visible=t,this.points.forEach(function(e){return e.setVisible(t)}),this.centerPoint.setVisible(t)},e.prototype.updateGeometry=function(t){if(t===this.centerPoint){var e=this.points[1].position.clone().add(this.points[0].position).divideScalar(2),i=this.points[1].position.clone().sub(this.points[0].position),n=i.clone().applyAxisAngle(new _three2["default"].Vector3(0,0,1),Math.PI/2),o=this.centerPoint.position.clone().sub(e),r=o.clone().projectOnVector(n).add(e);this.centerPoint.position.set(r.x,r.y,r.z)}var s=this.points[0].position.distanceTo(this.centerPoint.position),a=this.points[1].position.distanceTo(this.centerPoint.position);t===this.points[0]?this.radius=a:t===this.points[1]?this.radius=s:this.radius=(s+a)/2,t===this.points[0]&&this.points[0].position.sub(this.centerPoint.position).setLength(this.radius).add(this.centerPoint.position),t===this.points[1]&&this.points[1].position.sub(this.centerPoint.position).setLength(this.radius).add(this.centerPoint.position);var c=this.points[0].position.clone().sub(this.centerPoint.position),p=this.points[1].position.clone().sub(this.centerPoint.position);this.angleStart=Math.atan2(c.y,c.x),this.angleEnd=Math.atan2(p.y,p.x),this.clockwise?this.angleStart<this.angleEnd&&(this.angleStart+=2*Math.PI):this.angleStart>this.angleEnd&&(this.angleEnd+=2*Math.PI)},e.prototype.getAuxiliaryGeometry=function(){var t=new _three2["default"].CircleGeometry(this.radius,32);return t},e.prototype.updateAuxiliaryGeometry=function(){for(var t=this.auxiliaryConstruction.geometry,e=2*Math.PI/32,i=1;i<t.vertices.length;++i)t.vertices[i].x=this.radius*Math.cos(e*(i-1)),t.vertices[i].y=this.radius*Math.sin(e*(i-1));this.auxiliaryConstruction.position.copy(this.interact.position),t.verticesNeedUpdate=!0},e.prototype.getSizingPoint=function(){return this.centerPoint.position},e.prototype.setGeomSizes=function(t){this.width=t[0],this.constraintsSubstrate.visible&&_sketch2["default"].FindSketchOf(this).updateConstraints(this)},e.prototype.getSubstratePosition=function(t,e){var i=(this.angleStart+this.angleEnd)/2,n=new _three2["default"].Vector3((this.radius+t/2+e)*Math.cos(i),(this.radius+e+e/2)*Math.sin(i),0),o=this.centerPoint.position.clone().add(n.clone());return o},e.prototype.updateVisualization=function(){var t=function(t,e){return t instanceof Array&&e instanceof Array&&t.length===e.length&&t.every(function(t,i){return t===e[i]})},e=[this.radius,this.width,this.angleStart,this.angleEnd];if(!t(e,this.mesh.geometry.parameters)){for(var i=this.radius-this.width/2,n=this.radius+this.width/2,o=0;o<=this.meshResolution;o++){var r=this.angleStart+(this.angleEnd-this.angleStart)*o/this.meshResolution,s=Math.cos(r),a=Math.sin(r);this.mesh.geometry.vertices[2*o+0].set(n*s,n*a,0),this.mesh.geometry.vertices[2*o+1].set(i*s,i*a,0)}this.mesh.geometry.verticesNeedUpdate=!0,this.mesh.geometry.computeBoundingBox(),this.mesh.geometry.computeBoundingSphere(),this.mesh.geometry.parameters=e}this.mesh.position.copy(this.centerPoint.position),this.auxiliaryConstruction&&this.updateAuxiliaryGeometry()},e.prototype.getState=function(){return new _map2["default"]([["startPoint",this.points[0].getState()],["endPoint",this.points[1].getState()],["center",this.centerPoint.getState()],["clockwise",+this.clockwise]])},e.prototype.applyStateDiff=function(t){t.has("startPoint")&&this.points[0].applyStateDiff(t.get("startPoint")),t.has("endPoint")&&this.points[1].applyStateDiff(t.get("endPoint")),t.has("center")&&this.centerPoint.applyStateDiff(t.get("center")),t.has("clockwise")&&(this.clockwise=0!=t.get("clockwise")),this.updateGeometry()},e.prototype.addStateDiff=function(t,e){null!==t&&(t.has("startPoint")&&this.points[0].addStateDiff(t.get("startPoint"),e),t.has("endPoint")&&this.points[1].addStateDiff(t.get("endPoint"),e),t.has("center")&&this.centerPoint.addStateDiff(t.get("center"),e),t.has("clockwise")&&(this.clockwise=0!=t.get("clockwise")))},e.prototype.prepareAddOnServer=function(t){return _cchelpers.Interop.AddArc(t,this.points[0].position,this.getMiddlePosition(),this.points[1].position).parseToObject(this)},e.prototype.prepareUpdateToServer=function(t){return _cchelpers.Interop.UpdateArc(t,this,this.points[0].position,this.points[1].position,this.centerPoint.position,this.points[0].position.distanceTo(this.centerPoint.position)).parseToObject(this)},e.prototype.prepareRemoveOnServer=function(t){return _cchelpers.Interop.RemoveArc(t,this)},e.prototype.addMember=function(t){switch(GeometricObject.prototype.addMember.apply(this,arguments),t.userData.memberInfo.name){case"bulge":this.clockwise=t<0}},e}(GeometricObject);_ccobjects.ClassCadObject.classMapping.CC_Arc=Arc,Arc.prototype.meshResolution=100;var WorkPlane=exports.WorkPlane=function(t){function e(){(0,_classCallCheck3["default"])(this,e);var i=(0,_possibleConstructorReturn3["default"])(this,t.call(this));return i.mesh=new InteractMesh(new _three2["default"].BoxGeometry(1,1,0),new _three2["default"].MeshBasicMaterial({color:getColor(i,!1),side:_three2["default"].DoubleSide,polygonOffset:!0,polygonOffsetFactor:-1,polygonOffsetUnits:-5,transparent:!0,opacity:.25})),i.interact=i.mesh,i.add(i.mesh),i}return(0,_inherits3["default"])(e,t),e.prototype.addMember=function(e,i){t.prototype.addMember.call(this,e,i);var n=e.userData.memberInfo;switch(n.name){case"Position":this.position.copy(e);break;case"Normal":this.quaternion.setFromUnitVectors(new _three2["default"].Vector3(0,0,1),e);break;case"Size":var o=e.valueOf();this.scale.set(o,o,1)}},e.prototype.finishedUpdating=function(){this.bubble("Updated.WorkPlane",this)},e}(_ccobjects.ClassCadObject);_ccobjects.ClassCadObject.classMapping.CC_WorkPlane=WorkPlane,Point.prototype.thickness=10,Line.prototype.thickness=5,Arc.prototype.thickness=5,Point.defaultScale=3.2229586226371154;