public void ShapeObjectReadBin(string e) { using var reader = new StlFileReader(); var shape = reader.ReadAndConvertAsync(@"E:\Github\StlTools\data\10bin.stl").GetAwaiter().GetResult(); Assert.IsTrue(shape.Name == e); Assert.IsTrue(shape.LittleEndian == 12); Assert.IsTrue(shape.Facets.Count == 12); }
public void ShapeObjectReadAsciiNetWeavingNeedleKit(string e) { using var reader = new StlFileReader(); var shape = reader.ReadAndConvertAsync(@"E:\Github\StlTools\data\NetWeavingNeedleKit.stl").GetAwaiter().GetResult(); Assert.IsTrue(shape.Name == e); Assert.IsTrue(shape.Facets != null); Assert.IsTrue(shape.Facets.Count == 7876); var firstFacet = shape.Facets.FirstOrDefault(); Assert.IsNotNull(firstFacet); }