POV-Ray : Newsgroups : povray.general : img2mesh update : img2mesh update Server Time
9 Oct 2026 08:45:42 EDT (-0400)
  img2mesh update  
From: Ilya Razmanov
Date: 31 Aug 2026 23:20:51
Message: <6a964493$1@news.povray.org>
Greetings,

as some might remember, img2mesh is a pure Python program for converting 
2D image height fields into 3D triangle mesh, building somewhat 
interesting mesh geometry. Others may take a look at:

https://dnyarri.github.io/img2mesh.html

One of the interesting features of img2mesh is using different types of 
triangle splitting for smooth and sharp source areas, named geometry 3 
and 1, correspondingly. Geometry choice is based on local image contrast 
(currently on max abs difference within neighbour pixels window), more 
specifically, on results of applying user-defined threshold criterion to 
local contrast.

Main reason for current img2mesh update is adding a threshold mask 
display to img2mesh GUI, so now user may easily switch between source 
image preview and mask representation, and edit threshold visually (an 
animated GUI screenshot is attached. Yes, I insist - it's animated, no 
matter what your newsreader says! After all, animated PNG recently 
became accepted as a part of PNG specs). I've spent several days trying 
to make a GUI which I myself wouldn't consider disgusting, so, 
hopefully, other people may find it useful as well.

Simplest way to download img2mesh, as always, is visiting release page:

https://github.com/Dnyarri/img2mesh/releases/latest

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message


Attachments:
Download 'gui.png' (16 KB)

Preview of image 'gui.png'
gui.png


 

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