diff --git a/ncollide_procedural/Cargo.toml b/ncollide_procedural/Cargo.toml index 002c55ede..12f85a671 100644 --- a/ncollide_procedural/Cargo.toml +++ b/ncollide_procedural/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ncollide_procedural" -version = "0.2.0" +version = "0.2.1" authors = [ "Sébastien Crozet " ] description = "2 and 3-dimensional collision detection library in Rust: module for procedural generation of discrete geometric objects." diff --git a/ncollide_procedural/bezier.rs b/ncollide_procedural/bezier.rs index 698a5d968..52082e37a 100644 --- a/ncollide_procedural/bezier.rs +++ b/ncollide_procedural/bezier.rs @@ -11,7 +11,7 @@ pub fn bezier_curve_at

(control_points: &[P], t: ::Scalar, ca where P: Point { if control_points.len() > cache.len() { let diff = control_points.len() - cache.len(); - cache.extend(iter::repeat(na::orig()).take(diff)) + cache.extend(iter::repeat(na::orig::

()).take(diff)) } let cache = &mut cache[..]; @@ -47,7 +47,7 @@ pub fn bezier_surface_at

( where P: Point { if vcache.len() < nvpoints { let diff = nvpoints - vcache.len(); - vcache.extend(iter::repeat(na::orig()).take(diff)); + vcache.extend(iter::repeat(na::orig::

()).take(diff)); } // FIXME: start with u or v, depending on which dimension has more control points. diff --git a/ncollide_procedural/utils.rs b/ncollide_procedural/utils.rs index da9699702..103ff9ad1 100644 --- a/ncollide_procedural/utils.rs +++ b/ncollide_procedural/utils.rs @@ -215,7 +215,7 @@ pub fn compute_normals

(coordinates: &[P], faces: &[Pnt3], normals: &mut // Reinit all normals to zero. normals.clear(); - normals.extend(iter::repeat(na::zero()).take(coordinates.len())); + normals.extend(iter::repeat(na::zero::()).take(coordinates.len())); // Accumulate normals ... for f in faces.iter() {