mirror of https://github.com/CGAL/cgal
Rename some variables to avoid shadowing warnings with SunCC.
This commit is contained in:
parent
ee0cee3fa4
commit
ac1af9878b
|
|
@ -136,13 +136,13 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void place_stream_lines(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
void place_stream_lines(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
||||||
const int & sampling_step, const bool & step_by_step = false);
|
const int & sampling_step, const bool & step_by_step = false);
|
||||||
bool get_next_seed_point(FT & distanceg, Point_2 & seed_point);
|
bool get_next_seed_point(FT & distanceg, Point_2 & seed_point_);
|
||||||
FT find_smallest_circle(const Vertex_handle & pVertex_handle);
|
FT find_smallest_circle(const Vertex_handle & pVertex_handle);
|
||||||
Vertex_handle insert_point(const Point_2 & pPoint, FT& fDist,bool bDistanceCalculation);
|
Vertex_handle insert_point(const Point_2 & pPoint, FT& fDist,bool bDistanceCalculation);
|
||||||
Vertex_handle insert_point(const Point_2 & pPoint, const Face_handle & m_Face_handle, FT& fDist,
|
Vertex_handle insert_point(const Point_2 & pPoint, const Face_handle & m_Face_handle, FT& fDist,
|
||||||
bool bDistanceCalculation);
|
bool bDistanceCalculation);
|
||||||
void integrate_streamline(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
void integrate_streamline(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
||||||
Point_container_2& stl, Point_2& seed_point, Vertex_container_2& stl_vertices, const int & sampling_step);
|
Point_container_2& stl, Point_2& seed_point_, Vertex_container_2& stl_vertices, const int & sampling_step);
|
||||||
void integrate_forward(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
void integrate_forward(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator,
|
||||||
Point_container_2& stl,Point_2& seed_point,
|
Point_container_2& stl,Point_2& seed_point,
|
||||||
Vertex_container_2& stl_vertices, const int & sampling_step);
|
Vertex_container_2& stl_vertices, const int & sampling_step);
|
||||||
|
|
@ -298,9 +298,9 @@ bool Stream_lines_2<VectorField_2, Integrator_2>::continue_next(const Vector_fie
|
||||||
template <class VectorField_2, class Integrator_2>
|
template <class VectorField_2, class Integrator_2>
|
||||||
void
|
void
|
||||||
Stream_lines_2<VectorField_2,Integrator_2>::integrate_streamline(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator, Point_container_2& stl, Point_2&
|
Stream_lines_2<VectorField_2,Integrator_2>::integrate_streamline(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator, Point_container_2& stl, Point_2&
|
||||||
seed_point, Vertex_container_2& stl_vertices, const int & sampling_step)
|
seed_point_, Vertex_container_2& stl_vertices, const int & sampling_step)
|
||||||
{
|
{
|
||||||
integrate_forward(vector_field_2, integrator, stl, seed_point, stl_vertices, sampling_step);
|
integrate_forward(vector_field_2, integrator, stl, seed_point_, stl_vertices, sampling_step);
|
||||||
integrate_backward(vector_field_2, integrator, stl, stl_vertices, sampling_step);
|
integrate_backward(vector_field_2, integrator, stl, stl_vertices, sampling_step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -356,7 +356,7 @@ Stream_lines_2<VectorField_2,Integrator_2>::insert_point(const Point_2 & pPoint,
|
||||||
|
|
||||||
template <class VectorField_2, class Integrator_2>
|
template <class VectorField_2, class Integrator_2>
|
||||||
void
|
void
|
||||||
Stream_lines_2<VectorField_2, Integrator_2>::integrate_forward(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator, Point_container_2& stl, Point_2& seed_point, Vertex_container_2& stl_vertices, const int & sampling_step)
|
Stream_lines_2<VectorField_2, Integrator_2>::integrate_forward(const Vector_field_2 & vector_field_2, const Integrator_2 & integrator, Point_container_2& stl, Point_2& seed_point_, Vertex_container_2& stl_vertices, const int & sampling_step)
|
||||||
{
|
{
|
||||||
int sampling = 0; // sampling step;
|
int sampling = 0; // sampling step;
|
||||||
int insertion = 0; // insertion order;
|
int insertion = 0; // insertion order;
|
||||||
|
|
@ -367,12 +367,12 @@ Stream_lines_2<VectorField_2, Integrator_2>::integrate_forward(const Vector_fiel
|
||||||
Point_2 pPoint1;
|
Point_2 pPoint1;
|
||||||
bool bEnd = false;
|
bool bEnd = false;
|
||||||
FT dist;
|
FT dist;
|
||||||
Point_2 new_point = Point_2 (seed_point.x(), seed_point.y());
|
Point_2 new_point = Point_2 (seed_point_.x(), seed_point_.y());
|
||||||
Vertex_handle m_Vertex_handle = insert_point(new_point, dist, true);
|
Vertex_handle m_Vertex_handle = insert_point(new_point, dist, true);
|
||||||
stl_vertices.push_front(m_Vertex_handle);
|
stl_vertices.push_front(m_Vertex_handle);
|
||||||
stl.push_front(new_point);
|
stl.push_front(new_point);
|
||||||
number_of_points++;
|
number_of_points++;
|
||||||
Point_2 old_point = seed_point;
|
Point_2 old_point = seed_point_;
|
||||||
insertion_step = (int) (((dist)-fSepStl_seed) / (std::max)((FT) sampling_step,vector_field_2.get_integration_step()));
|
insertion_step = (int) (((dist)-fSepStl_seed) / (std::max)((FT) sampling_step,vector_field_2.get_integration_step()));
|
||||||
if (insertion_step < 0) insertion_step = 0;
|
if (insertion_step < 0) insertion_step = 0;
|
||||||
while (!bEnd)
|
while (!bEnd)
|
||||||
|
|
@ -764,7 +764,7 @@ template <class VectorField_2, class Integrator_2>
|
||||||
inline
|
inline
|
||||||
bool
|
bool
|
||||||
Stream_lines_2<VectorField_2, Integrator_2>::get_next_seed_point(FT &
|
Stream_lines_2<VectorField_2, Integrator_2>::get_next_seed_point(FT &
|
||||||
distance, Point_2 & seed_point)
|
distance, Point_2 & seed_point_)
|
||||||
{
|
{
|
||||||
Vertex_handle v0, v1, v2;
|
Vertex_handle v0, v1, v2;
|
||||||
Face_handle fr;
|
Face_handle fr;
|
||||||
|
|
@ -780,7 +780,7 @@ Stream_lines_2<VectorField_2, Integrator_2>::get_next_seed_point(FT &
|
||||||
pq.pop();
|
pq.pop();
|
||||||
b0 = m_DT.is_face(v0,v1,v2,fr);
|
b0 = m_DT.is_face(v0,v1,v2,fr);
|
||||||
if (b0){
|
if (b0){
|
||||||
seed_point = m_Pq_element.fourth.first;}
|
seed_point_ = m_Pq_element.fourth.first;}
|
||||||
b = (!pq.empty());
|
b = (!pq.empty());
|
||||||
}while ((b)&&(!b0));
|
}while ((b)&&(!b0));
|
||||||
Biggest_circle = m_Pq_element;
|
Biggest_circle = m_Pq_element;
|
||||||
|
|
@ -824,9 +824,8 @@ template <class VectorField_2, class Integrator_2>
|
||||||
void
|
void
|
||||||
Stream_lines_2<VectorField_2, Integrator_2>::print_stream_lines_eps(std::ofstream & fw)
|
Stream_lines_2<VectorField_2, Integrator_2>::print_stream_lines_eps(std::ofstream & fw)
|
||||||
{
|
{
|
||||||
typename Stream_line_container_2::iterator begin_iterator;
|
typename Stream_line_container_2::iterator it;
|
||||||
Stream_line_container_2 stl_container_temp = stl_container;
|
Stream_line_container_2 stl_container_temp = stl_container;
|
||||||
Point_container_2 stl;
|
|
||||||
fw << "%!PS-Adobe-2.0 EPSF-2.0\n";
|
fw << "%!PS-Adobe-2.0 EPSF-2.0\n";
|
||||||
fw << "%%BoundingBox: 0 0" << " " << max_x - min_x << " " << max_y - min_y << "\n";
|
fw << "%%BoundingBox: 0 0" << " " << max_x - min_x << " " << max_y - min_y << "\n";
|
||||||
fw << "gsave\n";
|
fw << "gsave\n";
|
||||||
|
|
@ -834,10 +833,10 @@ Stream_lines_2<VectorField_2, Integrator_2>::print_stream_lines_eps(std::ofstrea
|
||||||
fw << 0.5 << " setlinewidth\n";
|
fw << 0.5 << " setlinewidth\n";
|
||||||
fw << 0.0 << " " << 0.0 << " " << 0.0 << " setrgbcolor\n";
|
fw << 0.0 << " " << 0.0 << " " << 0.0 << " setrgbcolor\n";
|
||||||
|
|
||||||
for(begin_iterator=stl_container_temp.begin();begin_iterator!=stl_container_temp.end();begin_iterator++)
|
for(it=stl_container_temp.begin(); it!=stl_container_temp.end(); ++it)
|
||||||
{
|
{
|
||||||
typename Point_container_2::iterator begin_point_iterator = (*begin_iterator).begin();
|
typename Point_container_2::iterator begin_point_iterator = (*it).begin();
|
||||||
typename Point_container_2::iterator end_point_iterator = (*begin_iterator).end();
|
typename Point_container_2::iterator end_point_iterator = (*it).end();
|
||||||
|
|
||||||
FT i_prec = (*begin_point_iterator).x() - min_x;
|
FT i_prec = (*begin_point_iterator).x() - min_x;
|
||||||
FT j_prec = (*begin_point_iterator).y() - min_y;
|
FT j_prec = (*begin_point_iterator).y() - min_y;
|
||||||
|
|
@ -864,16 +863,15 @@ template <class VectorField_2, class Integrator_2>
|
||||||
void
|
void
|
||||||
Stream_lines_2<VectorField_2, Integrator_2>::print_stream_lines(std::ofstream & fw)
|
Stream_lines_2<VectorField_2, Integrator_2>::print_stream_lines(std::ofstream & fw)
|
||||||
{
|
{
|
||||||
typename Stream_line_container_2::iterator begin_iterator;
|
typename Stream_line_container_2::iterator it;
|
||||||
Stream_line_container_2 stl_container_temp = stl_container;
|
Stream_line_container_2 stl_container_temp = stl_container;
|
||||||
Point_container_2 stl;
|
|
||||||
fw << max_x - min_x << " " << max_y - min_y << "\n";
|
fw << max_x - min_x << " " << max_y - min_y << "\n";
|
||||||
fw << stl_container.size() << "\n";
|
fw << stl_container.size() << "\n";
|
||||||
for(begin_iterator=stl_container_temp.begin();begin_iterator!=stl_container_temp.end();begin_iterator++)
|
for(it=stl_container_temp.begin(); it!=stl_container_temp.end(); ++it)
|
||||||
{
|
{
|
||||||
fw << (*begin_iterator).size() << "\n";
|
fw << (*it).size() << "\n";
|
||||||
typename Point_container_2::iterator begin_point_iterator = (*begin_iterator).begin();
|
typename Point_container_2::iterator begin_point_iterator = (*it).begin();
|
||||||
typename Point_container_2::iterator end_point_iterator = (*begin_iterator).end();
|
typename Point_container_2::iterator end_point_iterator = (*it).end();
|
||||||
FT i , j;
|
FT i , j;
|
||||||
for(;begin_point_iterator!=end_point_iterator;begin_point_iterator++){
|
for(;begin_point_iterator!=end_point_iterator;begin_point_iterator++){
|
||||||
Point_2 p = *begin_point_iterator;
|
Point_2 p = *begin_point_iterator;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue