%PDF-1.6 % 6 0 obj << /Length 1863 >> stream var vType1 = "orthographic";var vType2 = "perspective";if (0==1) { vType1 = "perspective"; vType2 = "orthographic";}var vPlane1 = 0.071255;var vPlane2 = -1.000000;var vFOV1 = -1.000000;var vFOV2 = 0.360413;var curProjType = "";var timeEventH = new TimeEventHandler();timeEventH.onEvent = function( event ){ if (scene && scene.cameras && scene.cameras.getByIndex( 0 )); { var camera = scene.cameras.getByIndex( 0 ); if (camera.projectionType != curProjType) { curProjType = camera.projectionType; if (curProjType == vType1) {camera.viewPlaneSize=vPlane1;camera.fov=vFOV1;} else {camera.viewPlaneSize=vPlane2;camera.fov=vFOV2;} } else { if (curProjType == vType1) {vPlane1=camera.viewPlaneSize;} else {vPlane2=camera.viewPlaneSize;} } }}runtime.addEventHandler( timeEventH );var toolEventH = new ToolEventHandler();toolEventH.onEvent = function( event ){ if ( event.toolName == "Solidworks") { var camera = scene.cameras.getByIndex( 0 ); console.println( "**** Tool Event **** "); console.println( "far=" + camera.far + " fov=" + camera.fov + " near=" + camera.near + " viewPlaneSize=" + camera.viewPlaneSize); console.println( "position=" + camera.position + " projectionType=" + camera.projectionType + " targetPosition=" + camera.targetPosition); host.getURL('http://www.solidworks.com'); }}runtime.addEventHandler( toolEventH );var cameraEventH = new CameraEventHandler();cameraEventH.onEvent = function( event ){ if (event.isNewCanvas==true) { var camera = event.canvas.getCamera(); if (vPlane1==-1) { vPlane1 = camera.viewPlaneSize; } else {vPlane2 = camera.viewPlaneSize;} if (vFOV1==-1) { vFOV1 = camera.fov; } else {vFOV2 = camera.fov;} camera.projectionType = vType1; camera.viewPlaneSize = vPlane1;camera.fov = vFOV1; event.canvas.setCamera(camera); curProjType = camera.projectionType; }}runtime.addEventHandler( cameraEventH ); endstream endobj 8 0 obj << /C2W [0.707108 0 -0.707108 -0.408203 0.816544 -0.408203 -0.577377 -0.577286 -0.577377 0.144485 0.131714 0.146729] /CO 0.228149 /IN (DefaultView) /MS /M /Type /3DView /XN (Default) >> endobj 7 0 obj [8 0 R] endobj 5 0 obj << /Filter /FlateDecode /Length 19877 /OnInstantiate 6 0 R /Subtype /U3D /Type /3D /VA 7 0 R >> stream Hė PTWQEQ5k5;"jD*F`hLĨ\QDe8&:(ev&mR(qI"wn^1z.-N*O/ ,z|n|]MT t?5eW+>/>VO i䏇cTQTҖ6Rz^6t1!EL͈IOK6I3&&hwo4dɔbĦ43\y.mDȸ^hk7+qs;yurrҊ"Q34DzٲoV>,ܧvV-̬}ǥʼnɜŹ5Vp}NLK_ID%^]e0QN5}j7-zeV#;^\:圛C.oZaY{#9z=7ߑ=r`6X Gn-sl(n,` # fs-5prT܂=-ؑ[p=ra6BXGn!-sm(n,` B#7-m(n,` ܴܴ+w \xM}XiCjlrfVKo:支VjqgpUhN;njCB5AC42tUj!g7W9C6#f]dRcŘP͈MLxG+mB%lm(L9.hNЏZ9Y8Q~O#<(ƋFQX >IZKK6I3&Nc-Vl/]<kϐO93Kt孧4?3W\{JT:?jS E%X}t 4z}[Z+T߶#p*,HgF>}R7Zqub S%\w}~'WCw\|x^ zo8NOzk;,xdSoߪL ~\_PFڪbʨW+jy\1-Sτ0I/ݺ"]܅$]#?tOAXD:z-Ģc@kKW~90W*_QoJ9)uYa h; H:=ަ~EYX\K:oe݅Rƀ:C.Kec =fq]&˼rf{xhp~gAKt$mt晅REA8x+827UIXt(iK<=BZ0a 럽znBsiW\{3i.y ȳ|aۯ[eJ])wE<Y]]1ӿ}<)<yX(Vk^o)B\1n<)`N-_
v!">Srx?/p<gkIqzp6K;^5dαSoH\\!\!\yᧉfzk
w}AdHu4=ׄ;iu#%gcoYO]KS3i@1n'=5mIYS/h:ɔ#0_;:\ٙEns|F"k
ORp:D:QS)O˟eX>1eԓ2w)=i