Skip to content

Commit dbe1d6b

Browse files
committed
Change nalgebra imports
1 parent 8f1f2f6 commit dbe1d6b

File tree

16 files changed

+22
-22
lines changed

16 files changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Version 0.2.0
22

3-
- Added support for reading PLY files (https://github.com/w1th0utnam3/splashsurf/pull/1)
3+
- Add support for reading PLY files (https://github.com/w1th0utnam3/splashsurf/pull/1)
4+
- Update dependencies
5+
- Re-export `nalgebra` from lib, use this from binary
46

57
## Version 0.1.0
68

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

splashsurf/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ homepage = "https://github.com/w1th0utnam3/splashsurf"
1313
repository = "https://github.com/w1th0utnam3/splashsurf"
1414

1515
[dependencies]
16-
splashsurf_lib = { path = "../splashsurf_lib", version = "0.1" }
16+
splashsurf_lib = { path = "../splashsurf_lib", version = "0.2" }
1717
structopt = "0.3"
1818
log = "0.4"
1919
fern = "0.6"
2020
chrono = "0.4"
2121
anyhow = "1.0"
2222
coarse-prof = "0.2"
2323
vtkio = "0.3"
24-
nalgebra = "0.23"
2524
num = "0.3"
2625
rayon = "1.5"
2726
ply-rs = "0.1.3"

splashsurf/src/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use std::io::{BufReader, BufWriter, Write};
44
use std::path::Path;
55

66
use anyhow::{anyhow, Context};
7-
use na::Vector3;
87
use ply_rs as ply;
98
use ply_rs::ply::Property;
9+
use splashsurf_lib::nalgebra::Vector3;
1010
use vtkio::model::{DataSet, Version, Vtk};
1111
use vtkio::{export_be, import_be};
1212

splashsurf/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
extern crate nalgebra as na;
21
extern crate ply_rs;
32

43
mod io;
@@ -11,8 +10,8 @@ use std::path::PathBuf;
1110

1211
use anyhow::{anyhow, Context};
1312
use log::{error, info};
14-
use na::Vector3;
1513
use rayon::prelude::*;
14+
use splashsurf_lib::nalgebra::Vector3;
1615
use splashsurf_lib::AxisAlignedBoundingBox3d;
1716
use structopt::StructOpt;
1817

splashsurf/src/reconstruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::path::Path;
33
use anyhow::{anyhow, Context};
44
use coarse_prof::profile;
55
use log::info;
6-
use na::Vector3;
76
use splashsurf_lib::mesh::PointCloud3d;
7+
use splashsurf_lib::nalgebra::Vector3;
88
use splashsurf_lib::{density_map, Index, Real};
99

1010
use crate::io;

splashsurf_lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "splashsurf_lib"
3-
version = "0.1.2"
3+
version = "0.2.0"
44
authors = ["Fabian Löschner <loeschner@cs.rwth-aachen.de>"]
55
license = "MIT"
66
description = "Library for surface reconstruction of SPH particle data"

splashsurf_lib/src/aabb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::fmt;
22
use std::fmt::Debug;
33

4-
use na::allocator::Allocator;
5-
use na::{DefaultAllocator, DimName, VectorN, U2, U3};
4+
use nalgebra::allocator::Allocator;
5+
use nalgebra::{DefaultAllocator, DimName, VectorN, U2, U3};
66

77
use crate::Real;
88

splashsurf_lib/src/density_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use coarse_prof::profile;
22
use dashmap::ReadOnlyView as ReadDashMap;
33
use log::{info, warn};
4-
use na::Vector3;
4+
use nalgebra::Vector3;
55
use rayon::prelude::*;
66

77
use crate::kernel::DiscreteSquaredDistanceCubicKernel;

splashsurf_lib/src/kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn test_cubic_kernel_r_compact_support() {
4747

4848
#[test]
4949
fn test_cubic_kernel_r_integral() {
50-
use na::Vector3;
50+
use nalgebra::Vector3;
5151

5252
let hs = [0.025, 0.1, 2.0];
5353
let n = 10;

0 commit comments

Comments
 (0)