@amandaghassaei/3d-mesh-utils
v1.3.0
Published
Geometry processing utility functions for 3D meshes, written in TypeScript.
Downloads
107
Maintainers
Readme
@amandaghassaei/3d-mesh-utils
Geometry processing utility functions for 3D meshes – unit tested and written in TypeScript.
Used by the following libraries:
- @amandaghassaei/stl-parser - binary or ASCII .stl format parser
- msh-parser - finite element .msh format parser
Installation
Install via npm
npm install @amandaghassaei/3d-mesh-utils
and import into your project:
import {
calcBoundingBox,
mergeVertices,
} from '@amandaghassaei/3d-mesh-utils';
Import into HTML
Import bundle/3d-mesh-utils.min.js directly into your html:
<html>
<head>
<script src="3d-mesh-utils.min.js"></script>
</head>
<body>
</body>
</html>
MESH_UTILS
will be accessible globally:
const { calcBoundingBox, mergeVertices } = MESH_UTILS;
Use
Full API documentation in docs.
License
This work is licensed under an MIT License.
Related Libraries
- @amandaghassaei/stl-parser - binary or ASCII .stl format parser
- msh-parser - finite element .msh format parser
Development
I don't have any plans to continue developing this package, but I'm happy to review pull requests if you would like to add a new feature / fix a bug.
To install dev dependencies:
npm install
To compile src
to dist
:
npm run build
Testing
To run tests:
npm run test