code v变焦曲线

code v变焦曲线

ID:47913996

大小:25.01 KB

页数:2页

时间:2019-10-25

code v变焦曲线_第1页
code v变焦曲线_第2页
资源描述:

《code v变焦曲线》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、!Recordtheoriginalparameterstobekept^eflmin==(eflz1);^eflmax==(eflz^nz);^oala==(oals1..iz1)for^i1^numpoint ^efls(^i)==(^i-1)3(^eflmax-^eflmin)/(^numpoint-1)+^eflminendfor!Dezoomlenstothedesiredposition, andFreezeallthevariablesdez1;frzsa!Releasethevaria

2、blesforoptimizationthcs^vs10;thcs^vs20;thcs^vs30!StarttocalculatetheCAMdata!Decidewhattypecamtobeusediflowcase(^camtype)=‘thi’!Linearthicknessvs.rotationanglefor^i1^numpoint!Decidethesurfaceoflinearthicknessif(^linsur=^vs1)or(^linsur=^vs2)or(^linsur=^vs

3、3)  thcs^linsur100  tins^linsur((this^linsurz^nz)-   (this^linsurz1))/(^numpoint-1)  endif!OptimizingwhilekeepingoveralllengthAUT;oals1..i=^oala;GO^efls(^i)==(efl)^d1fb(^i)==(oals^fbsur..^vs1+1)^d3fb(^i)==(oals^fbsur..^vs3)endfor!LinearEFLvs.rotationang

4、leelseiflowcase(^camtype)=‘efl’for^i1^numpoint  !Optimizingwhilekeepingoveralllength  AUT;efl=^efls(^i);oals1..i=^oala;GO  ^efls(^i)==(efl)  ^d1fb(^i)==(oals^fbsur..^vs1+1)  ^d3fb(^i)==(oals^fbsur..^vs3)endforelseiflowcase(^camtype)=‘mix’ !Mixedcam wri‘

5、RototationAngle=’; rea ^roa wri‘Diameterofwheel=’; rea ^dia ^dtx==^roa3^pai3^dia/360/(^numpoint-1)3tanf(^Max-tilt) ^i==1unt ^thi3==(this^vs3) tins^vs1^dtx;thc100;thcs^vs30 AUT;oals1..i=^oala;GO ^ig==(this^vs3)2^thi3if^ig>^dtx !Decreasethestepandexchange

6、thevariable  tins^vs3-^ig+^dtx;thc100  thcs^vs10  !Optimizingwhilekeepingoveralllength  AUT;oals1..i=^oala;GO endif ^i==^i+1 ^efls(^i)==(efl); ^d1fb(^i)==(oals^fbsur..^vs1+1) ^d3fb(^i)==(oals^fbsur..^vs3) enduntabsf((efl)-^eflmax)<=1e-4 ^numpoint==^iend

7、if

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。