Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heckj/meshgenerator

API to generate 3D surface meshes for Apple platforms
https://github.com/heckj/meshgenerator

3d scenekit swift

Last synced: 4 months ago
JSON representation

API to generate 3D surface meshes for Apple platforms

Awesome Lists containing this project

README

        

# MeshGenerator

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fheckj%2FMeshGenerator%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/heckj/MeshGenerator)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fheckj%2FMeshGenerator%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/heckj/MeshGenerator)
[![codecov](https://codecov.io/gh/heckj/MeshGenerator/branch/main/graph/badge.svg?token=ESYVYJ24U1)](https://codecov.io/gh/heckj/MeshGenerator)

API to generate 3D surface meshes for Apple platforms.

- [API documentation](https://heckj.github.io/MeshGenerator/documentation/meshgenerator/)

This is a bare-bones library sufficient to create surfaces meshes, and doesn't include tooling or API to generate geometries.
The library is intended to be the bare components needed for a useful API that can be used to generate geometries.

The underlying computations for vectors, normals, etc from this library use [`simd`](https://developer.apple.com/documentation/accelerate/simd) from the [`Accelerate`](https://developer.apple.com/documentation/accelerate) framework, if available.

The code owes inspiration, and considerable debt, to Nick Lockwood, creator of [Euclid](https://swiftpackageindex.com/nicklockwood/Euclid).
Portions of the code are used, under license, from the Euclid project.

The library supports only triangles as a base type of polygon for rendering into geometries. If you want to work with quads or higher order polygons, or use constructive solid geometry, please look into [Euclid](https://swiftpackageindex.com/nicklockwood/Euclid), which supports generating geometries from paths and text, constructive solid geometry, as well as geometric primitives.