<commit_before># mikktspace

[![crates.io](https://img.shields.io/crates/v/mikktspace.svg)](https://crates.io/crates/mikktspace)
[![Build Status](https://travis-ci.org/bwasty/mikktspace-rs.svg?branch=master)](https://travis-ci.org/gltf-rs/mikktspace)

Bindings to the [Mikkelsen Tangent Space Algorithm](https://wiki.blender.org/index.php/Dev:Shading/Tangent_Space_Normal_Maps) reference implementation.

## Examples

### generate

Demonstrates generating tangents for a cube with 4 triangular faces per side.

```sh
cargo run --example generate
```

There is also an equivalent C example to check the correctness of the Rust bindings.

```sh
cd examples
cmake ../libmikktspace
make<commit_msg>Fix travis badge in readme<commit_after># mikktspace

[![crates.io](https://img.shields.io/crates/v/mikktspace.svg)](https://crates.io/crates/mikktspace)
[![Build Status](https://travis-ci.org/gltf-rs/mikktspace.svg?branch=master)](https://travis-ci.org/gltf-rs/mikktspace)

Bindings to the [Mikkelsen Tangent Space Algorithm](https://wiki.blender.org/index.php/Dev:Shading/Tangent_Space_Normal_Maps) reference implementation.

## Examples

### generate

Demonstrates generating tangents for a cube with 4 triangular faces per side.

```sh
cargo run --example generate
```

There is also an equivalent C example to check the correctness of the Rust bindings.

```sh
cd examples
cmake ../libmikktspace
make
{'fraction_non_alphanumeric': 0.13295210864903503, 'fraction_numerical': 0.0014295925661186562, 'mean_word_length': 5.278026905829597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1579591', 'n_tokens_mistral': 502, 'n_tokens_neox': 470, 'n_words': 111}