<commit_before>//! This module provides tools for generating meshes for simple shapes like
//! cubes and spheres. It uses an iterator-based interface that begins with a
//! unit shape and manipulates its constituent primitives like points, lines,
//! and polygons. All shapes provide position information and some can
//! additionally generate index, texture, and conjoint point information as
//! well.
//!
//! # Examples
//!
//! Generating position and index data for a scaled sphere mesh:
//!
//! ```
//! use bismuth::mesh::{MapPoints, IndexPolygons, Points, Triangulate};
//! use bismuth::mesh::sphere::UVSphere;
//!
//! let sphere = UVSphere::with_unit_radius(16, 16);
//! let positions: Vec<_> = sphere
//!     .polygons()
//!     .map_points(|point| point * 10.0)
//!     .triangulate()
//!     .points()
//!     .collect();
//! let indeces: Vec<_> = sphere.index_polygons().triangulate().points().collect();
//! ```

pub mod cube;
mod decompose;
mod generate;
mod primitive;
pub mod sphere;

pub use self::decompose::{Lines, Points, Subdivide, Tetrahedrons, Triangulate};
pub use self::generate::{ConjointPoints, IndexPolygons, TexturePolygons};
pub use self::primitive::{Line, MapPoints, Polygon, Rotate, Triangle, Quad};

#[cfg(test)]
mod tests {
    use super::*;
}<commit_msg>Fix documentation code.<commit_after>//! This module provides tools for generating meshes for simple shapes like
//! cubes and spheres. It uses an iterator-based interface that begins with a
//! unit shape and manipulates its constituent primitives like points, lines,
//! and polygons. All shapes provide position information and some can
//! additionally generate index, texture, and conjoint point information as
//! well.
//!
//! # Examples
//!
//! Generating position and index data for a scaled sphere mesh:
//!
//! ```
//! use bismuth::mesh::{ConjointPoints, IndexPolygons, Points, Triangulate};
//! use bismuth::mesh::sphere::UVSphere;
//!
//! let sphere = UVSphere::with_unit_radius(16, 16);
//! let positions: Vec<_> = sphere.conjoint_points().map(|point| point * 10.0).collect();
//! let indeces: Vec<_> = sphere.index_polygons().triangulate().points().collect();
//! ```

pub mod cube;
mod decompose;
mod generate;
mod primitive;
pub mod sphere;

pub use self::decompose::{Lines, Points, Subdivide, Tetrahedrons, Triangulate};
pub use self::generate::{ConjointPoints, IndexPolygons, TexturePolygons};
pub use self::primitive::{Line, MapPoints, Polygon, Rotate, Triangle, Quad};

#[cfg(test)]
mod tests {
    use super::*;
}
{'fraction_non_alphanumeric': 0.15378517637732858, 'fraction_numerical': 0.005548949663099485, 'mean_word_length': 4.510917030567685, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '5783092', 'n_tokens_mistral': 799, 'n_tokens_neox': 732, 'n_words': 253}