Show / Hide Table of Contents

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

    Volume()

    The spaces's volume.

    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)