【源码】绘制箭头的三维动画功能fast-arrow (3d)

640?wx_fmt=jpeg

用于三维动画的低成本箭头绘制函数及示例。

Low-cost 3d arrow function for animation. Zip file has function and example.


目前,箭头锥是用一个随机的交叉积(简单方法)生成的。

Right now, the arrow-cone is generated using a random cross-product (the easy way). 


如果轴x,y,z的数值范围具有很大的不同数量级,这就使得箭头函数不能很好地工作。

This makes the arrow function not work well if axis x, y, z limits have vastly different orders of magnitude.


为了解决这个bug并提高速度和可靠性,需要重新实现这一数学功能(更难的方法)。

This math needs to re-implemented (the hard way) in order to resolve bugs and improve speed and reliability.


'arrow.m'为函数文件

'arrow.m' is function file


'arrow_example.m'是基于箭头函数撰写的一些示例。

'arrow_example.m' is a script that runs some examples using the arrow function. 


给出了放置箭头尾部和头部、调整箭头大小和着色以及将箭头对象与动画线和块混合的示例。

It gives examples for placing arrow tail and head, arrow sizing and coloring, and mixing arrow object with animated lines and patches.


完整源码下载请点击“阅读原文”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值