Bitbybit Docs
    Preparing search index...

    Class ZigZagBetweenTwoWiresDto<T> (Inputs.OCCT)

    Two wires and a bounce count for shapes.wire.createZigZagBetweenTwoWires, which draws a polyline bouncing between them.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalwire1: T
      • Optionalwire2: T
      • OptionalnrZigZags: number
      • Optionalinverse: boolean
      • OptionaldivideByEqualDistance: boolean
      • OptionalzigZagsPerEdge: boolean

      Returns ZigZagBetweenTwoWiresDto<T>

    Properties

    wire1: T

    The wire the zig-zag starts on.

    undefined
    
    wire2: T

    The wire the zig-zag bounces to.

    undefined
    
    nrZigZags: number

    How many bounces to draw, per edge with zigZagsPerEdge or over the whole wire without; one bounce is two segments meeting at a corner.

    20
    

    1

    Infinity

    1

    inverse: boolean

    When true, the zig-zag starts on the second wire instead of the first.

    false
    
    divideByEqualDistance: boolean

    When true, the bounce points are spaced by length along the wires; when false they follow the curves' parameters, which can be uneven.

    false
    
    zigZagsPerEdge: boolean

    When true, each edge of the wires gets nrZigZags bounces and the wires need matching edge counts; when false the count covers the whole wire.

    true