{"action":"created","issue":{"url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/339","repository_url":"https://api.github.com/repos/mostaphaRoudsari/ladybug","labels_url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/339/comments","events_url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/339/events","html_url":"https://github.com/mostaphaRoudsari/ladybug/issues/339","id":198166114,"number":339,"title":"Add Stereographic Option For SunPath, Sky Dome, Shading Mask, Cala-Dome, and Sky Visualizer","user":{"login":"chriswmackey","id":5567574,"avatar_url":"https://avatars.githubusercontent.com/u/5567574?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswmackey","html_url":"https://github.com/chriswmackey","followers_url":"https://api.github.com/users/chriswmackey/followers","following_url":"https://api.github.com/users/chriswmackey/following{/other_user}","gists_url":"https://api.github.com/users/chriswmackey/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswmackey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswmackey/subscriptions","organizations_url":"https://api.github.com/users/chriswmackey/orgs","repos_url":"https://api.github.com/users/chriswmackey/repos","events_url":"https://api.github.com/users/chriswmackey/events{/privacy}","received_events_url":"https://api.github.com/users/chriswmackey/received_events","type":"User","site_admin":false},"labels":[{"id":20628465,"url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-30T16:22:20Z","updated_at":"2017-01-01T23:54:48Z","closed_at":null,"body":"I now have a few people asking for this as it makes it easy to trace shade patterns onto the sunpath and other sky-dome visualizations.  I was originally thinking that I might be able to write the projection function with Rhino Transforms but it involves a non-uniform scaling from the center of the dome, which doesn't seem possible with these commands.  If this involves a ground-up re-creation of these graphics, it may be better to hold off the capability until the new Ladybug."},"comment":{"url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/comments/269925366","html_url":"https://github.com/mostaphaRoudsari/ladybug/issues/339#issuecomment-269925366","issue_url":"https://api.github.com/repos/mostaphaRoudsari/ladybug/issues/339","id":269925366,"user":{"login":"chriswmackey","id":5567574,"avatar_url":"https://avatars.githubusercontent.com/u/5567574?v=3","gravatar_id":"","url":"https://api.github.com/users/chriswmackey","html_url":"https://github.com/chriswmackey","followers_url":"https://api.github.com/users/chriswmackey/followers","following_url":"https://api.github.com/users/chriswmackey/following{/other_user}","gists_url":"https://api.github.com/users/chriswmackey/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswmackey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswmackey/subscriptions","organizations_url":"https://api.github.com/users/chriswmackey/orgs","repos_url":"https://api.github.com/users/chriswmackey/repos","events_url":"https://api.github.com/users/chriswmackey/events{/privacy}","received_events_url":"https://api.github.com/users/chriswmackey/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T23:54:48Z","updated_at":"2017-01-01T23:54:48Z","body":"@Vyrwn ,\r\nI was able to get your GH file to run correctly on my system.  There will definitely be a lot of gains in efficiency with converting this over to Python as it took quite some time to run on my system.  I can see that the math to do the projection is relatively simple both in your component and in the wikipedia page:\r\nhttps://en.wikipedia.org/wiki/Stereographic_projection\r\n\r\nDirectly engaging the code to generate the sunpath is one way to accomplish this and this would be the fastest computationally.  However, I know that the code is difficult to understand now and I think that a more generalizable function that can project any geometry to a stereographic view will be more useful and will be applicable to all of the different types of sky visualizations that Ladybug has.\r\n\r\nWriting this function for points is straightforward and you have already done this.  To project curves, we will need a function that subdivides the curve into points, projects the points and does an interpolated curve between the new points.  To project meshes, we just need to take the vertices of the mesh and run them through the projection function.\r\n\r\nLet me know if you would be able to tackle this in the next couple of weeks as it would be good to have this capability for the next stable release. I am also happy to help.\r\n-Chris"}}
{"actor":{"display_login":"chriswmackey"}}