On Fri, 24 Feb 2012 12:18:23 -0500, Eliezer Stavsky <eli.stavsky(a)gmail.com> wrote:
> Hi Andreas, thank you so much for your reply. Yes, the points are given and
> I need triangles to connect them.
Please look through the (recent) mailing list archives for a solution to
that problem. It's there, including sample code. Also, please make sure
the mailing list stays cc'd. Thanks.
> However, the data points represent the
> shape of a surface (a region of a brain), and the points are extremely
> dense in regions where the brain folds a lot, and very sparse in flat
> regions. If possible, I'd like a more uniform distribution of points on the
> surface. Do you think that's feasible?
As in, you'd like points to be added so that all triangles are roughly
of the same size? If so, those points are called "Steiner points" in
Triangle AFAICT. Meshpy offers an interface to that.
On Fri, 24 Feb 2012 03:35:43 +0100, Nico Schlömer <nico.schloemer(a)gmail.com> wrote:
> > MeshPy builds TetGen as a library.
> I've gotten in touch with the tetgen developer and figured out the
> Delaunay issue (the answer being that a pure Delaunay mesher itself
> wouldn't guarantee successful code termination for meshed with small
Ok, that's good to know. Thanks for following up.
> I noticed that your bundling a pretty old version of tetgen, too.
> Would you be interested in getting it up-to-speed with the current
> version, or even getting vanilla tetgen in shape to work with MeshPy?
At one point I did patch in a newer version, but I found out that TetGen
had dropped support for periodic boundary conditions, which I
need. That's why I'm sticking to an older version. If you'd like a newer
version, there is a branch called 'upgrade-to-tetgen-1.4.3' that you can
grab from git.tiker.net.
On Fri, 17 Feb 2012 23:06:24 +0100, Nico Schlömer <nico.schloemer(a)gmail.com> wrote:
> > There is no _tetgen.py.
> Oh I looked at
> import meshpy._tetgen as internals
> I guess this must be created by the installer then; the code in it
> does look machine-generated indeed.
> > In other words, "-pq" unless otherwise specified.
> How exactly do you call tetgen? I'm trying to reproduce it with tetgen
> standalone but find this hard to do given the fact that meshpy uses a
> custom build anyways.
MeshPy builds TetGen as a library.
On Fri, 17 Feb 2012 16:49:39 +0100, Nico Schlömer <nico.schloemer(a)gmail.com> wrote:
> Well, the tetgen options...
> Maybe you could enlighten me as to what MeshPy does passes to tetgen
> when doing a
> meshpy.tet.build(info, max_volume = MAX_AREA)
> I've just browsed MeshPy's code and I could get my head around
There is no _tetgen.py.
In other words, "-pq" unless otherwise specified.
On Fri, 17 Feb 2012 15:50:19 +0100, Nico Schlömer <nico.schloemer(a)gmail.com> wrote:
> Hi Andreas,
> I've been using MeshPy for a while, noticing today that the 3D-meshes
> it spits out aren't Delaunay. I was surprised by this, given the fact
> that TetGen advertises itself as a "Quality Tetrahedral Mesh Generator
> and 3D Delaunay Triangulator".
> Am I missing something?
Great question. No idea--you'd have to take this up with the author of
TetGen. Are you sure that the options with which you run TetGen
guarantee you Delaunay output? In any case, please keep the list (and
me) informed on what you find out.
On Thu, 2 Feb 2012 14:10:39 -0500, Patrick VanDusen <pdusen(a)gmail.com> wrote:
> Hi Andreas,
> I'm attempting to use MeshPy to generate a voronoi diagram/delaunay
> triangulation, in an effort to implement a map generator in python using
> this 'recipe':
> I'm having some difficulty getting started with MeshPy, as my knowledge of
> advanced geometry isn't very well-developed. In particular, I don't really
> understand mesh_info:set_facets(facets); specifically, what exactly it
> does, and what would be the correct input for this, given that I'm trying
> to generate a 2D delaunay triangulation / voronoi diagram of random points.
> Any tips or suggestions you can offer me would be greatly appreciated.
(Simply keep meshpy(a)tiker.net cc'd, and I won't complain about questions
directed to me.)
Sample code for something like your problem is attached.
MeshPy git adds the quality_meshing=False flag, if that's what you need.