Deutsch   English   Français   Italiano  
<vaoiot$3li19$8@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!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:26:52 -0700
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <vaoiot$3li19$8@dont-email.me>
References: <vaohb6$3li18$2@dont-email.me> <vaohnv$3li19$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 29 Aug 2024 03:26:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="98c6004928f46df0abe90729ccf8af51";
	logging-data="3852329"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+EWzyS+wadE4PCt/8lYRpdbMsvMeaFYdk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QZfCgh58/MhIZsD1uIUPBd09xuQ=
In-Reply-To: <vaohnv$3li19$4@dont-email.me>
Content-Language: en-US
Bytes: 2410

On 8/28/2024 6:09 PM, Chris M. Thomasson wrote:
> 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 };

It still works with:

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 });
>      }
> }
> _______________________