发帖
 找回密码
 立即注册
搜索
3 0 0

如何实现一个发生器产生三种形状不同的产品

新手入门 64 3 2022-11-24 15:43:15
产生三种产品的形状不相同应该怎么实现
──── 0人觉得很赞 ────
2022-11-25 09:08:50
可以使用setobjectshapeindex()语句实现
2022-11-25 21:28:56
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=34359&ptid=12066][color=#999999]小赵同学 发表于 2022-11-25 09:08[/color][/url][/size]
可以使用setobjectshapeindex()语句实现[/quote]

这个括号里的格式怎么写
2022-11-26 11:45:31
触发中有现成的代码,稍微修改一下就可以用。


[code]/**Change 3D Shape*/
Array shapename=["fs3d\\General\\Box.3ds","fs3d\\General\\Cylinder.3ds","fs3d\\General\\Sphere.3ds"];
Array size=[[0.61,0.61,0.3],[0.7,0.7,0.8],[0.5,0.5,0.5]];
double theindex = duniform(1,3);

//Get the size of the item
double x = size[theindex][1];
double y = size[theindex][2];
double z = size[theindex][3];

//Change 3D Shape
sets(shape(item),shapename[theindex]);
setobjectshapeindex(item,theindex);

//Update the item size
applyshapefactors(item);
setsize(item, x, y, z);

//Set item Type and color
item.Type=theindex;
item.color=Color.byNumber(theindex);[/code]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 立即登录
高级模式
返回
新手入门
热门问答
查看更多
1
厂区生产线布局优化案例!新做的!
厂区生产线布局优化案例!新做的!
1802
224
2
FlexSim2016 中国象棋
FlexSim2016 中国象棋
1035
44
3
Flexsim二次开发之塔吊
Flexsim二次开发之塔吊
940
45
4
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
903
34
5
快递分拨中心案例~新手可参考
快递分拨中心案例~新手可参考
762
62
博主榜
+ 45331
+ 10630
+ 7753
4
+ 6759
5
+ 6323
6
+ 6321
7
+ 5341
8
+ 4710
9
+ 3722
10
+ 3628