Class StandardWall
A wall defined by a planar curve, a height, and a thickness.
Examples
// 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, 1);
wall.AddOpening(3, 1, 3.5, 1.5);
Inherited Members
Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public class StandardWall : Wall, INotifyPropertyChanged, IHasOpenings
Constructors
StandardWall(Line, Double, Double, Material, Transform, Representation, Boolean, Guid, String)
Construct a wall along a line.
Declaration
public StandardWall(Line centerLine, double thickness, double height, Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Line | centerLine | The center line of the wall. |
System.Double | thickness | The thickness of the wall. |
System.Double | height | The height of the wall. |
Material | material | The wall's material. |
Transform | transform | The transform of the wall. This transform will be concatenated to the transform created to describe the wall in 2D. |
Representation | representation | The wall's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the wall. |
System.String | name | The name of the wall. |
Properties
CenterLine
The center line of the wall.
Declaration
public Line CenterLine { get; }
Property Value
Type | Description |
---|---|
Line |
Height
The height of the wall.
Declaration
public double Height { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Thickness
The thickness of the wall.
Declaration
public double Thickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
AddOpening(Polygon, Double, Double, Double, Double)
Add an Opening in the Wall. The Opening x and y sets the position relative to the Wall's Centerline.Start point in the wall elevation coordinate system. The x and y will position the origin of the polygon opening.
Declaration
public Opening AddOpening(Polygon perimeter, double x, double y, double depthFront = 1, double depthBack = 1)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The perimeter of the opening. |
System.Double | x | The distance to the origin of the perimeter opening along the center line of the wall. |
System.Double | y | The height to the origin of the perimeter along the center line of the wall. |
System.Double | depthFront | The depth of the opening along the opening's +Z axis. |
System.Double | depthBack | The depth of the opening along the opening's -Z axis. |
Returns
Type | Description |
---|---|
Opening |
AddOpening(Double, Double, Double, Double, Double, Double)
Add an Opening in the Wall. The Opening x and y sets the position relative to the Wall's Centerline.Start point in the wall elevation coordinate system. The x and y will position origin of the rectangular opening.
Declaration
public Opening AddOpening(double width, double height, double x, double y, double depthFront = 1, double depthBack = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The width of the opening. |
System.Double | height | The height of the opening. |
System.Double | x | The distance to the center of the opening along the center line of the wall. |
System.Double | y | The height to the center of the opening along the center line of the wall. |
System.Double | depthFront | The depth of the opening along the opening's +Z axis. |
System.Double | depthBack | The depth of the opening along the opening's -Z axis. |
Returns
Type | Description |
---|---|
Opening |
UpdateRepresentations()
Update solid operations.
Declaration
public override void UpdateRepresentations()