Class SolidCeiling
A ceiling defined by a planar profile extruded to a thickness.
Inherited Members
Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public class SolidCeiling : BaseCeiling, INotifyPropertyChanged, IHasOpenings
Constructors
SolidCeiling(Polygon, Double, Material, Transform, Representation, Boolean, Guid, String)
Construct a ceiling by extruding a profile.
Declaration
public SolidCeiling(Polygon perimeter, double thickness, 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 plan perimeter of the ceiling. It must lie on the XY plane. Z coordinate will be used as elevation |
System.Double | thickness | The thickness of the ceiling. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the ceiling. |
System.String | name | The name of the ceiling. |
SolidCeiling(Polygon, Double, Double, Material, Transform, Representation, Boolean, Guid, String)
Construct a ceiling by extruding a profile.
Declaration
public SolidCeiling(Polygon perimeter, double thickness, double elevation, 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 plan profile of the ceiling. It must lie on the XY plane. The Z coordinate will be ignored |
System.Double | thickness | The thickness of the ceiling. |
System.Double | elevation | The elevation of the ceiling. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the ceiling. |
System.String | name | The name of the ceiling. |
SolidCeiling(Polygon, Double, Double, Guid, Material, Transform, Representation, Boolean, String)
Construct a ceiling by extruding a profile. It's a private constructor that doesn't add elevation to transform
Declaration
[JsonConstructor]
protected SolidCeiling(Polygon perimeter, double thickness, double elevation, Guid id = default(Guid), Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The plan profile of the ceiling. It must lie on the XY plane. The Z coordinate will be ignored |
System.Double | thickness | The thickness of the ceiling. |
System.Double | elevation | The elevation of the ceiling. |
System.Guid | id | The id of the ceiling. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.String | name | The name of the ceiling. |
Properties
Openings
A collection of openings in the ceiling.
Declaration
public List<Opening> Openings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Opening> |
Thickness
The thickness of the ceiling.
Declaration
public double Thickness { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
AddOpening(Polygon)
Add an Opening to the Ceiling.
Declaration
public void AddOpening(Polygon perimeter)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The plan perimeter of the ceiling. It must lie on the XY plane. The Z coordinate will be ignored |
GetProfile()
The Profile of the Ceiling computed from its Perimeter and the Openings.
Declaration
public Profile GetProfile()
Returns
Type | Description |
---|---|
Profile |
UpdateRepresentations()
Update the representations.
Declaration
public override void UpdateRepresentations()