Bitbybit Docs
    Preparing search index...

    Class StarDto (Inputs.JSCAD)

    Feeds polygon.star: a filled star in the XY plane, given by its 2D center, how many tips it has, how far the tips and the notches between them reach and where the first tip points.

    Index

    Constructors

    • Parameters

      • Optionalcenter: Point2
      • Optionalvertices: number
      • Optionaldensity: number
      • OptionalouterRadius: number
      • OptionalinnerRadius: number
      • OptionalstartAngle: number

      Returns Bit.Inputs.JSCAD.StarDto

    Properties

    center: Point2

    The 2D center point, as X and Y in the plane

    [0, 0]
    
    vertices: number

    Number of tips; the star has as many notches between them

    10
    

    0

    Infinity

    1

    density: number

    Read only when innerRadius is 0: how many tips apart the edges connect, 2 for a pentagram, from which the notch radius is derived

    1
    

    0

    Infinity

    0.1

    outerRadius: number

    Distance from the center to each tip, in model units

    2
    

    0

    Infinity

    0.1

    innerRadius: number

    Distance from the center to each notch, in model units; 0 lets density decide it

    1
    

    0

    Infinity

    0.1

    startAngle: number

    Direction of the first tip, in degrees counter-clockwise from the X axis

    0
    

    -Infinity

    Infinity

    1