问题
Is there some way (code or pseudo-code algorithm) to utilize UIBezierPath
instance methods like appendPath
to "merge" any number of connected, distinct UIBezierPath
s 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