Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fuse-vertices

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

fuse-vertices

Fuses vertices in meshes

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-72.22%
Maintainers
1
Weekly downloads
 
Created
Source

fuse-vertices

Fuses together vertices and faces in bad meshes.

Install

Via npm:

npm install fuse-vertices

Usage

Take a bad mesh, for example the Utah teapot:

var teapot = require('teapot');

And then call the method:

var repaired_teapot = require('fuse-vertices')(teapot.cells, teapot.positions, 1e-4);

require('fuse-vertices')(cells, positions, tolerance)

This function fuses together all vertices which are within tolerance distance of one another. It takes the following parameters:

  • cells a cell complex
  • positions the positions of the cells
  • tolerance fuse threshold

Returns an object with the following properties:

  • cells: The fused cells
  • positions: The positions of the fused vertices
  • vertexRelabel: A relabelling of the vertices

Credits

(c) 2013 Mikola Lysenko. BSD

FAQs

Package last updated on 10 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc