Class Opening
A polygonal opening. An opening's placement is defined by the x and y coordinates. The direction of the opening corresponds to the +Z axis of the transform.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public class Opening : GeometricElement, INotifyPropertyChanged
Constructors
Opening(Polygon, Vector3, Double, Double, Transform, Representation, Boolean, Guid, String)
Create an opening.
Declaration
[JsonConstructor]
public Opening(Polygon perimeter, Vector3 normal, double depthFront = 1, double depthBack = 1, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | |
Vector3 | normal | |
System.Double | depthFront | |
System.Double | depthBack | |
Transform | transform | |
Representation | representation | |
System.Boolean | isElementDefinition | |
System.Guid | id | |
System.String | name |
Opening(Polygon, Double, Double, Transform, Representation, Boolean, Guid, String)
Create an opening normal to the ZAxis.
Declaration
public Opening(Polygon perimeter, double depthFront = 1, double depthBack = 1, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | |
System.Double | depthFront | |
System.Double | depthBack | |
Transform | transform | |
Representation | representation | |
System.Boolean | isElementDefinition | |
System.Guid | id | |
System.String | name |
Properties
DepthBack
The depth of the opening along the opening's -Z axis.
Declaration
public double DepthBack { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
DepthFront
The depth of the opening along the opening's +Z axis.
Declaration
public double DepthFront { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Normal
The normal direction of the opening.
Declaration
public Vector3 Normal { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Perimeter
The perimeter of the opening.
Declaration
public Polygon Perimeter { get; set; }
Property Value
Type | Description |
---|---|
Polygon |
Profile
The profile of the opening.
Declaration
[Obsolete("Use perimeter instead.")]
public Profile Profile { get; set; }
Property Value
Type | Description |
---|---|
Profile |
Methods
UpdateRepresentations()
Update representations
Declaration
public override void UpdateRepresentations()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged