Show / Hide Table of Contents

    Class Panel

    A zero-thickness planar element defined by a perimeter.

    Examples
    var a = new Vector3(0,0,0);
    var b = new Vector3(1,0,0);
    var c = new Vector3(1,0,1);
    var d = new Vector3(0,0,1);
    
    // Create a panel.
    var panel = new Panel(new Polygon(new []{a,b,c,d}), BuiltInMaterials.Glass);
    
    Inheritance
    System.Object
    Element
    GeometricElement
    Panel
    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 Panel : GeometricElement, INotifyPropertyChanged

    Constructors

    Panel(Polygon, Material, Transform, Representation, Boolean, Guid, String)

    Create a panel.

    Declaration
    public Panel(Polygon perimeter, Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
    Parameters
    Type Name Description
    Polygon perimeter

    The perimeter of the panel.

    Material material

    The panel's material

    Transform transform

    The panel's transform.

    Representation representation

    The panel's representation.

    System.Boolean isElementDefinition

    Is this an element definition?

    System.Guid id

    The id of the panel.

    System.String name

    The name of the panel.

    Properties

    Perimeter

    The perimeter of the panel.

    Declaration
    public Polygon Perimeter { get; }
    Property Value
    Type Description
    Polygon

    Methods

    Area()

    The panel's area.

    Declaration
    public double Area()
    Returns
    Type Description
    System.Double

    Normal()

    The normal of the panel, defined using the first 3 vertices in the location.

    Declaration
    public Vector3 Normal()
    Returns
    Type Description
    Vector3

    The normal vector of the panel.

    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)