示例#1
0
        public void Example()
        {
            this.Name = "Elements_StandardWall";
            // <example>
            // Create a wall.
            var line = new Line(new Vector3(0, 0, 0), new Vector3(10, 10, 0));
            var wall = new StandardWall(line, 0.1, 3.0);

            wall.AddOpening(1, 2, 1, 2);
            wall.AddOpening(3, 1, 1, 2);
            // </example>

            this.Model.AddElement(wall);
        }
示例#2
0
        public void WallWithAddedOpenings()
        {
            this.Name = "WallWithAddedOpenings";

            var p = Polygon.Ngon(5, 10);

            foreach (var l in p.Segments())
            {
                var w = new StandardWall(l, 0.1, 3.0, null);
                w.AddOpening(1, 1, 1, 2, 1.0, 1.0);
                w.AddOpening(1, 2, 3, 1, 1.0, 1.0);
                w.AddOpening(Polygon.Ngon(3, 2.0), 8, 2, 1.0, 0.0);
                this.Model.AddElement(w);
            }
        }