Merge connected UIBezierPaths

自闭症网瘾萝莉.ら 提交于 2019-12-25 05:09:54

问题


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.


回答1:


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..

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

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



来源:https://stackoverflow.com/questions/9942642/merge-connected-uibezierpaths

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!