Socket
Book a DemoInstallSign in
Socket

sphere-mesh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sphere-mesh

Generates subdivided spheres

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

sphere-mesh

Generates a subdivided spherical mesh, useful for testing purposes or just for creating an object for display.

Install:

npm install sphere-mesh

Usage

var resolution = 10
var radius = 10

var mesh = require("sphere-mesh")(resolution, radius)

require("sphere-mesh")([resolution, radius])

Creates a spherical mesh from a subdivided cube

  • resolution is the resolution of the mesh
  • radius is the radius of the sphere to generate (Default 1)

Returns A simplicial complex represented as a json object with two properties:

  • positions the positions of the spherical mesh
  • cells the cells of the spherical mesh

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

sphere

FAQs

Package last updated on 25 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts