From e80534ac05edc59790db90608c3866fb4a6cda1c Mon Sep 17 00:00:00 2001 From: "SND\\wo80_cp" Date: Fri, 7 Feb 2014 21:23:00 +0000 Subject: [PATCH] Fix parsing vertex attributes git-svn-id: https://triangle.svn.codeplex.com/svn@74522 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5 --- Triangle.NET/Triangle/IO/FileReader.cs | 2 +- Triangle.NET/Triangle/Tools/RegionIterator.cs | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/Triangle.NET/Triangle/IO/FileReader.cs b/Triangle.NET/Triangle/IO/FileReader.cs index 753a987..29f4ae3 100644 --- a/Triangle.NET/Triangle/IO/FileReader.cs +++ b/Triangle.NET/Triangle/IO/FileReader.cs @@ -71,7 +71,7 @@ namespace TriangleNet.IO { if (line.Length > 3 + j) { - attribs[j] = double.Parse(line[3 + j]); + attribs[j] = double.Parse(line[3 + j], nfi); } } diff --git a/Triangle.NET/Triangle/Tools/RegionIterator.cs b/Triangle.NET/Triangle/Tools/RegionIterator.cs index d09599f..6bd3b5e 100644 --- a/Triangle.NET/Triangle/Tools/RegionIterator.cs +++ b/Triangle.NET/Triangle/Tools/RegionIterator.cs @@ -30,20 +30,9 @@ namespace TriangleNet.Tools } /// - /// Spread regional attributes and/or area constraints (from a .poly file) - /// throughout the mesh. + /// Apply given action to each triangle of selected region. /// - /// - /// - /// - /// This procedure operates in two phases. The first phase spreads an - /// attribute and/or an area constraint through a (segment-bounded) region. - /// The triangles are marked to ensure that each triangle is added to the - /// virus pool only once, so the procedure will terminate. - /// - /// The second phase uninfects all infected triangles, returning them to - /// normal. - /// + /// void ProcessRegion(Action func) { Otri testtri = default(Otri);