Esempio n. 1
0
        private void CreateOpening()
        {
            Vertex start = new Vertex(new Vector3(left.x, Workspace.Instance.CurrentFloorVertex.Point.y, left.z), null, VertexType.Opening);

            start.LoadModel();

            Vertex end = new Vertex(new Vector3(right.x, Workspace.Instance.CurrentFloorVertex.Point.y, right.z), null, VertexType.Opening);

            end.LoadModel();

            float sill   = type == OpeningType.Door ? bottom.y : bottom.y - Workspace.Instance.CurrentFloorVertex.Point.y;
            float height = type == OpeningType.Door ? top.y - Workspace.Instance.CurrentFloorVertex.Point.y : top.y - bottom.y;

            Opening op = new Opening(start, end, sill, height, shotWall, type);

            op.LoadModel();

            state = OpeningShotState.Left;
        }
Esempio n. 2
0
 public OpeningBuilder(IHoloRepository _repo)
 {
     this._repo = _repo;
     state      = OpeningShotState.Left;
 }