Changed IPToP calls into IPiToPf, Markers passed by reference
This commit is contained in:
parent
0f2d864e05
commit
dfc6417426
|
@ -98,7 +98,7 @@ namespace vcg{
|
||||||
///da verificare se vanno oltre ai limiti
|
///da verificare se vanno oltre ai limiti
|
||||||
vcg::Point3i ip;
|
vcg::Point3i ip;
|
||||||
Si.PToIP(start,ip);
|
Si.PToIP(start,ip);
|
||||||
Si.IPToP(ip,goal);
|
Si.IPiToPf(ip,goal);
|
||||||
for (int i=0;i<3;i++)
|
for (int i=0;i<3;i++)
|
||||||
if(r.Direction().V(i)>0.0)
|
if(r.Direction().V(i)>0.0)
|
||||||
goal.V(i)+=Si.voxel.V(i);
|
goal.V(i)+=Si.voxel.V(i);
|
||||||
|
@ -144,8 +144,8 @@ namespace vcg{
|
||||||
assert(!end);
|
assert(!end);
|
||||||
vcg::Box3<ScalarType> bb_current;
|
vcg::Box3<ScalarType> bb_current;
|
||||||
|
|
||||||
Si.IPToP(CurrentCell,bb_current.min);
|
Si.IPiToPf(CurrentCell,bb_current.min);
|
||||||
Si.IPToP(CurrentCell+vcg::Point3i(1,1,1),bb_current.max);
|
Si.IPiToPf(CurrentCell+vcg::Point3i(1,1,1),bb_current.max);
|
||||||
|
|
||||||
CoordType inters;
|
CoordType inters;
|
||||||
Intersection_Ray_Box(bb_current,r,inters);
|
Intersection_Ray_Box(bb_current,r,inters);
|
||||||
|
@ -194,7 +194,7 @@ namespace vcg{
|
||||||
max_dist=_max_dist;
|
max_dist=_max_dist;
|
||||||
};
|
};
|
||||||
|
|
||||||
void SetMarker(TMARKER _tm)
|
void SetMarker(TMARKER & _tm)
|
||||||
{
|
{
|
||||||
tm=_tm;
|
tm=_tm;
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,7 @@ namespace vcg{
|
||||||
Spatial_Idexing &Si; //reference to spatial index algorithm
|
Spatial_Idexing &Si; //reference to spatial index algorithm
|
||||||
bool end; //true if the scan is terminated
|
bool end; //true if the scan is terminated
|
||||||
INTFUNCTOR &int_funct;
|
INTFUNCTOR &int_funct;
|
||||||
TMARKER tm;
|
TMARKER& tm;
|
||||||
|
|
||||||
std::vector<Entry_Type> Elems; //element loaded from curren cell
|
std::vector<Entry_Type> Elems; //element loaded from curren cell
|
||||||
typedef typename std::vector<Entry_Type>::reverse_iterator ElemIterator;
|
typedef typename std::vector<Entry_Type>::reverse_iterator ElemIterator;
|
||||||
|
|
Loading…
Reference in New Issue