Skip to main content

rapier_cloth_core/
lib.rs

1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3
4#[cfg(any(
5    all(feature = "f32", feature = "f64"),
6    not(any(feature = "f32", feature = "f64"))
7))]
8compile_error!("rapier-cloth: select exactly one precision feature: f32 or f64");
9
10pub mod math;
11pub use math::{Real, Vec3};
12pub mod constraints;
13pub mod error;
14pub mod material;
15pub mod mesh;
16pub use error::ClothError;
17pub use material::ClothMaterial;
18pub use mesh::{ClothMesh, GridBuilder};
19pub mod garment;
20pub use garment::{Garment, GarmentLayers, TShirtPattern};
21pub mod cloth;
22pub mod collision;
23pub use collision::{ClothContactSettings, CollisionBudgetKind, CollisionLimits, CollisionWork};
24pub mod contact;
25pub mod diagnostics;
26#[cfg(feature = "implicit")]
27pub mod implicit;
28pub mod solver;
29#[cfg(feature = "implicit")]
30pub use implicit::{
31    ImplicitCapPolicy, ImplicitExecution, ImplicitOutcome, ImplicitSettings, ImplicitTermination,
32    ShellMaterial,
33};
34pub mod surface;
35pub use cloth::{Cloth, ClothHandle, ClothSet};
36pub use constraints::target::SurfaceTarget;
37pub use contact::{
38    Contact, ContactKey, ContactMotion, ContactSource, ContactStage, NoContacts, SurfaceContact,
39    SurfaceContactKey, SurfaceFeature,
40};
41pub use diagnostics::StepReport;
42pub use solver::{Solver, SolverSettings, Target};
43pub use surface::{SurfaceHit, SurfacePoint, SurfaceQueryLimits, SurfaceRay, SurfaceView};