Class Beam
A structural framing element defined by a center line curve and a profile.
Examples
// Create a framing type.
var profile = _wideFlangeFactory.GetProfileByType(WideFlangeProfileType.W10x100);
// Create a straight beam.
var line = new Line(Vector3.Origin, new Vector3(5, 0, 5));
var linearBeam = new Beam(line, profile, 0, 0, 15, material: BuiltInMaterials.Wood);
var lineT = line.TransformAt(0).ToModelCurves(linearBeam.Transform);
// Create a polygon beam.
var polygon = Polygon.Ngon(5, 2);
var polygonBeam = new Beam(polygon, profile, 0, 0, 45, new Transform(6, 0, 0), BuiltInMaterials.Steel);
var polyT = polygon.TransformAt(0).ToModelCurves(polygonBeam.Transform);
// Create a curved beam.
var arc = new Arc(new Transform(Vector3.Origin, Vector3.XAxis), 5.0, Math.PI * 0.25, Math.PI * 0.75);
var arcBeam = new Beam(arc, profile, 0, 0, 0, new Transform(12, 0, 0), BuiltInMaterials.Steel);
var arcT = arc.TransformAt(arc.Domain.Min).ToModelCurves(arcBeam.Transform);
// Create an elliptical beam.
var ellipticalArc = new EllipticalArc(Vector3.Origin, 2.5, 1.5, 0, 210);
var ellipticBeam = new Beam(ellipticalArc, profile, 0, 0, 0, new Transform(18, 0, 0), BuiltInMaterials.Steel);
var ellipseT = ellipticalArc.TransformAt(ellipticalArc.Domain.Min).ToModelCurves(ellipticBeam.Transform);
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 Beam : StructuralFraming, INotifyPropertyChanged
Constructors
Beam()
Construct a beam.
Declaration
public Beam()
Beam(BoundedCurve, Profile, Transform, Material, Representation, Boolean, Guid, String)
Construct a beam.
Declaration
public Beam(BoundedCurve curve, Profile profile, Transform transform = null, Material material = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
BoundedCurve | curve | The beam's center line. |
Profile | profile | The beam's profile. |
Transform | transform | The beam's transform. |
Material | material | The beam's material. |
Representation | representation | The beam's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the transform. |
System.String | name | The name of the transform. |
Beam(BoundedCurve, Profile, Double, Double, Double, Transform, Material, Representation, Boolean, Guid, String)
Construct a beam.
Declaration
public Beam(BoundedCurve curve, Profile profile, double startSetback, double endSetback, double rotation, Transform transform = null, Material material = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
BoundedCurve | curve | The beam's center line. |
Profile | profile | The beam's profile. |
System.Double | startSetback | The setback of the beam's geometry at the start. |
System.Double | endSetback | The setback of the beam's geometry at the end. |
System.Double | rotation | An optional rotation of the beam's cross section around it's axis. |
Transform | transform | The beam's transform. |
Material | material | The beam's material. |
Representation | representation | The beam's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the transform. |
System.String | name | The name of the transform. |
Implements
System.ComponentModel.INotifyPropertyChanged