public void Faces() { int[] index = {1,2,3,4,5}; Element element = new Element(); element.AddFace(index); Assert.AreEqual(1,element.FaceCount); Assert.AreEqual(index,element.GetFaceVertexIndices(0)); }
public void Init() { elementSet = new ElementSet("ElementSet","ElementSetID", ElementType.XYPolygon,new SpatialReference("ReferenceID")); element1 = new Element("element1"); element1.AddVertex(new Vertex(1.0,2.0,3.0)); element1.AddVertex(new Vertex(2.0,3.0,4.0)); element1.AddVertex(new Vertex(4.0,5.0,6.0)); int[] index = {1,2,3,4,5}; element1.AddFace(index); elementSet.AddElement(element1); element2 = new Element("element2"); element2.AddVertex(new Vertex(6.0,7.0,8.0)); element2.AddVertex(new Vertex(9.0,10.0,11.0)); element2.AddVertex(new Vertex(12.0,13.0,14.0)); int[] index2 = {6,7,8,9}; element2.AddFace(index2); elementSet.AddElement(element2); }