public SamplingOffsetCalculator(IEnumerable <Point2Dmm[]> clusters) { _clusters = clusters.Select(c => makeDense(c.Select(OffsetCalculator.AsPoint)).ToArray()).ToList(); _shapeNodes = ShapeNode.From(_clusters).ToList(); /**/ foreach (var node in _shapeNodes) { var mesh = createMesh(node); _meshes.Add(mesh); }/**/ }
public StrokeOffsetCalculator(IEnumerable <Point2Dmm[]> clusters) { _clusters = clusters.Select(c => filter(c.Select(OffsetCalculator.AsPoint)).ToArray()).ToList(); _shapeNodes = ShapeNode.From(_clusters).ToList(); }