Show / Hide Table of Contents

    Class ModelCurveExtensions

    Extension methods for model curves.

    Inheritance
    System.Object
    ModelCurveExtensions
    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 static class ModelCurveExtensions

    Methods

    ToModelCurves(BBox3, Transform, Material)

    Convert a Bounding Box to a set of model curves.

    Declaration
    public static IList<ModelCurve> ToModelCurves(this BBox3 box, Transform context = null, Material material = null)
    Parameters
    Type Name Description
    BBox3 box

    The bounding box to convert.

    Transform context

    An optional transform in which these curves should be drawn.

    Material material

    An optional material to use for these curves.

    Returns
    Type Description
    System.Collections.Generic.IList<ModelCurve>

    ToModelCurves(Profile, Transform, Material)

    Convert a profile to a set of model curves.

    Declaration
    public static IList<ModelCurve> ToModelCurves(this Profile p, Transform context = null, Material material = null)
    Parameters
    Type Name Description
    Profile p

    The profile to convert.

    Transform context

    An optional transform in which these curves should be drawn.

    Material material

    An optional material to use for these curves.

    Returns
    Type Description
    System.Collections.Generic.IList<ModelCurve>

    ToModelCurves(Transform, Transform)

    Convert a transform to a set of model curves.

    Declaration
    public static IList<ModelCurve> ToModelCurves(this Transform t, Transform context = null)
    Parameters
    Type Name Description
    Transform t

    The transform to convert.

    Transform context

    An optional transform in which these curves should be drawn.

    Returns
    Type Description
    System.Collections.Generic.IList<ModelCurve>

    ToModelCurves(Grid2d, Transform, Material)

    Convert a Grid2d to a set of model curves.

    Declaration
    public static IEnumerable<ModelCurve> ToModelCurves(this Grid2d grid, Transform context = null, Material material = null)
    Parameters
    Type Name Description
    Grid2d grid

    The grid to convert.

    Transform context

    An optional transform to apply to these curves.

    Material material

    An optional material to use for these curves.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ModelCurve>