Skip to content

Commit

Permalink
Fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Oct 26, 2018
1 parent 3f1373a commit fab0656
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: RCSF
Type: Package
Title: Airborne LiDAR Filtering Method Based on Cloth Simulation
Version: 1.0.0
Date: 2018-08-24
Date: 2018-10-24
Authors@R: c(
person("Jean-Romain", "Roussel", email = "[email protected]", role = c("aut", "cre", "cph")),
person("Jianbo", "Qi", email = "[email protected]", role = c("aut", "cph")))
Expand All @@ -11,11 +11,10 @@ Description: Cloth Simulation Filter (CSF) is an airborne LiDAR (Light Detection
between the cloth nodes and the corresponding LiDAR points, the locations of the cloth nodes can be
determined to generate an approximation of the ground surface.
Depends: R (>= 3.1.0)
Suggests: lidR
Suggests: testthat
License: Apache License 2.0
Encoding: UTF-8
LazyData: true
LinkingTo: Rcpp
Imports: Rcpp
RoxygenNote: 6.1.0
Suggests: testthat
2 changes: 1 addition & 1 deletion src/Cloth.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <math.h>
#include <vector>
#include <iostream>
#include <omp.h>
//#include <omp.h>
#include <iostream>
#include <sstream>
#include <list>
Expand Down
16 changes: 15 additions & 1 deletion src/Particle.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,21 @@ class Particle {
tmpDist = MAX_INF;
}

Particle() {}
Particle() :
movable(true),
mass(1),
acceleration(Vec3(0, 0, 0)),
accumulated_normal(Vec3(0, 0, 0)),
pos(Vec3(0, 0, 0)),
old_pos(Vec3(0, 0, 0)) {
isVisited = false;
neibor_count = 0;
pos_x = 0;
pos_y = 0;
c_pos = 0;
nearestPointHeight = MIN_INF;
tmpDist = MAX_INF;
}

bool isMovable() {
return movable;
Expand Down

0 comments on commit fab0656

Please sign in to comment.