gl-cone3d

WebJar for gl-cone3d

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-cone3d
Last Version

Last Version

1.5.2
Release Date

Release Date

Type

Type

jar
Description

Description

gl-cone3d
WebJar for gl-cone3d
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

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

Download gl-cone3d

How to add to project

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

Dependencies

compile (12)

Group / Artifact Type Version
org.webjars.npm : gl-vec3 jar [1.1.3,2)
org.webjars.npm : gl-shader jar [4.2.1,5)
org.webjars.npm : gl-buffer jar [2.1.2,3)
org.webjars.npm : gl-vao jar [1.3.0,2)
org.webjars.npm : glsl-inverse jar [1.0.0,2)
org.webjars.npm : glslify jar [7.0.0,8)
org.webjars.npm : gl-mat4 jar [1.2.0,2)
org.webjars.npm : gl-texture2d jar [2.1.0,3)
org.webjars.npm : glsl-specular-cook-torrance jar [2.0.1,3)
org.webjars.npm : glsl-out-of-range jar [1.0.4,2)
org.webjars.npm : ndarray jar [1.0.18,2)
org.webjars.npm : colormap jar [2.3.1,3)

Project Modules

There are no modules declared in this project.

gl-cone3d

Visualization module for vector fields.

Example

var createScene    = require('gl-plot3d')
var createConePlot = require('gl-cone3d')
var createMesh     = createConePlot.createConeMesh

var wind           = require('dataset-wind')

var scene = createScene()

var bounds = [];

var conePlot = createConePlot({
    positions: wind.positions,
    vectors: wind.vectors,
    coneSize: 4,
    colormap: 'portland'
}, bounds)

var mesh = createMesh(gl, conePlot)

scene.add(mesh)

Try out the example in your browser

Install

npm i gl-cone3d

Basic interface

Constructor

var conePlot = require('gl-cone3d')(params, bounds)

Creates a cone plot of a vector field.

  • params is an object that has the following properties:

    • positions (Required) An array of positions determining the location of the cones, encoded as arrays
    • vectors (Required) An array of vectors for the vector field, encoded as arrays
    • coneSize Size of the cones, scaled so that the reference cone size for the maximum vector magnitude is 1
    • absoluteConeSize Size of the cones, scaled so that the reference cone size for vector magnitude 1 is one grid unit.
    • coneOffset The position of the cone with regard to the cone location. Ranges from 0 to 1 where 0 puts the center of the cone base at the cone location, and 1 puts the tip at the cone location.
    • colormap Colormap for the cone plot.

Returns A cone plot object that can be passed to gl-mesh3d.

Credits

(c) 2013-2017 Mikola Lysenko, Ilmari Heikkinen. MIT License

org.webjars.npm

Versions

Version
1.5.2
1.5.1
1.3.1
1.3.0
1.2.2
1.2.1