parry3d/transformation/
mod.rs

1//! Transformation, simplification and decomposition of meshes.
2
3#[cfg(feature = "dim3")]
4pub(crate) use self::convex_hull2::convex_hull2_idx;
5#[cfg(feature = "dim2")]
6pub use self::convex_hull2::{convex_hull2 as convex_hull, convex_hull2_idx as convex_hull_idx};
7#[cfg(all(feature = "dim3", feature = "std"))]
8pub use self::convex_hull3::check_convex_hull;
9#[cfg(feature = "dim3")]
10pub use self::convex_hull3::{convex_hull, try_convex_hull, ConvexHullError};
11#[cfg(all(feature = "dim3", feature = "spade"))]
12pub use self::mesh_intersection::{
13    intersect_meshes, intersect_meshes_with_tolerances, MeshIntersectionError,
14    MeshIntersectionTolerances,
15};
16pub use self::polygon_intersection::{
17    convex_polygons_intersection, convex_polygons_intersection_points,
18    convex_polygons_intersection_points_with_tolerances,
19    convex_polygons_intersection_with_tolerances, polygons_intersection,
20    polygons_intersection_points,
21};
22
23mod convex_hull2;
24#[cfg(feature = "dim3")]
25mod convex_hull3;
26pub(crate) mod convex_hull_utils;
27
28mod polygon_intersection;
29/// Approximate convex decomposition using the VHACD algorithm.
30pub mod vhacd;
31/// Voxelization of a 2D polyline or 3D triangle mesh.
32pub mod voxelization;
33
34#[cfg(feature = "dim2")]
35pub(crate) mod ear_clipping;
36#[cfg(feature = "dim2")]
37pub(crate) mod hertel_mehlhorn;
38#[cfg(feature = "dim2")]
39pub use hertel_mehlhorn::{hertel_mehlhorn, hertel_mehlhorn_idx};
40#[cfg(all(feature = "dim3", feature = "spade"))]
41mod mesh_intersection;
42#[cfg(feature = "dim3")]
43mod to_outline;
44#[cfg(feature = "dim2")]
45mod to_polyline;
46mod to_trimesh;
47pub mod utils;
48
49#[cfg(feature = "wavefront")]
50mod wavefront;