Example #1
0
            internal CSVMeshNode(CSVMeshNodeTemplate template, SimpleMesh mother)
                : base(template, mother)
            {
                _definition = _nodeCreator.CreateNode("node");
                XmlNode rawcontents = _nodeCreator.CreateChildNode(_definition, "raw");

                _nodeCreator.AddAttribute("type", "EdbCsvMeshBuilder", rawcontents);
                _nodeCreator.AddAttribute("source", template._name, rawcontents);
                XmlNode parsedContents = _nodeCreator.CreateChildNode(_definition, "parsed");

                string[] parsedContent = template._name.Split(',');
                _nodeCreator.AddAttribute("splitCount", parsedContent.Length.ToString(), parsedContents);
                foreach (string s in parsedContent)
                {
                    _nodeCreator.CreateTextNode(parsedContents, "parsed", s);
                }

                DebugDump();
            }
Example #2
0
 private void Test1()
 {
     Logger.LoggerSAP.Log("Performing {0}().", "Test1");
     mesh1 = new SimpleMesh();
     //Enqueue a couple of nodes to be added to the mesh.
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 1"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 2"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 3"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 4"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 5"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 6"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 7"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 8"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 9"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 10"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 11"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 12"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 13"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 14"));
     mesh1.AddNode(new MeshNode.MeshNodeTemplate("Node 15"));
 }
Example #3
0
 internal MeshNode(MeshNodeTemplate template, SimpleMesh mother)
 {
     _name   = template._name;
     _mother = mother;
     _x      = _mother.CreateNewCoordinate();
 }