Class Space
An extruded region of occupiable space.
Examples
// Create a space.
var a = new Vector3();
var b = new Vector3(30, 10);
var c = new Vector3(20, 50);
var d = new Vector3(-10, 5);
var profile = new Profile(new Polygon(new[]{a,b,c,d}));
var space = new Space(profile, 10);
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 Space : GeometricElement, INotifyPropertyChanged
Constructors
Space(Profile, Double, Material, Transform, Representation, Boolean, Guid, String)
Construct a space.
Declaration
[JsonConstructor]
public Space(Profile profile, double height, Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile of the space. |
System.Double | height | The height of the space. |
Material | material | The space's material. |
Transform | transform | The space's transform. |
Representation | representation | The space's represenation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the space. |
System.String | name | The name of the space. |
Space(Solid, Transform, Material, Boolean, Guid, String)
Construct a space from a solid.
Declaration
public Space(Solid geometry, Transform transform = null, Material material = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Solid | geometry | The solid which will be used to define the space. |
Transform | transform | The transform of the space. |
Material | material | The space's material. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the space. |
System.String | name | The name of the space. |
Properties
Height
The space's height.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Profile
The profile of the space.
Declaration
public Profile Profile { get; set; }
Property Value
Type | Description |
---|---|
Profile |
Methods
Area()
The spaces's area.
Declaration
public double Area()
Returns
Type | Description |
---|---|
System.Double |
ProfileTransformed()
Get the profile of the space transformed by the space's transform.
Declaration
public Profile ProfileTransformed()
Returns
Type | Description |
---|---|
Profile |
UpdateRepresentations()
Update representations.
Declaration
public override void UpdateRepresentations()
Overrides
Volume()
The spaces's volume.
Declaration
public double Volume()
Returns
Type | Description |
---|---|
System.Double |
Implements
System.ComponentModel.INotifyPropertyChanged