Class Mass
An extruded volume.
Examples
var a = new Vector3();
var b = new Vector3(30, 10);
var c = new Vector3(20, 50);
var d = new Vector3(-10, 5);
var poly = new Polygon(new[] { a, b, c, d });
// Create a mass.
var mass = new Mass(poly, 5.0);
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 Mass : GeometricElement, INotifyPropertyChanged
Constructors
Mass(Profile, Double, Material, Transform, Representation, Boolean, Guid, String)
Construct a Mass.
Declaration
public Mass(Profile profile, double height = 1, 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 mass. |
System.Double | height | The height of the mass from the bottom elevation. |
Material | material | The mass' material. The default is the built in mass material. |
Transform | transform | The mass' transform. |
Representation | representation | The mass' representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the mass. |
System.String | name | The name of the mass. |
Properties
Height
The height of the mass.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Profile
The profile of the mass.
Declaration
public Profile Profile { get; set; }
Property Value
Type | Description |
---|---|
Profile |
Thickness
The thickness of the mass' extrusion.
Declaration
[JsonIgnore]
public double Thickness { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
ProfileTransformed()
Get the profile of the mass transformed by the mass' transform.
Declaration
public Profile ProfileTransformed()
Returns
Type | Description |
---|---|
Profile |
UpdateRepresentations()
Update the representations.
Declaration
public override void UpdateRepresentations()
Overrides
Volume()
The volume of the mass.
Declaration
public double Volume()
Returns
Type | Description |
---|---|
System.Double |
Implements
System.ComponentModel.INotifyPropertyChanged