Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OpenFlipper-Staging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenFlipper-Free
OpenFlipper-Staging
Commits
8cfd1f76
Commit
8cfd1f76
authored
8 years ago
by
tenter
Browse files
Options
Downloads
Patches
Plain Diff
fix infinite looping (missing change from previous commit)
parent
1adaac77
No related branches found
No related tags found
1 merge request
!3
fix infinite looping (missed file in last commit)
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Plugin-PoissonReconstruction/PoissonReconstruction/MultiGridOctreeData.inl
+17
-5
17 additions, 5 deletions
...onstruction/PoissonReconstruction/MultiGridOctreeData.inl
with
17 additions
and
5 deletions
Plugin-PoissonReconstruction/PoissonReconstruction/MultiGridOctreeData.inl
+
17
−
5
View file @
8cfd1f76
...
...
@@ -1237,26 +1237,37 @@ int Octree<Degree>::setTreeMemory( std::vector< Real >& _pts_stream, int maxDept
}
normals = new std::vector< Point3D<Real> >();
unsigned int curPt = 0;
cnt = 0;
// pointStream->reset();
Point3D< Real > p , n;
while (
cn
t < _pts_stream.size()/(2*DIMENSION) )
while (
curP
t < _pts_stream.size()/(2*DIMENSION) )
// while( pointStream->nextPoint( p , n ) )
{
for ( int i = 0; i < DIMENSION; ++i )
{
p[i] = _pts_stream[2*DIMENSION*c
n
t + i];
n[i] = _pts_stream[2*DIMENSION*c
n
t + DIMENSION + i];
p[i] = _pts_stream[2*DIMENSION*c
urP
t + i];
n[i] = _pts_stream[2*DIMENSION*c
urP
t + DIMENSION + i];
}
n *= Real(-1.);
p = xForm * p , n = xFormN * n;
p = ( p - _center ) / _scale;
if( !_inBounds(p) ) continue;
if (!_inBounds(p))
{
// skip point
++curPt;
continue;
}
myCenter = Point3D< Real >( Real(0.5) , Real(0.5) , Real(0.5) );
myWidth = Real(1.0);
Real l = Real( Length( n ) );
if( l!=l || l<=EPSILON ) continue;
if (l != l || l <= EPSILON)
{
// skip point
++curPt;
continue;
}
if( !useConfidence ) n /= l;
l = Real(1.);
...
...
@@ -1338,6 +1349,7 @@ int Octree<Degree>::setTreeMemory( std::vector< Real >& _pts_stream, int maxDept
d++;
}
}
curPt++;
cnt++;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment