Skip to content

OpenMesh C++ binding to NodeJS via node-addon-napi

Notifications You must be signed in to change notification settings

BiancaZYCao/TriMesh4Js

Repository files navigation

TriMesh4Js

OpenMesh binding via node-addon-napi

Node.js wrapper for OpenMesh C++ library using node-addon-api.

TriMesh-js is a Node.js addon, written in C++, that can be loaded into Node.js using the require() function, and used just as if they were an ordinary Node.js module.

The aim of the project is to provide a FFI between JavaScript running in Node.js and OpenMesh C++ library.

Prerequisites

Before starting to use this you need to assure you have the following prerequisites:

Installation

Getting started

Examples

To view the examples, check AddonTriMeshTest.js

Project Status

Plugins implementation - TriMesh:

  • Init a TriMesh
  • Add Vertex
  • Add Face By Vertex Id
  • Set Point By Vertex Id
  • Add Face
  • Set Point
  • Get Points
  • VertexVertexIter (to find neighbouring vertex)
  • BFS NeighWeights (loop through the whole mesh)
  • More Pending ...

Tests

There is a basic test file under /test folder using mocha with assert.

License

About

OpenMesh C++ binding to NodeJS via node-addon-napi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published