Show / Hide Table of Contents

    Class Polygon

    A Polygon is piece of Surface and is composed of Edges. A Polygon must not be self-crossing and must have all its edges in a single plane.

    Inheritance
    object
    Polygon
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: DesignData.SDS2.Primitives
    Assembly: DesignData.SDS2.Primitives.dll
    Syntax
    public sealed class Polygon

    Constructors

    Polygon(EdgeList)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    Polygon(EdgeList, string)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    Polygon(EdgeList, string, int)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    Polygon(EdgeList, string, int, int)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    Polygon(EdgeList, string, int, int, bool)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    Polygon(EdgeList, string, int, int, bool, int)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface, int surfaceType)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    int surfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    Polygon(EdgeList, string, int, int, bool, int, int)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface, int surfaceType, int intensity)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    int surfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    int intensity

    Specifies color intensity.

    Polygon(EdgeList, string, int, int, bool, int, int, int)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface, int surfaceType, int intensity, int cutOperation)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    int surfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    int intensity

    Specifies color intensity.

    int cutOperation

    Indicates the type of cut that created this polygon.

    Polygon(EdgeList, string, int, int, bool, int, int, int, bool)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface, int surfaceType, int intensity, int cutOperation, bool cutSurface)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    int surfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    int intensity

    Specifies color intensity.

    int cutOperation

    Indicates the type of cut that created this polygon.

    bool cutSurface

    Indicates if the polygon is part of a surface created by a cut.

    Polygon(EdgeList, string, int, int, bool, int, int, int, bool, bool)

    Create a Polygon for a Surface.

    Declaration
    public Polygon(EdgeList edges, string hexcolor, int faceNumber, int neutralSurface, bool radiusSurface, int surfaceType, int intensity, int cutOperation, bool cutSurface, bool layout)
    Parameters
    Type Name Description
    EdgeList edges

    The sequence of Edges that comprise this Polygon.

    string hexcolor

    A string beginning with "#" followed by six hexidecimal digits specifying a color.

    int faceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    int neutralSurface

    Specifies which neutral axis the polygon belongs to, if any.

    bool radiusSurface

    Indicates if the polygon is part of a curve.

    int surfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    int intensity

    Specifies color intensity.

    int cutOperation

    Indicates the type of cut that created this polygon.

    bool cutSurface

    Indicates if the polygon is part of a surface created by a cut.

    bool layout

    Indicates if the polygon specifies a layout.

    Properties

    A

    A is a coefficient of the plane equation specifying the plane that the polygon is in.

    Declaration
    public double A { get; }
    Property Value
    Type Description
    double

    B

    B is a coefficient of the plane equation specifying the plane that the polygon is in.

    Declaration
    public double B { get; }
    Property Value
    Type Description
    double

    BoundBLF

    This point is the bottom, left, front point of the Polygon bounding box.

    Declaration
    public Point3D BoundBLF { get; }
    Property Value
    Type Description
    Point3D

    BoundTRB

    This point is the top, right, back point of the Polygon bounding box.

    Declaration
    public Point3D BoundTRB { get; }
    Property Value
    Type Description
    Point3D

    C

    C is a coefficient of the plane equation specifying the plane that the polygon is in.

    Declaration
    public double C { get; }
    Property Value
    Type Description
    double

    CutOperation

    CutOperation indicates the type of cut that created this polygon: CUT_{NONE,BURN,SAW,SHEAR,SQUARE,MILL,GENERIC}

    Declaration
    public int CutOperation { get; set; }
    Property Value
    Type Description
    int

    D

    D is a coefficient of the plane equation specifying the plane that the polygon is in.

    Declaration
    public double D { get; }
    Property Value
    Type Description
    double

    Edges

    The sequence of Edges that comprise this Polygon.

    Declaration
    public EdgeList Edges { get; set; }
    Property Value
    Type Description
    EdgeList

    FaceNumber

    FaceNumber is an integer specifying what face the polygon is a part of. If the polygon is not on any face, FaceNumber is 0.

    Declaration
    public int FaceNumber { get; set; }
    Property Value
    Type Description
    int

    Hexcolor

    Hexcolor is a string beginning with "#" followed by six hexidecimal digits specifying a color.

    Declaration
    public string Hexcolor { get; set; }
    Property Value
    Type Description
    string

    Intensity

    Intensity is an integer specifying color intensity.

    Declaration
    public int Intensity { get; set; }
    Property Value
    Type Description
    int

    IsCutSurface

    IsCutSurface indicates if the polygon is part of a cut.

    Declaration
    public bool IsCutSurface { get; set; }
    Property Value
    Type Description
    bool

    IsLayout

    IsLayout indicates if the polygon specifies a layout.

    Declaration
    public bool IsLayout { get; set; }
    Property Value
    Type Description
    bool

    IsRadiusSurface

    IsRadiusSurface indicates if the polygon is part of a curve.

    Declaration
    public bool IsRadiusSurface { get; set; }
    Property Value
    Type Description
    bool

    IsValidGeometry

    Indicates if A, B, C, D, BoundBLF, BoundTRB are valid.

    Declaration
    public bool IsValidGeometry { get; }
    Property Value
    Type Description
    bool

    NeutralSurface

    NeutralSurface specifies which neutral axis the polygon belongs to, if any.

    Declaration
    public int NeutralSurface { get; set; }
    Property Value
    Type Description
    int

    SurfaceType

    SurfaceType is an integer indicating the polygon is an inside surface (1), cap (2), cross section(3), pattern (4), weld (5), hole face (6), hole side (8), neutral axis (7), or none of these (0).

    Declaration
    public int SurfaceType { get; set; }
    Property Value
    Type Description
    int

    Methods

    Equals(Polygon, double)

    A Polygon is piece of Surface and is composed of Edges. A Polygon must not be self-crossing and must have all its edges in a single plane.

    Declaration
    public bool Equals(Polygon polygon, double accy = 1.1920928955078125E-07)
    Parameters
    Type Name Description
    Polygon polygon
    double accy
    Returns
    Type Description
    bool

    Equals(object)

    A Polygon is piece of Surface and is composed of Edges. A Polygon must not be self-crossing and must have all its edges in a single plane.

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    ~Polygon()

    A Polygon is piece of Surface and is composed of Edges. A Polygon must not be self-crossing and must have all its edges in a single plane.

    Declaration
    protected ~Polygon()

    GetHashCode()

    A Polygon is piece of Surface and is composed of Edges. A Polygon must not be self-crossing and must have all its edges in a single plane.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    Back to top