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);
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 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
Implements
System.ComponentModel.INotifyPropertyChanged