Deutsch English Français Italiano |
<vaohnv$3li19$4@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: sci.math Subject: Re: Unit fractions... Date: Wed, 28 Aug 2024 18:09:19 -0700 Organization: A noiseless patient Spider Lines: 37 Message-ID: <vaohnv$3li19$4@dont-email.me> References: <vaohb6$3li18$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Aug 2024 03:09:20 +0200 (CEST) Injection-Info: dont-email.me; posting-host="98c6004928f46df0abe90729ccf8af51"; logging-data="3852329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Cx7O/lfQFsSw65UwWQKNUq6eqAADlZR8=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Enp6KYs3uMwVwE1DufakxonrL+Y= In-Reply-To: <vaohb6$3li18$2@dont-email.me> Content-Language: en-US Bytes: 2025 On 8/28/2024 6:02 PM, Chris M. Thomasson wrote: > Just a little plot I did for Moebius and WM using unit fractions on any > line in n-ary space. 3d here... > > https://i.ibb.co/9n71tZf/ct-pov.png > > https://i.ibb.co/0hXnPpf/ct-pov.png > _______________________ void ct_unit_fractions( ct::pov::pov_file& scene, vector_field& field, glm::vec3 p0, glm::vec3 p1, unsigned long n ) { glm::vec3 pdif = p1 - p0; glm::vec3 pperp = { pdif.y, pdif.x, pdif.z }; scene.dump_cylinder(p0, p1, .01, { 1, 0, 0 }); for (unsigned long i = 1; i < n + 1; ++i) { float normal = 1.f / i; glm::vec3 c0 = p0 + pdif * normal; glm::vec3 c0_perp0 = c0 + pperp * normal; glm::vec3 c0_perp1 = c0 - pperp * normal; scene.dump_sphere(c0, .02, { normal, 1 - normal, 1 }); scene.dump_cylinder(c0, c0_perp0, .01, { 1, 1, 0 }); scene.dump_cylinder(c0, c0_perp1, .01, { 1, 0, 1 }); } } _______________________