ncollide3d/transformation/to_trimesh/
capsule_to_trimesh.rsuse super::ToTriMesh;
use crate::procedural;
use crate::procedural::TriMesh;
use crate::shape::Capsule;
use na;
use simba::scalar::RealField;
impl<N: RealField + Copy> ToTriMesh<N> for Capsule<N> {
type DiscretizationParameter = (u32, u32);
fn to_trimesh(&self, (ntheta_subdiv, nphi_subdiv): (u32, u32)) -> TriMesh<N> {
let diameter = self.radius * na::convert(2.0f64);
let height = self.half_height * na::convert(2.0f64);
procedural::capsule(&diameter, &height, ntheta_subdiv, nphi_subdiv)
}
}