{"id":344,"date":"2019-06-30T21:00:31","date_gmt":"2019-07-01T04:00:31","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=344"},"modified":"2019-06-30T21:00:33","modified_gmt":"2019-07-01T04:00:33","slug":"archived-post-by-profbetis-3","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2019\/06\/30\/archived-post-by-profbetis-3\/","title":{"rendered":"Archived post by profbetis"},"content":{"rendered":"<p class=\"\">p simple actually This is a volume wrangle. First input is your volume for storing the field, second input is your geometry that has a magnetic value (-1 to 1) point attribute &#8220;`c vector mf = 0;<br \/>\nfor( int i=0; i<npoints(1); i++ ){     float magval = point(1, \"magval\", i);     vector diff = point(1, \"P\", i) - @P;     float dist2 = length2(diff);          mf += magval*normalize(diff)\/dist2; }\n<a href=\"mailto:v@magfield\" >v@magfield<\/a> = mf;&#8220;`<\/p>\n<p class=\"\">trying to convert to openCL but running into dumb problems with how to write to vector volumes<\/p>\n<p class=\"\">of course, it also doesn&#8217;t take into account spatial density of points, so if you double your point count you will get double the magnetic field values<\/p>\n","protected":false},"excerpt":{"rendered":"<p>p simple actually This is a volume wrangle. First input is your volume for storing the field, second input is your geometry that has a magnetic value (-1 to 1) point attribute &#8220;`c vector mf = 0; for( int i=0; i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-wip"],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}