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) 2024-2024, Oslandia. // Copyright (c) 2024-2025, SFCGAL team. // SPDX-License-Identifier: LGPL-2.0-or-later #ifndef SFCGAL_SPHERE_H_ #define SFCGAL_SPHERE_H_ #include #include #include #include #include "SFCGAL/Kernel.h" #include "SFCGAL/export.h" #include "SFCGAL/numeric.h" namespace SFCGAL { /** * @brief Represents a sphere in 3D space * * This class provides methods to generate a polyhedron and a point cloud * representation of a sphere. It uses SFCGAL's Kernel for exact computations. */ class SFCGAL_API Sphere { public: /** * @brief Constructs a Sphere object * @param radius The radius of the sphere * @param center The center point of the sphere * @param num_vertical The number of vertical divisions * @param num_horizontal The number of horizontal divisions * @param direction The direction vector for sphere orientation */ Sphere(const Kernel::FT &radius = 1.0, const Kernel::Point_3 ¢er = Kernel::Point_3(0, 0, 0), int num_vertical = 16, int num_horizontal = 32, const Kernel::Vector_3 &direction = Kernel::Vector_3(0, 0, 1)); /** * @brief Copy constructor */ Sphere(const Sphere &other) = default; /** * @brief Assignment operator */ Sphere & operator=(Sphere other); /** * @brief Destructor */ ~Sphere() = default; /** * @brief Sets the radius of the sphere * @param radius The new radius */ inline void setRadius(const Kernel::FT &radius) { m_radius = radius; invalidateCache(); } /** * @brief Sets the center of the sphere * @param center The new center point */ inline void setCenter(const Kernel::Point_3 ¢er) { m_center = center; invalidateCache(); } /** * @brief Sets the number of vertical divisions * @param num The new number of vertical divisions */ inline void setNumVertical(int num) { m_num_vertical = num; invalidateCache(); } /** * @brief Sets the number of horizontal divisions * @param num The new number of horizontal divisions */ inline void setNumHorizontal(int num) { m_num_horizontal = num; invalidateCache(); } /** * @brief Sets the direction of the sphere * @param direction The new direction vector */ inline void setDirection(const Kernel::Vector_3 &direction) { m_direction = normalizeVector(direction); invalidateCache(); } /** * @brief Gets the radius of the sphere * @return The radius */ inline const Kernel::FT & radius() const { return m_radius; } /** * @brief Gets the center of the sphere * @return The center point */ inline const Kernel::Point_3 & center() const { return m_center; } /** * @brief Gets the number of vertical divisions * @return The number of vertical divisions */ inline int numVertical() const { return m_num_vertical; } /** * @brief Gets the number of horizontal divisions * @return The number of horizontal divisions */ inline int numHorizontal() const { return m_num_horizontal; } /** * @brief Gets the direction of the sphere * @return The direction vector */ inline const Kernel::Vector_3 & direction() const { return m_direction; } /** * @brief Generates a polyhedron representation of the sphere * @return A CGAL::Polyhedron_3 object representing the sphere */ CGAL::Polyhedron_3 generatePolyhedron(); /** * @brief Generates a point cloud representation of the sphere * @return A vector of Point_3 objects representing points on the sphere's * surface */ std::vector generatePoints(); /** * @brief Calculates the volume of the Sphere * @return The volume of the sphere */ double volume() const { return CGAL::to_double((4.0 / 3.0) * m_radius * m_radius * m_radius * CGAL_PI); } /** * @brief Calculates the surface area of the Sphere * @return The surface area of the sphere */ double area() const { return CGAL::to_double(4 * m_radius * m_radius * CGAL_PI); } private: Kernel::FT m_radius; Kernel::Point_3 m_center; int m_num_vertical; int m_num_horizontal; Kernel::Vector_3 m_direction; std::optional> m_polyhedron; std::optional> m_points; void invalidateCache(); CGAL::Polyhedron_3 generateSpherePolyhedron(); std::vector generateSpherePoints(); // Function to get an orthogonal vector in the XY plane static Kernel::Vector_3 get_orthogonal_vector(const Kernel::Vector_3 &vec) { if (vec.x() != 0 || vec.y() != 0) { return Kernel::Vector_3(-vec.y(), vec.x(), 0); } else { return Kernel::Vector_3(0, -vec.z(), vec.y()); } } }; } // namespace SFCGAL #endif // SFCGAL_SPHERE_H_