Show / Hide Table of Contents

    Class Extrude

    An extrusion of a profile, in a direction, to a height.

    Inheritance
    System.Object
    SolidOperation
    Extrude
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    SolidOperation.LocalTransform
    SolidOperation.Solid
    SolidOperation.IsVoid
    SolidOperation.PropertyChanged
    SolidOperation.RaisePropertyChanged(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.Geometry.Solids
    Assembly: Hypar.Elements.dll
    Syntax
    public class Extrude : SolidOperation, INotifyPropertyChanged

    Constructors

    Extrude(Profile, Double, Vector3, Boolean, Boolean)

    Construct an extrusion.

    Declaration
    [JsonConstructor]
    public Extrude(Profile profile, double height, Vector3 direction, bool isVoid = false, bool reverseWinding = false)
    Parameters
    Type Name Description
    Profile profile

    The profile to extrude.

    System.Double height

    The height/length of the extrusion.

    Vector3 direction

    The direction of the extrusion.

    System.Boolean isVoid

    If true, the extrusion is a "void" in a group of solid operations, subtracted from other solids.

    System.Boolean reverseWinding

    True if the extrusion should be flipped inside out, with face normals facing in instead of out. Use with caution if using with other solid operations in a representation — boolean results may be unexpected.

    Properties

    Direction

    The direction in which to extrude.

    Declaration
    [JsonProperty("Direction", Required = Required.AllowNull)]
    public Vector3 Direction { get; set; }
    Property Value
    Type Description
    Vector3

    Height

    The height of the extrusion.

    Declaration
    [JsonProperty("Height", Required = Required.Always)]
    [Range(0, 1.7976931348623157E+308)]
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    Profile

    The id of the profile to extrude.

    Declaration
    [JsonProperty("Profile", Required = Required.AllowNull)]
    public Profile Profile { get; set; }
    Property Value
    Type Description
    Profile

    ReverseWinding

    Is the extrusion's profile reversed relative to its extrusion vector, resulting in inward-facing face normals?

    Declaration
    [JsonProperty("Reverse Winding")]
    public bool ReverseWinding { get; set; }
    Property Value
    Type Description
    System.Boolean

    Implements

    System.ComponentModel.INotifyPropertyChanged