Show / Hide Table of Contents

    Method poly3

    | Improve this Doc View Source

    poly3(Double[], Double[], Double[], Boolean[], Boolean)

    plpoly3: Draw a polygon in 3 space

    Declaration
    public void poly3(Double[] x, Double[] y, Double[] z, Boolean[] draw, Boolean ifcc)
    Parameters
    Type Name Description
    Double[] x

    A vector containing n x coordinates of points.

    Double[] y

    A vector containing n y coordinates of points.

    Double[] z

    A vector containing n z coordinates of points.

    Boolean[] draw

    A vector containing n-1 Boolean values which control drawing the segments of the polygon. If draw[i] is true, then the polygon segment from index [i] to [i+1] is drawn, otherwise, not.

    Boolean ifcc

    If ifcc is true the directionality of the polygon is determined by assuming the points are laid out in a counter-clockwise order. Otherwise, the directionality of the polygon is determined by assuming the points are laid out in a clockwise order.

    Remarks

    Draws a polygon in 3 space defined by n points in x, y, and z. Setup like plline3, but differs from that function in that plpoly3 attempts to determine if the polygon is viewable depending on the order of the points within the vector and the value of ifcc. If the back of polygon is facing the viewer, then it isn't drawn. If this isn't what you want, then use plline3 instead.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX