public WallPolygon(IfWall ifWall) { IfWall = ifWall; Openings = new List <IfOpening>(); Regions = new List <Region>(); Openings = IfWall.Openings; GetRegions(); }
public WallModel(IfWall ifWall) { IfWall = ifWall; IfLocation = new IfLocation(IfWall.IfLocation); IfDimension = new IfDimension(IfWall.IfDimension); Direction = IfWall.Direction; if (Direction == Direction.Negative) { Flip(Axis.Other); Direction = Direction.Positive; } MidPoint = Distance3D.DivideDistance(IfWall.IfLocation, IfWall.IfDimension); EndPoint = GetEndPoint(); }