Class ParametricProfile
A profile whose vertex locations are defined by a parametric expression.
Inheritance
System.Object
ParametricProfile
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.Geometry.Profiles
Assembly: Hypar.Elements.dll
Syntax
public class ParametricProfile : Profile, INotifyPropertyChanged, IEquatable<Profile>
Constructors
ParametricProfile(List<VectorExpression>, List<List<VectorExpression>>, Polygon, IList<Polygon>, Guid, String)
Create a parametric profile.
Declaration
[JsonConstructor]
public ParametricProfile(List<VectorExpression> perimeterVectorExpressions, List<List<VectorExpression>> voidVectorExpressions = null, Polygon perimeter = null, IList<Polygon> voids = null, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<VectorExpression> | perimeterVectorExpressions | |
System.Collections.Generic.List<System.Collections.Generic.List<VectorExpression>> | voidVectorExpressions | |
Polygon | perimeter | The perimeter of the profile. |
System.Collections.Generic.IList<Polygon> | voids | The voids of the profile. |
System.Guid | id | The unique identifier of the profile. |
System.String | name | The name of the profile. |
Properties
PerimeterVectorExpressions
A collection of vector expressions.
Declaration
public List<VectorExpression> PerimeterVectorExpressions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<VectorExpression> |
VoidVectorExpressions
A collection of vector expressions.
Declaration
public List<List<VectorExpression>> VoidVectorExpressions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.List<VectorExpression>> |
Methods
SetGeometryAsync()
Create the geometry of the parametric profile.
Declaration
public async Task SetGeometryAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetPropertiesFromProfileData(Dictionary<String, Double>, String)
Set the properties or public member values of this profile instance to the values contained in the supplied dictionary.
Declaration
public void SetPropertiesFromProfileData(Dictionary<string, double> profileData, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Double> | profileData | A dictionary of property values. |
System.String | name | The name of the profile. |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IEquatable<T>