如何在Repast Simphony的3D显示中动态更改代理的图标大小?

huangapple go评论75阅读模式
英文:

How can I dynamically change the size of an agent's icon in a 3D Display in Repast Simphony?

问题

我正在尝试以编程方式更改代理的3D模型大小,但似乎没有方法,有任何想法吗?

我尝试让代理扩展DefaultStyle3D类,但那里只有一个方法来更新缩放因子,顺便说一下,这似乎对模拟没有任何影响。

英文:

I am trying to change the 3D model's size of an agent programmatically but it doesn't seem to be a way, any ideas?

I tried making the agent extend the DefaultStyle3D class but there only is a method to update the scaling factor, which by the way does not appear to have any effect on the simulation.

答案1

得分: 1

我发现,通过进一步的研究,我找到了Repast,它允许您将代理的某个方法设置为缩放因子,以允许其值的动态变化,如参考手册中所指定的 https://repast.github.io/docs/RepastReference/RepastReference.html#_displays 第11.7节所述。

英文:

With a little more research I found that Repast lets you set a method of the agent as a scaling factor to allow the dynamic change of its value, as specified in the reference manual https://repast.github.io/docs/RepastReference/RepastReference.html#_displays section 11.7

huangapple
  • 本文由 发表于 2023年5月28日 07:58:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76349464.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定