gl-surface3d

WebJar for gl-surface3d

Лицензия

Лицензия

MIT
Группа

Группа

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

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

gl-surface3d
Последняя версия

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

1.6.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

gl-surface3d
WebJar for gl-surface3d
Ссылка на сайт

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

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

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

https://github.com/gl-vis/gl-surface3d

Скачать gl-surface3d

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

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

Зависимости

compile (19)

Идентификатор библиотеки Тип Версия
org.webjars.npm : gl-buffer jar [2.1.2,3)
org.webjars.npm : ndarray-scratch jar [1.2.0,2)
org.webjars.npm : ndarray-ops jar [1.2.2,2)
org.webjars.npm : gl-texture2d jar [2.1.0,3)
org.webjars.npm : ndarray-gradient jar [1.0.0,2)
org.webjars.npm : typedarray-pool jar [1.1.0,2)
org.webjars.npm : gl-mat4 jar [1.2.0,2)
org.webjars.npm : glsl-specular-beckmann jar [1.1.2,2)
org.webjars.npm : gl-vao jar [1.3.0,2)
org.webjars.npm : bit-twiddle jar [1.0.2,2)
org.webjars.npm : ndarray jar [1.0.18,2)
org.webjars.npm : glsl-out-of-range jar [1.0.4,2)
org.webjars.npm : binary-search-bounds jar [2.0.4,3)
org.webjars.npm : ndarray-pack jar [1.2.1,2)
org.webjars.npm : dup jar [1.0.0,2)
org.webjars.npm : gl-shader jar [4.2.1,5)
org.webjars.npm : colormap jar [2.3.1,3)
org.webjars.npm : glslify jar [7.0.0,8)
org.webjars.npm : surface-nets jar [1.0.2,2)

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

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

gl-surface3d

3D parametric surface plotting, compatible with gl-vis.

Example

var createScene       = require('gl-plot3d')
var createSurfacePlot = require('gl-surface3d')
var ndarray           = require('ndarray')
var fill              = require('ndarray-fill')
var diric             = require('dirichlet')

var scene = createScene()

//Create field
var field = ndarray(new Float32Array(512*512), [512,512])
fill(field, function(x,y) {
  return 128 * diric(10, 10.0*(x-256)/512) * diric(10, 10.0*(y-256)/512)
})

//Create surface plot
var surface = createSurfacePlot({
  gl:    scene.gl,
  field: field
})

scene.add(surface)

Here is what this should look like:

Test it in your browser (requires WebGL)

Install

npm install gl-surface3d

Basic Interface

Constructor

var surface = require('gl-surface3d')(params)

Creates a surface plot object. params is an object with any of the following parameters

  • gl is a WebGL context
  • field a new 2D field encoded as an ndarray
  • coords is an array of 3 2D fields, each encoded as ndarrays (for parameteric surfaces)
  • intensity a 2D intensity field (defaults to field or `coords[2] is not present)
  • colormap the name of the new color map for the surface (see list of names in colormap docs)
  • intensityBounds sets the intensity range for the colormap
  • ticks is a pair of arrays of ticks representing the spacing of the points for the axes of the surface
  • showSurface if set, draw the surface
  • showContour if set, draw contour lines
  • contourWidth the width fo the contour lines
  • contourTint the amount of tint of the contour lines
  • contourColor the color of the contour line tint
  • levels an array of arrays representing the level of the isolines.
  • dynamicWidth the width of the dynamic isolines
  • dynamicColors the color of the dynamic isolines
  • dynamicTint the tint of the dynamic isolines
  • vertexColor interpolate color in fragment or vertex shader, useful for discontinuous functions (ref)

Methods

surface.update(params)

Modify the surface. params is an object with the same properties as the constructor

License

(c) 2014-2015 Mikola Lysenko. MIT License.

org.webjars.npm

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

Версия
1.6.0
1.5.2
1.4.6
1.4.3
1.4.2
1.4.1
1.3.8
1.3.4