StructuralCurveEdge Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.StructuralElements
public sealed class StructuralCurveEdge : StructuralAnalysisObjectBase, IStructuralElementAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralCurveEdge>, IHasParentId
The StructuralCurveEdge type exposes the following members.
Name | Description | |
---|---|---|
StructuralCurveEdge |
Create an internal edge within the provided StructuralSurfaceMember, defined by a list of CurveTCoordinate |
Name | Description | |
---|---|---|
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
Member2D |
The StructuralSurfaceMember in which the internal edge is defined
| |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) | |
ParentId |
The ID of the parent object of the same type
| |
Segments |
The list of CurveTCoordinate's which make up the shape of the internal edge
|
Name | Description | |
---|---|---|
Equals(Object) |
Check if this object is the same as the provided object.
(Overrides StructuralAnalysisObjectBaseEquals(Object).) | |
Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) | |
Equals(StructuralCurveEdge) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.StructuralElements; using ModelExchanger.AnalysisDataModel.Subtypes; namespace ModelExchanger.AnalysisDataModel.Example.StructuralElements { public sealed class StructuralCurveEdgeExample : BaseExample<StructuralCurveEdge> { protected override IReadOnlyCollection<StructuralCurveEdge> CreateAnalysisObjects(AnalysisModel model) { IReadOnlyDictionary<string, StructuralPointConnection> nodes = model.OfType<StructuralPointConnection>().ToDictionary(x => x.Name, x => x); IReadOnlyDictionary<string, StructuralSurfaceMember> surfaces = model.OfType<StructuralSurfaceMember>().ToDictionary(x => x.Name, x => x); return new[] { new StructuralCurveEdge(Guid.NewGuid(), "ES1", surfaces["S8"], new [] { new Curve<StructuralPointConnection>(CurveGeometricalShape.Line, new []{ nodes["N87"], nodes["N88"]}), }), new StructuralCurveEdge(Guid.NewGuid(), "ES2", surfaces["S8"], new [] { new Curve<StructuralPointConnection>(CurveGeometricalShape.Line, new []{ nodes["N89"], nodes["N90"]}), }), new StructuralCurveEdge(Guid.NewGuid(), "ES3", surfaces["S8"], new [] { new Curve<StructuralPointConnection>(CurveGeometricalShape.Arc3P, new []{ nodes["N87"], nodes["N90"], nodes["N94"]}), }), }; } } }