|
 |
On 08/10/2025 23:41, yesbird wrote:
> 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.
Sorry, I forgot the INC file.
Here now ;)
>> 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 :)
--
kurtz le pirate
compagnie de la banquise
Post a reply to this message
Attachments:
Download 'pingouin.inc.zip' (873 KB)
|
 |