{"_id":"ndarray-extract-contour","_rev":"12-d047cc084dea5b4e211f7f891d22934c","name":"ndarray-extract-contour","description":"Generic contour extraction library for surface nets/dual contouring","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"ndarray-extract-contour","version":"1.0.0","description":"Generic contour extraction library for surface nets/dual contouring","main":"contour.js","directories":{"test":"test"},"dependencies":{"typedarray-pool":"^1.0.0"},"devDependencies":{"tape":"~2.12.2","js-beautify":"~1.4.2","ndarray-pack":"~1.0.1"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-extract-contour.git"},"keywords":["ndarray","contour","extraction"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/ndarray-extract-contour/issues"},"homepage":"https://github.com/mikolalysenko/ndarray-extract-contour","_id":"ndarray-extract-contour@1.0.0","dist":{"shasum":"4b5cff2689ded5f2f83fa67567a1fc41c9611b21","tarball":"https://registry.npmjs.org/ndarray-extract-contour/-/ndarray-extract-contour-1.0.0.tgz","integrity":"sha512-TSCo+whIIh7IFnQrxMeN7cp6nIDSgxlSEi3unZZ+vlVc0CmKv7Vniql4bq1OfiCKcSqOJ6gQYCo0q4p7iqjPOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID23oKwc3obP87V0KCAE/oTNfndvCDQ4DiuPZerll8QWAiBGR5JYZjRACjIYo0aBbCXFMUXikmj5zr2bb+wHiZuUjw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.0.1":{"name":"ndarray-extract-contour","version":"1.0.1","description":"Generic contour extraction library for surface nets/dual contouring","main":"contour.js","directories":{"test":"test"},"dependencies":{"typedarray-pool":"^1.0.0"},"devDependencies":{"tape":"~2.12.2","js-beautify":"~1.4.2","ndarray-pack":"~1.0.1"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-extract-contour.git"},"keywords":["ndarray","contour","extraction"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/ndarray-extract-contour/issues"},"homepage":"https://github.com/mikolalysenko/ndarray-extract-contour","_id":"ndarray-extract-contour@1.0.1","dist":{"shasum":"0aee113a3a33b226b90c4888cf877bf4751305e4","tarball":"https://registry.npmjs.org/ndarray-extract-contour/-/ndarray-extract-contour-1.0.1.tgz","integrity":"sha512-iDngNoFRqrqbXGLP8BzyGrybw/Jnkkn7jphzc3ZFfO7dfmpL1Ph74/6xCi3xSvJFyVW90XpMnd766jTaRPsTCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZqSeddKDiqbhR6ePDGgQSvFB78/PJobwnK5SkKsT5GAIgUpYnKrhSLouvDlnQHi4TSMRga77RS2ELglnnAjMppeg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]}},"readme":"ndarray-extract-contour\n=======================\nGeneral purpose contour extraction routine generator.  This library has a really horrible interface, but it is pretty flexible.  It is mostly useful as an internal component, and should not be used generally unless you know what you are doing.\n\nAs an example of a nicer interface built using this module, take a look at [surface-nets](https://github.com/mikolalysenko/surface-nets).\n\n# Example/documentation\n\n```javascript\nvar generateContour = require(\"ndarray-extract-contour\")\n\nvar getContour = generateContour({\n  order: [1,0],         //Order of array iteration\n  arrayArguments: 2,    //Take two arrays as input\n  scalarArguments: 1,   //Take one extra scalar argument\n\n  //Function to determine phase of a grid cell\n  phase: function(a, b, s) { \n\n    //a = first array argument\n    //b = second array argument\n    //s = scalar argument\n\n    return a\n  },\n\n  //Callback for adding vertex to array\n  vertex: function(x,y, a00,a01,a10,a11,  b00,b01,b10,b11,  p00,p01,p10,p11, s) {\n\n    //Geometry:\n    //\n    //   a11 ---- a10\n    //    |        |\n    //    |        |\n    //    |        |\n    //   a01 ---- a00\n    //\n\n    //Arguments:\n\n    // x,y,...  = coordinates of vertex in grid index\n    // a00,a01,...  = components of first array\n    // b00,b01,...  = components of second array\n    // p00,p01,...  = phase of all nearby cells\n    // s,... = optional scalar arguments\n    //\n  },\n\n  //Callback for adding cell\n  cell: function(v0,v1,  a0,a1,  b0,b1,  p0,p1,  s) {\n\n    // Geometry:\n    //\n    //       v0\n    //       |\n    //  p0   |    p1\n    //       |\n    //       v1\n\n\n    //Arguments:\n    //  v0,v1,...  = coordinates of vertices of cuboid cell\n    //  a0,a1  = first array values on front/back cell\n    //  b0,b1  = second array values on front/back cell\n    //  p0,p1  = phase values for front/back cell\n    //  s,... = optional scalar arguments\n  }\n})\n\n\n//How to use it:\ntestContour(A, B, S)\n```\n\n# Install\n\n```\nnpm install ndarray-extract-contour\n```\n\n# Credits\n(c) 2014 Mikola Lysenko. MIT License","maintainers":[{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"th.v.d.gronde@hccnet.nl","name":"jaspervdg"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"pgb@andrew.cmu.edu","name":"planeshifter"},{"email":"rsreusser@gmail.com","name":"rreusser"}],"time":{"modified":"2022-11-08T10:39:54.653Z","created":"2014-04-10T05:18:38.662Z","1.0.0":"2014-04-10T05:18:38.662Z","1.0.1":"2014-05-05T18:44:54.764Z"},"homepage":"https://github.com/mikolalysenko/ndarray-extract-contour","keywords":["ndarray","contour","extraction"],"repository":{"type":"git","url":"git://github.com/mikolalysenko/ndarray-extract-contour.git"},"author":{"name":"Mikola Lysenko"},"bugs":{"url":"https://github.com/mikolalysenko/ndarray-extract-contour/issues"},"license":"MIT","readmeFilename":"README.md"}