incremental-convex-hull

WebJar for incremental-convex-hull

Лицензия

Лицензия

MIT
Группа

Группа

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

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

incremental-convex-hull
Последняя версия

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

incremental-convex-hull
WebJar for incremental-convex-hull
Ссылка на сайт

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

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

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

https://github.com/mikolalysenko/incremental-convex-hull

Скачать incremental-convex-hull

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

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

Зависимости

compile (2)

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

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

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

incremental-convex-hull

Computes the convex hull of a collection of points in general position by incremental insertion. No attempt is made to handle degeneracies.

This module is meant to be used internally by other modules for calculating convex hulls and Delaunay triangulations. You probably shouldn't call it directly unless you know what you are doing. Instead, there will (eventually) be a wrapper over this module that handles all the special cases and correctly generates a convex hull.

testling badge

build status

Example

var ch = require("incremental-convex-hull")
var points = [
  [0, 0, 0],
  [0, 0, 1],
  [0, 1, 0],
  [1, 0, 0],
  [1, 1, 1]
]
console.log(ch(points))

Output:

[ [ 0, 2, 3 ],
  [ 1, 0, 3 ],
  [ 0, 1, 2 ],
  [ 2, 4, 3 ],
  [ 4, 1, 3 ],
  [ 1, 4, 2 ] ]

Install

npm install incremental-convex-hull

API

require("incremental-convex-hull")(points[, randomInsert])

Constructs a triangulation of the convex hull of points by incremental insertion.

  • points is a list of points
  • randomInsert is a flag, which if set uses a randomized jump and walk instead of walking from the last inserted facet.

Returns A list of the boundary cells of the convex hull of the point cloud.

Notes This module works in any dimension greater than 2, though becomes pretty slow after 5d.

License

(c) 2014 Mikola Lysenko. MIT License

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

Версия
1.0.1