Show / Hide Table of Contents

    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);
    
    Inheritance
    System.Object
    Element
    GeometricElement
    Mass
    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 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
    GeometricElement.UpdateRepresentations()

    Volume()

    The volume of the mass.

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

    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)
    In This Article
    • Constructors
      • Mass(Profile, Double, Material, Transform, Representation, Boolean, Guid, String)
    • Properties
      • Height
      • Profile
      • Thickness
    • Methods
      • ProfileTransformed()
      • UpdateRepresentations()
      • Volume()
    • Implements
    • Extension Methods