use alga::general::Real; use na::{Point3, Vector3}; use polyline::Polyline; use path::PolylineCompatibleCap; /// A cap that renders nothing. pub struct NoCap; impl NoCap { /// Creates a new `NoCap`. #[inline] pub fn new() -> NoCap { NoCap } } impl PolylineCompatibleCap for NoCap { fn gen_start_cap( &self, _: u32, _: &Polyline>, _: &Point3, _: &Vector3, _: bool, _: &mut Vec>, _: &mut Vec>, ) { } fn gen_end_cap( &self, _: u32, _: &Polyline>, _: &Point3, _: &Vector3, _: bool, _: &mut Vec>, _: &mut Vec>, ) { } }