合并连接的UIBezierPaths [英] Merge connected UIBezierPaths

查看:118
本文介绍了合并连接的UIBezierPaths的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有某种方式(代码或伪代码算法)将 UIBezierPath 实例方法(如 appendPath )用于合并任意数量的连接的,独立的 UIBezierPath 到一条大路径中?在具有许多路径的文档中,我尝试通过也许减少路径数来减小编码文件的大小,因为那里肯定有一些冗余信息。如果我吠叫的树不对,请通知我。

Is there some way (code or pseudo-code algorithm) to utilize UIBezierPath instance methods like appendPath to "merge" any number of connected, distinct UIBezierPaths into a single big path? In a document with many paths, I am trying to reduce the encoded file size by perhaps reducing the number of paths as there is surely some redundant information there. If I am barking up the wrong tree, let me know.

推荐答案

如果这只是一个美学问题,只需设置……第二个贝塞尔曲线的第一个点是第一个贝塞尔曲线的最后一个点,依此类推。

well if its only an esthetically problem...just set the first point of the 2nd bezier curve as the last point of the 1st..and so on..

如果不是,我不认为有办法合并2个或更多的bezier路径cuz .....他们是bezier,如果您这样做,它看起来就不会正确

if its not i don't think there is a way to merge 2 or more bezier paths cuz ...well..they are bezier and it wont look right if you do

了解更多关于bezier曲线的信息href = http://en.wikipedia.org/wiki/B%C3%A9zier_curve rel = nofollow>贝塞尔曲线,看看它为什么不起作用

read more about bezier curves bezier curves and see why it wont work

这篇关于合并连接的UIBezierPaths的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆