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
    System.Object
    Polygon
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.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.

    System.String hexcolor

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

    Polygon(EdgeList, String, Int32)

    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.

    System.String hexcolor

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

    System.Int32 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, Int32, Int32)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    Polygon(EdgeList, String, Int32, Int32, Boolean)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    Polygon(EdgeList, String, Int32, Int32, Boolean, Int32)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    System.Int32 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, Int32, Int32, Boolean, Int32, Int32)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    System.Int32 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).

    System.Int32 intensity

    Specifies color intensity.

    Polygon(EdgeList, String, Int32, Int32, Boolean, Int32, Int32, Int32)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    System.Int32 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).

    System.Int32 intensity

    Specifies color intensity.

    System.Int32 cutOperation

    Indicates the type of cut that created this polygon.

    Polygon(EdgeList, String, Int32, Int32, Boolean, Int32, Int32, Int32, Boolean)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    System.Int32 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).

    System.Int32 intensity

    Specifies color intensity.

    System.Int32 cutOperation

    Indicates the type of cut that created this polygon.

    System.Boolean cutSurface

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

    Polygon(EdgeList, String, Int32, Int32, Boolean, Int32, Int32, Int32, Boolean, Boolean)

    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.

    System.String hexcolor

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

    System.Int32 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.

    System.Int32 neutralSurface

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

    System.Boolean radiusSurface

    Indicates if the polygon is part of a curve.

    System.Int32 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).

    System.Int32 intensity

    Specifies color intensity.

    System.Int32 cutOperation

    Indicates the type of cut that created this polygon.

    System.Boolean cutSurface

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

    System.Boolean 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
    System.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
    System.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
    System.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
    System.Int32

    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
    System.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
    System.Int32

    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
    System.String

    Intensity

    Intensity is an integer specifying color intensity.

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

    IsCutSurface

    IsCutSurface indicates if the polygon is part of a cut.

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

    IsLayout

    IsLayout indicates if the polygon specifies a layout.

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

    IsRadiusSurface

    IsRadiusSurface indicates if the polygon is part of a curve.

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

    IsValidGeometry

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

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

    NeutralSurface

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

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

    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
    System.Int32

    Methods

    Equals(Polygon, Double)

    Declaration
    public bool Equals(Polygon polygon, double accy)
    Parameters
    Type Name Description
    Polygon polygon
    System.Double accy
    Returns
    Type Description
    System.Boolean

    Equals(Object)

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

    Finalize()

    Declaration
    protected void Finalize()

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    Back to top