1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
// Copyright (c) 2009 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v6.1/Mesh_3/include/CGAL/Mesh_3/mesh_standard_facet_criteria.h $ // $Id: include/CGAL/Mesh_3/mesh_standard_facet_criteria.h b26b07a1242 $ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : Stephane Tayeb // //****************************************************************************** // File Description : // //****************************************************************************** #ifndef CGAL_MESH_3_MESH_STANDARD_FACET_CRITERIA_H #define CGAL_MESH_3_MESH_STANDARD_FACET_CRITERIA_H #include #include #include // for to_double #include #include namespace CGAL { namespace Mesh_3 { namespace details { template inline typename K::FT min_3(const typename K::FT& a, const typename K::FT& b, const typename K::FT& c) { return (std::min)(a, (std::min)(b,c)); } } // end namespace details // Aspect_ratio Criterion class template class Aspect_ratio_criterion : public Mesh_3::Abstract_criterion { private: typedef typename Tr::Facet Facet; typedef typename Tr::Geom_traits::FT FT; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Aspect_ratio_criterion Self; public: // Nb: the default bound of the criterion is such that the criterion // is always fulfilled Aspect_ratio_criterion(const FT angle_min = 0.) { // TODO: document that FT must constructible from a double! set_angle_min(angle_min); } protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } void set_angle_min(const FT angle_min) { if(angle_min == FT(0)) { B_ = 0; } else { B_ = std::sin (CGAL_PI * CGAL::to_double(angle_min) / 180); B_ = B_ * B_; } } virtual Is_bad do_is_bad(const Tr& tr, const Facet& f) const { CGAL_assertion (f.first->is_facet_on_surface(f.second)); CGAL_assertion (B_ != 0); typedef typename Tr::Geom_traits GT; typedef typename Tr::Bare_point Bare_point; typedef typename Tr::Weighted_point Weighted_point; typedef typename GT::Compute_squared_area_3 Area; typedef typename GT::Compute_squared_distance_3 Distance; typedef typename GT::Construct_point_3 Construct_point_3; typedef typename GT::Construct_triangle_3 Construct_triangle_3; Area area = tr.geom_traits().compute_squared_area_3_object(); Distance distance = tr.geom_traits().compute_squared_distance_3_object(); Construct_point_3 cp = tr.geom_traits().construct_point_3_object(); Construct_triangle_3 triangle = tr.geom_traits().construct_triangle_3_object(); const Weighted_point& wp1 = tr.point(f.first, (f.second+1)&3); const Weighted_point& wp2 = tr.point(f.first, (f.second+2)&3); const Weighted_point& wp3 = tr.point(f.first, (f.second+3)&3); const Bare_point& p1 = cp(wp1); const Bare_point& p2 = cp(wp2); const Bare_point& p3 = cp(wp3); const FT triangle_area = area(triangle(p1,p2,p3)); const FT d12 = distance(p1,p2); const FT d13 = distance(p1,p3); const FT d23 = distance(p2,p3); const FT min_d123 = details::min_3(d12,d13,d23); const FT aspect_ratio = 4 * triangle_area * min_d123 / (d12*d13*d23); CGAL_assertion (aspect_ratio >= 0 && aspect_ratio <= 1); if ( aspect_ratio < B_ ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (angle criterion): aspect_ratio[" << aspect_ratio << "] bound[" << B_ << "]" << std::endl; #endif return Is_bad(Quality(aspect_ratio)); } else return Is_bad(); } private: FT B_; }; // end Aspect_ratio_criterion // Curvature_adapted size Criterion class template class Curvature_size_criterion : public Mesh_3::Abstract_criterion {}; template class Uniform_curvature_size_criterion : public Curvature_size_criterion { private: typedef typename Tr::Facet Facet; typedef typename Tr::Geom_traits::FT FT; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Uniform_curvature_size_criterion Self; public: // Nb: the default bound of the criterion is such that the criterion // is always fulfilled Uniform_curvature_size_criterion(const FT b = 0) : B_(b * b) {} protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& tr, const Facet& f) const { CGAL_assertion(f.first->is_facet_on_surface(f.second)); CGAL_assertion (B_ != 0); typedef typename Tr::Geom_traits GT; typedef typename Tr::Weighted_point Weighted_point; typedef typename Tr::Bare_point Bare_point; typename GT::Construct_weighted_circumcenter_3 weighted_circumcenter = tr.geom_traits().construct_weighted_circumcenter_3_object(); const Weighted_point& p1 = tr.point(f.first, (f.second+1)&3); const Weighted_point& p2 = tr.point(f.first, (f.second+2)&3); const Weighted_point& p3 = tr.point(f.first, (f.second+3)&3); const Bare_point c = weighted_circumcenter(p1,p2,p3); const Bare_point& center = f.first->get_facet_surface_center(f.second); const FT sq_dist = tr.min_squared_distance(c, center); if ( sq_dist > B_ ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (curvature size): sq_dist[" << sq_dist << "] bound[" << B_ << "]\n"; #endif return Is_bad(Quality(B_/sq_dist)); } else return Is_bad(); } private: FT B_; }; // end Uniform_curvature_size_criterion // Variable size Criterion class template class Variable_curvature_size_criterion : public Curvature_size_criterion { private: typedef typename Tr::Facet Facet; typedef typename Tr::Geom_traits::FT FT; typedef typename Tr::Vertex::Index Index; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Variable_curvature_size_criterion Self; typedef SizingField Sizing_field; public: // Nb: the default bound of the criterion is such that the criterion // is always fulfilled Variable_curvature_size_criterion(const Sizing_field& s) : size_(s) {} protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& tr, const Facet& f) const { CGAL_assertion (f.first->is_facet_on_surface(f.second)); typedef typename Tr::Geom_traits GT; typedef typename Tr::Weighted_point Weighted_point; typedef typename Tr::Bare_point Bare_point; typename GT::Construct_weighted_circumcenter_3 weighted_circumcenter = tr.geom_traits().construct_weighted_circumcenter_3_object(); const Weighted_point& p1 = tr.point(f.first, (f.second+1)&3); const Weighted_point& p2 = tr.point(f.first, (f.second+2)&3); const Weighted_point& p3 = tr.point(f.first, (f.second+3)&3); const Bare_point c = weighted_circumcenter(p1,p2,p3); const Bare_point& ball_center = f.first->get_facet_surface_center(f.second); const Index& index = f.first->get_facet_surface_center_index(f.second); const FT sq_dist = tr.min_squared_distance(c, ball_center); const FT sq_bound = CGAL::square(size_(ball_center, 2, index)); CGAL_assertion(sq_bound > FT(0)); if ( sq_dist > sq_bound ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (curvature size): sq_dist[" << sq_dist << "] bound[" << sq_bound << "]\n"; #endif return Is_bad(Quality(sq_bound/sq_dist)); } else return Is_bad(); } private: Sizing_field size_; }; // end Variable_curvature_size_criterion // Size Criterion base class template < typename Tr, typename Visitor_ > class Facet_size_criterion : public Mesh_3::Abstract_criterion { }; // Variable size Criterion class template class Variable_size_criterion : public Facet_size_criterion { private: typedef typename Tr::Facet Facet; typedef typename Tr::Geom_traits::FT FT; typedef typename Tr::Vertex::Index Index; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Variable_size_criterion Self; typedef SizingField Sizing_field; public: // Nb: the default bound of the criterion is such that the criterion // is always fulfilled Variable_size_criterion(const Sizing_field& s) : size_(s) {} protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& tr, const Facet& f) const { CGAL_assertion (f.first->is_facet_on_surface(f.second)); typedef typename Tr::Geom_traits GT; typedef typename Tr::Bare_point Bare_point; typedef typename Tr::Weighted_point Weighted_point; typename GT::Construct_point_3 cp = tr.geom_traits().construct_point_3_object(); const Weighted_point& wp1 = tr.point(f.first, (f.second+1)&3); const Bare_point& p1 = cp(wp1); const Bare_point& ball_center = f.first->get_facet_surface_center(f.second); const Index& index = f.first->get_facet_surface_center_index(f.second); const FT sq_radius = tr.min_squared_distance(p1, ball_center); const FT sq_bound = CGAL::square(size_(ball_center, 2, index)); CGAL_assertion(sq_bound > FT(0)); if ( sq_radius > sq_bound ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (uniform size): sq_radius[" << sq_radius << "] bound[" << sq_bound << "]\n"; #endif return Is_bad(Quality(sq_bound/sq_radius)); } else return Is_bad(); } private: Sizing_field size_; }; // end Variable_size_criterion // Uniform size Criterion class template class Uniform_size_criterion : public Facet_size_criterion { private: typedef typename Tr::Facet Facet; typedef typename Tr::Geom_traits::FT FT; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Uniform_size_criterion Self; public: // Nb: the default bound of the criterion is such that the criterion // is always fulfilled Uniform_size_criterion(const FT b = 1e20, const bool is_lower_bound = false) : B_(b * b) , is_lower_bound_(is_lower_bound) {} bool is_lower_bound() const { return is_lower_bound_; } protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& tr, const Facet& f) const { CGAL_assertion (f.first->is_facet_on_surface(f.second)); CGAL_assertion (B_ != 0); typedef typename Tr::Geom_traits GT; typedef typename Tr::Bare_point Bare_point; typedef typename Tr::Weighted_point Weighted_point; typename GT::Construct_point_3 cp = tr.geom_traits().construct_point_3_object(); const Weighted_point& wp1 = tr.point(f.first, (f.second+1)&3); const Bare_point p1 = cp(wp1); const Bare_point& ball_center = f.first->get_facet_surface_center(f.second); const FT sq_radius = tr.min_squared_distance(p1, ball_center); if (!is_lower_bound() && sq_radius > B_ ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (uniform size): sq_radius[" << sq_radius << "] bound[" << B_ << "]\n"; #endif return Is_bad(Quality(B_/sq_radius)); } else if(is_lower_bound() && sq_radius <= B_) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Facet too small (uniform size): sq_radius[" << sq_radius << "] bound[" << B_ << "]\n"; #endif return Is_bad(Quality(B_/sq_radius)); } else return Is_bad(); } private: FT B_; const bool is_lower_bound_; }; // end Uniform_size_criterion template class Facet_on_surface_criterion : public Mesh_3::Abstract_criterion { private: typedef typename Tr::Facet Facet; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Facet_on_surface_criterion Self; public: /// Constructor Facet_on_surface_criterion() {} /// Destructor ~Facet_on_surface_criterion() {} protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& /* tr */, const Facet& f) const { typedef typename Tr::Vertex_handle Vertex_handle; typedef typename Tr::Cell_handle Cell_handle; const Cell_handle& ch = f.first; const int i = f.second; const Vertex_handle& v1 = ch->vertex((i+1)&3); const Vertex_handle& v2 = ch->vertex((i+2)&3); const Vertex_handle& v3 = ch->vertex((i+3)&3); // Look if vertex are on surface if ( (v1->in_dimension() > 2) || (v2->in_dimension() > 2) || (v3->in_dimension() > 2) ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (on surface criterion)" << std::endl; #endif return Is_bad(Quality(1)); } else return Is_bad(); } }; // end class Facet_on_surface_criterion template class Facet_on_same_surface_criterion : public Mesh_3::Abstract_criterion { private: typedef typename Tr::Facet Facet; typedef Mesh_3::Abstract_criterion Base; typedef typename Base::Quality Quality; typedef typename Base::Is_bad Is_bad; typedef Facet_on_same_surface_criterion Self; public: /// Constructor Facet_on_same_surface_criterion() {} /// Destructor virtual ~Facet_on_same_surface_criterion() {} protected: virtual void do_accept(Visitor_& v) const { v.visit(*this); } virtual Self* do_clone() const { // Call copy ctor on this return new Self(*this); } virtual Is_bad do_is_bad(const Tr& /* tr */, const Facet& f) const { typedef typename Tr::Vertex_handle Vertex_handle; typedef typename Tr::Cell_handle Cell_handle; typedef typename Tr::Vertex::Index Index; const Cell_handle& ch = f.first; const int& i = f.second; const Vertex_handle& v1 = ch->vertex((i+1)&3); const Vertex_handle& v2 = ch->vertex((i+2)&3); const Vertex_handle& v3 = ch->vertex((i+3)&3); Index index = Index(); bool is_index_initialized = false; if ( v1->in_dimension() == 2 ) { index = v1->index(); is_index_initialized = true; } if ( v2->in_dimension() == 2 ) { if ( is_index_initialized ) { if ( !(v2->index() == index) ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (on same surface criterion: " << v2->index() << " != " << index << ")" << std::endl; #endif return Is_bad(Quality(1)); } } else { index = v2->index(); is_index_initialized = true; } } if ( v3->in_dimension() == 2 ) { if ( is_index_initialized && !(v3->index() == index) ) { #ifdef CGAL_MESH_3_DEBUG_FACET_CRITERIA std::cerr << "Bad facet (on same surface criterion: " << v3->index() << " != " << index << ")" << std::endl; #endif return Is_bad(Quality(1)); } } return Is_bad(); } }; // end class Facet_on_same_surface_criterion template class Facet_criterion_visitor : public Mesh_3::Criterion_visitor { typedef Mesh_3::Criterion_visitor Base; typedef Facet_criterion_visitor Self; public: typedef Mesh_3::Abstract_criterion Criterion; typedef typename Base::Quality Facet_quality; typedef typename Base::Is_bad Is_facet_bad; typedef typename Base::Handle Handle; typedef Handle Facet; // Constructor Facet_criterion_visitor(const Facet& f) : Base(f) {} // Destructor ~Facet_criterion_visitor() {} void visit(const Criterion& criterion) { Base::do_visit(criterion); } }; // end class Facet_criterion_visitor template class Facet_criterion_visitor_with_features : public Mesh_3::Criterion_visitor { typedef Mesh_3::Criterion_visitor Base; typedef Facet_criterion_visitor_with_features Self; typedef typename Tr::Geom_traits GT; typedef typename GT::FT FT; public: typedef typename Base::Quality Facet_quality; typedef typename Base::Is_bad Is_facet_bad; typedef typename Base::Handle Handle; typedef Handle Facet; // Constructor Facet_criterion_visitor_with_features(const Tr& tr, const Facet& fh) : Base(tr, fh) , wp_nb_(0) , do_spheres_intersect_(false) , ratio_(0.) , approx_ratio_(0.1*0.1*4.) , angle_ratio_(0.5*0.5*4.) , size_ratio_(0.4*0.4*4.) { typedef typename Tr::Geom_traits GT; typedef typename Tr::Weighted_point Weighted_point; typedef typename Tr::Cell_handle Cell_handle; typename GT::Compute_squared_radius_smallest_orthogonal_sphere_3 sq_radius = tr.geom_traits().compute_squared_radius_smallest_orthogonal_sphere_3_object(); typename GT::Compute_weight_3 cw = tr.geom_traits().compute_weight_3_object(); typename GT::Compare_weighted_squared_radius_3 compare = tr.geom_traits().compare_weighted_squared_radius_3_object(); const Cell_handle& c = fh.first; const int& k = fh.second; int k1 = (k+1)&3; int k2 = (k+2)&3; int k3 = (k+3)&3; // Get number of weighted points, and ensure that they will be accessible // using k1...ki, if i is the number of weighted points. const Weighted_point& wpk1 = tr.point(c, k1); if(compare(wpk1, FT(0)) == CGAL::SMALLER) { ++wp_nb_; } const Weighted_point& wpk2 = tr.point(c, k2); if(compare(wpk2, FT(0)) == CGAL::SMALLER) { if ( 0 == wp_nb_ ) { std::swap(k1,k2); } ++wp_nb_; } const Weighted_point& wpk3 = tr.point(c, k3); if(compare(wpk3, FT(0)) == CGAL::SMALLER) { if ( 0 == wp_nb_ ) { std::swap(k1,k3); } if ( 1 == wp_nb_ ) { std::swap(k2,k3); } ++wp_nb_; } const Weighted_point& p1 = tr.point(c, k1); const Weighted_point& p2 = tr.point(c, k2); const Weighted_point& p3 = tr.point(c, k3); // Compute ratio switch ( wp_nb_ ) { case 1: { FT r = (std::max)(sq_radius(p1,p2),sq_radius(p1,p3)); ratio_ = r / cw(p1); break; } case 2: { FT r13 = sq_radius(p1,p3) / cw(p1); FT r23 = sq_radius(p2,p3) / cw(p2); ratio_ = (std::max)(r13, r23); do_spheres_intersect_ = (compare(p1,p2,FT(0)) != CGAL::LARGER); break; } case 3: { do_spheres_intersect_ = (compare(p1,p2,p3,FT(0)) != CGAL::LARGER); break; } default: break; } } // visit functions template void visit(const Mesh_3::Abstract_criterion& criterion) { if ( 3 == wp_nb_ && do_spheres_intersect_ ) { Base::increment_counter(); return; } Base::do_visit(criterion); } template void visit(const Mesh_3::Curvature_size_criterion& criterion) { if ( ratio_ < approx_ratio_ && (do_spheres_intersect_ || 1 == wp_nb_ ) ) { Base::increment_counter(); return; } Base::do_visit(criterion); } template void visit(const Mesh_3::Aspect_ratio_criterion& criterion) { if ( ratio_ < angle_ratio_ && (do_spheres_intersect_ || 1 == wp_nb_) ) { Base::increment_counter(); return; } Base::do_visit(criterion); } template void visit(const Mesh_3::Facet_size_criterion& criterion) { if ( ratio_ < size_ratio_ && (do_spheres_intersect_ || 1 == wp_nb_) ) { Base::increment_counter(); return; } Base::do_visit(criterion); } private: int wp_nb_; bool do_spheres_intersect_; FT ratio_; FT approx_ratio_; FT angle_ratio_; FT size_ratio_; }; // end class Facet_criterion_visitor template class Facet_criterion_visitor_with_radius_lower_bound : public Facet_criterion_visitor_with_features { typedef Facet_criterion_visitor_with_features Base; typedef Facet_criterion_visitor_with_radius_lower_bound Self; typedef typename Tr::Geom_traits GT; typedef typename GT::FT FT; public: typedef typename Base::Quality Facet_quality; typedef typename Base::Is_bad Is_facet_bad; typedef typename Base::Handle Handle; typedef Handle Facet; // Constructor Facet_criterion_visitor_with_radius_lower_bound(const Tr& tr, const Facet& fh) : Base(tr, fh) , dont_go_further_(false) {} Is_facet_bad is_bad() const { if (dont_go_further_) return Is_facet_bad(); else return Base::is_bad(); } bool go_further() const { if (dont_go_further_) return false; else return Base::go_further(); } // visit functions template void visit(const Criterion& criterion) { Base::visit(criterion); } template void visit(const Mesh_3::Abstract_criterion& criterion) { Base::visit(criterion); } template void visit(const Mesh_3::Uniform_size_criterion& criterion) { Base::visit(criterion); if (criterion.is_lower_bound() && Base::is_bad()) dont_go_further_ = true; } private: bool dont_go_further_; };// end class Facet_criterion_visitor_with_radius_lower_bound } // end namespace Mesh_3 } // end namespace CGAL #endif // CGAL_MESH_3_MESH_STANDARD_FACET_CRITERIA_H