Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Element
    GeometricElement
    Opening
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    GeometricElement.Bounds
    GeometricElement.Transform
    GeometricElement.Material
    GeometricElement.Representation
    GeometricElement.IsElementDefinition
    GeometricElement.ModifyVertexAttributes
    GeometricElement.UpdateBoundsAndComputeSolid(Boolean)
    GeometricElement.CreateInstance(Transform, String)
    GeometricElement.ToMesh(Boolean)
    GeometricElement.HasGeometry()
    GeometricElement.Intersects(Plane, Dictionary<Guid, List<Polygon>>, Dictionary<Guid, List<Polygon>>, Dictionary<Guid, List<Line>>)
    GeometricElement.TryToGraphicsBuffers(List<GraphicsBuffers>, String, Nullable<MeshPrimitive.ModeEnum>)
    Element.Id
    Element.Name
    Element.AdditionalProperties
    Element.PropertyChanged
    Element.RaisePropertyChanged(String)
    Element.SetMapping(String, MappingBase)
    Element.GetMapping(String)
    Element.GetMapping<T>(String)
    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
    GeometricElement.UpdateRepresentations()

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    ElementProxyExtensions.Proxy<T>(T, String)
    Identity.AddOverrideIdentity(Element, IOverride)
    Identity.AddOverrideIdentity(Element, String, String, Object)
    Identity.AddOverrideValue(Element, String, Object)
    Identity.OverrideIds<T>(Element, String)