wo80 / Triangle.NET

C# / .NET version of Jonathan Shewchuk's Triangle mesh generator.
442 stars 81 forks source link

vertices distance/amount parametrization per border #12

Closed darek2000 closed 2 years ago

darek2000 commented 4 years ago

Hi, is there any option to configure vertices distance (or amount) per border when defining geometry for meshing? (like it is done in freefem mesher where i.e. square borders can be configure: mesh Th = buildmesh(C01(n) + C02(n) + C03(n) + C04(n)) where n means number of vertices per border)

wo80 commented 2 years ago

Triangle.NET doesn't support this out of the box, but it shouldn't be hard to implement for yourself. Take a look at the Rectangle and Circle generator methods in Triangle.Examples/Generate.cs to get started.