This project is read-only.

Some questions about

Apr 11, 2012 at 11:51 AM
Edited Apr 11, 2012 at 11:53 AM

I found this project when searhing, and download and try your test code. I found it very powerful yet very fast. I think you've done a very good job. Yet I have some questions on it:

1) how to control the refining process of a mesh? Does it have some parameters (such as min angle, max number of cells). In your test app, the only way to refine the mesh is to click  the "Refine" buttton, and the mesh refined automatically without any aditonal paremeters to control it. Could you give some more explations or code on this?

2) Since the C code of Triagle has been largely improved by  Hale Erten and Alper Üngör, does Triangle.Net have the improved functions, or it is just the C# version of the orginal C version of Triagle (Jonathan Richard Shewchuk)?  Or do you intend to include those improvements into Triangle.Net in the future?

I am really very intersted in this project, and hope you gain great success. Thanks for your good job!

Apr 11, 2012 at 2:51 PM
Edited Apr 11, 2012 at 3:04 PM

You can't control the triangulation parameters form the test app at the moment. This will change for Beta 2. For now, if you want to do anything useful, you will have to write your own code. Use the SetOptions method to control the parameters:

Mesh mesh = new Mesh();

mesh.SetOption(Options.Quality, true);
mesh.SetOption(Options.MinAngle, 25);
mesh.SetOption(Options.MaxArea, 0.05);

mesh.Triangulate(pathToData + "someGeometry.poly");

// Refine with new max area
mesh.SetOption(Options.MaxArea, 0.01);

You can find more code examples in the documentation section. There's also an option for the maximum number of steiner points to use, so you will have some control over the maximum number of elements produced. But you probably don't want to use this option (the meshes produced aren't good).

Triangle.NET already uses the improved algorithm by Erten/Üngör for min/max angle constraints. For area constraints, it uses offcenters as the original Triangle code. I'm currently working on a mesh smoothing algorithm, which will improve mesh quality even more. It's planned for Beta 2 ...

Apr 12, 2012 at 3:42 AM

Thanks for you reply. And I'm much clear about Trangle.Net now. It is really a good job. I am also expecting for the enhanced ablities of Beta 2. Thanks again.