POV-Ray : Newsgroups : povray.binaries.utilities : Online files converter : Re: Online files converter Server Time
11 Oct 2025 01:30:43 EDT (-0400)
  Re: Online files converter  
From: yesbird
Date: 8 Oct 2025 17:41:16
Message: <68e6da7c$1@news.povray.org>
On 09/10/2025 00:03, Kenneth wrote:
> Does your analysis of Kurtz's file indicate duplicate *triangles*, or just
> duplicate vertices? Kurtz is converting his STL file to plain mesh AFAIU (not
> mesh2)-- and in such files there are necessarily many duplicate vertices, since
> they are shared among some triangles. I'm guessing that your own mesh2
> conversion code 'consolidates' those somehow-- resulting in fewer vertices
> overall.
> 
> My apologies; I was confusing your OBJ file discussion with STL file conversion.

I only answered the Kurtz's question about difference in of vertices in
our results. There is no *.inc file in Kurtz's zip, so I grepped obj.

> If so, is this consolidation or merging one of the 'efficiency' benefits of
> POV-ray's own mesh2 construct, or is it an extra operation that you added to
> your own conversion code?

My conversion process is following:
1. Calling OBJLoader() from Three.js library to load meshes into scene.

2. Call standard Three.js mergeVertices() method for each mesh on load
to build vertices index, that completely excludes duplicates.

3. Call my POVExporter(), which traverses scene, selects meshes and
saves data to model.ini as mesh2.

Very simple :)
-- 
YB


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.