Show / Hide Table of Contents

    Class ProfileExtensions

    Profile extension methods.

    Inheritance
    System.Object
    ProfileExtensions
    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
    Assembly: Hypar.Elements.dll
    Syntax
    public static class ProfileExtensions

    Methods

    Cleaned(IEnumerable<Profile>, Double)

    For a given collection of profiles, make sure vertices within tolerance of each other are at the same location. This is especially useful for profiles that need to be edited in the Hypar interface via an override.

    ⚠️ Note: this is not a highly precise routine, and the shapes of the input profiles may be slightly distorted as a result.

    Declaration
    public static List<Profile> Cleaned(this IEnumerable<Profile> profiles, double tolerance = 0.01)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Profile> profiles

    The profiles to clean.

    System.Double tolerance

    Below this distance, similar points will be merged.

    Returns
    Type Description
    System.Collections.Generic.List<Profile>

    A cleaned list of profiles.

    PropagateAdditionalProperties(IEnumerable<Profile>, Profile)

    Copy the "additional properties" metadata from one profile to another set of profiles.

    Declaration
    public static void PropagateAdditionalProperties(this IEnumerable<Profile> profiles, Profile source)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Profile> profiles

    The target profiles receiving the new data.

    Profile source

    The source profiles from which the additional properties will be copied.