image-science

how does getdepth function work in MarchingCube algorithm?

南楼画角 提交于 2019-12-12 05:48:09
问题 I am trying to understand Marching Cube Algorithm, so for I think I have understood how triangles are formed and how normals are calculated in each grid. I can see there is a linked list kind of structure that links each grid to another. But when I come across GetDepth(t[m]) which passes each triangles (those triangles of each grid) (t[0],..,..)individually, it returns depth of the node. The function, float GetDepth(TRIANGLE t) { float z; z = t.p[0].z; z = t.p[1].z > z? t.p[1].z: z; z = t.p[2

ImageScience breaks on update to Rails 3

不想你离开。 提交于 2019-12-07 17:27:34
问题 I had a working (and working well) ImageScience install, that did some simple resizing to various dimensions of images, and then copying them to different directories. All very simple. This small and simple routine was in a rake task. Upon update to Rails 3, this rake task will still work (it does some AR inserts and audio encoding as well), but the image_science require fails with a message like this, "require on /home//.ruby_inline/Inline_ImageScience_cdab.so failed" I've ruled out a duff