{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/920","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/920/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/920/events","html_url":"https://github.com/paperjs/paper.js/issues/920","id":128022571,"number":920,"title":"simplify behaves weirdly with fairly simple shapes","user":{"login":"ludwick","id":2992145,"avatar_url":"https://avatars.githubusercontent.com/u/2992145?v=3","gravatar_id":"","url":"https://api.github.com/users/ludwick","html_url":"https://github.com/ludwick","followers_url":"https://api.github.com/users/ludwick/followers","following_url":"https://api.github.com/users/ludwick/following{/other_user}","gists_url":"https://api.github.com/users/ludwick/gists{/gist_id}","starred_url":"https://api.github.com/users/ludwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludwick/subscriptions","organizations_url":"https://api.github.com/users/ludwick/orgs","repos_url":"https://api.github.com/users/ludwick/repos","events_url":"https://api.github.com/users/ludwick/events{/privacy}","received_events_url":"https://api.github.com/users/ludwick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T21:23:25Z","updated_at":"2016-01-22T14:37:30Z","closed_at":null,"body":"It's not clear when one should use `simplify` to be honest, but it does some pretty surprising things. Take this [example sketch](http://sketch.paperjs.org/#S/3VdLT9tAEP4rq1wA1V7t7HtBPaHeK3HogXAIiSEuiR05SasW8d87+3DimISiFugjUiTvzOzO9+3sfPbeD6rRvBicDi7uitV4OsgG43rix4um/lyMV3Q8K0bN8cnZsBpWX0YNWYxW04tVU1a3S/KeXA4rEn/DwZwIzqllUrsMwOITM5bkloJznGeMsCzn1GnmJAFHnTJMBGtrxFAuLLfRKKjzZpILqsApH/qdzNHDhoNsN62CFAKCUdAMNMmBUWm00mExRw1YowgA1UYZ26YF43yooqA0VwmijtAISKqUVa4TbDAYKNKCyMfGvMQnQ+ImhVokwQ+j1dQD44jWxgxkTMA/IdiUW1ArlJMZUA+XEx12xm3GYgNNUS20gSwHao11sDUgfGe0jtsecWKQFEZluKdpy1Vigw+YUGC9JBXOSukXjOByQwEMOD/Lel/HYqiWTHOfQ8Y6I7S47+gToCUQGzd/a+CBBCB42T4FzByxx1MBVHAmOJmRnAWkwu+qB4hbhabANMtTiQny01hJ5zFzY0TglRBuLCLFsJa0XzNC3hgkZcIxHYqYKhsIikxEpCRtU6bS1PaMQPLrgA3DYx3T0KTTwzBDOp+CMosc0RUn5i6WZjNGTgzC+UV4UoL0fJMvLYvk4rk+dNQsT1netB8lS8n6aZWAPWlFaqbfTivMPyQDUmIbaDCPZCAg6MgANlxPBmxXBiJgFftwRwWi4SVVgAPrqUC07FcB/yZ4WgWQflKB+LRVgdDyf5UKeGQ7KqCwzh0V8HXYFQHoqQAckIGQ8wkZCPVLMhDK1pMB+KkOSG3/iA44uV8HXjet4mK/Dmxac0cH4ml4cR1IonMQo93f/THDq7d/eJ082f6ScfEftD8HeKr7eb/7+cFvAN77Bnij7u9+BPxa96NSJWrPeh0/vw3xgMjeEb8K94TtTcHfETo3BjofLY5v1tV4VdYVOd56Tsi9x9xOw1lV8ZWc1/NFva4mH9HUDT7zsX5Ml6umvivO61nd4Jyj26YoqqO++1M5CUseQcd1U85mm3lNMYku/2+K1bqpQhTaHk4SpUCH3tTNh9F42iFRN+VtWY1mHuRjGl0v3qXqqjjuwF/UyzKs8g6vUiwjil2dtQuMp+Vs0hRV2kHajkNAO9iDZ7m+Xmyh+F+y0GU5X8zKm28JQWCW6OG977opRneLuqxWy8Hp5dXDDw==). \r\n\r\nScreenshot as well:\r\n\r\n![screen shot 2016-01-21 at 1 18 05 pm](https://cloud.githubusercontent.com/assets/2992145/12494888/76d76cfc-c041-11e5-890e-f1e82c480081.png)\r\n\r\nThe top is the original display of `CompoundPath` objects creating from svg path data. The bottom is applying `simplify` to a copy each child path of the original (re-positioned down obviously).\r\n\r\nNow obviously `simplify` is more useful on complicated curvy paths, but if you're processing arbitrary inputs you don't know in advance if it would make sense to simplify. In our code we do guard this by checking for the number of child paths and count of segments in those child paths, but it seems weird to just arbitrarily threshold."},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/173936998","html_url":"https://github.com/paperjs/paper.js/issues/920#issuecomment-173936998","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/920","id":173936998,"user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T14:37:30Z","updated_at":"2016-01-22T14:37:30Z","body":"So I don't think this is a bug... But perhaps the issue here is that the documentation is not clear about this?"}}