ndarray-extract-contour

WebJar for ndarray-extract-contour

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

ndarray-extract-contour
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

ndarray-extract-contour
WebJar for ndarray-extract-contour
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/scijs/ndarray-extract-contour

Скачать ndarray-extract-contour

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/ndarray-extract-contour/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>ndarray-extract-contour</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-extract-contour/
implementation 'org.webjars.npm:ndarray-extract-contour:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-extract-contour/
implementation ("org.webjars.npm:ndarray-extract-contour:1.0.1")
'org.webjars.npm:ndarray-extract-contour:jar:1.0.1'
<dependency org="org.webjars.npm" name="ndarray-extract-contour" rev="1.0.1">
  <artifact name="ndarray-extract-contour" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='ndarray-extract-contour', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "ndarray-extract-contour" % "1.0.1"
[org.webjars.npm/ndarray-extract-contour "1.0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : typedarray-pool jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

ndarray-extract-contour

General 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.

As an example of a nicer interface built using this module, take a look at surface-nets.

Example/documentation

var generateContour = require("ndarray-extract-contour")

var getContour = generateContour({
  order: [1,0],         //Order of array iteration
  arrayArguments: 2,    //Take two arrays as input
  scalarArguments: 1,   //Take one extra scalar argument

  //Function to determine phase of a grid cell
  phase: function(a, b, s) { 

    //a = first array argument
    //b = second array argument
    //s = scalar argument

    return a
  },

  //Callback for adding vertex to array
  vertex: function(x,y, a00,a01,a10,a11,  b00,b01,b10,b11,  p00,p01,p10,p11, s) {

    //Geometry:
    //
    //   a11 ---- a10
    //    |        |
    //    |        |
    //    |        |
    //   a01 ---- a00
    //

    //Arguments:

    // x,y,...  = coordinates of vertex in grid index
    // a00,a01,...  = components of first array
    // b00,b01,...  = components of second array
    // p00,p01,...  = phase of all nearby cells
    // s,... = optional scalar arguments
    //
  },

  //Callback for adding cell
  cell: function(v0,v1,  a0,a1,  b0,b1,  p0,p1,  s) {

    // Geometry:
    //
    //       v0
    //       |
    //  p0   |    p1
    //       |
    //       v1


    //Arguments:
    //  v0,v1,...  = coordinates of vertices of cuboid cell
    //  a0,a1  = first array values on front/back cell
    //  b0,b1  = second array values on front/back cell
    //  p0,p1  = phase values for front/back cell
    //  s,... = optional scalar arguments
  }
})


//How to use it:
testContour(A, B, S)

Install

npm install ndarray-extract-contour

Credits

(c) 2014 Mikola Lysenko. MIT License

org.webjars.npm

Версии библиотеки

Версия
1.0.1