Bitbybit Docs
    Preparing search index...

    Class ExpandDto (Inputs.JSCAD)

    Feeds expansions.expand: the geometry, the signed distance to move its boundary by and how the corners are shaped, rounded unless corners says otherwise.

    Index

    Constructors

    Properties

    geometry: JSCADEntity

    The 2D shape, path or solid to grow; it stays as it is and a new entity comes back

    undefined
    
    delta?: number

    How far the boundary moves, in model units: positive grows the geometry, negative shrinks it; a solid or a path accepts a positive value only

    0.1
    

    -Infinity

    Infinity

    0.1

    How a convex corner is shaped: round curves it with segments pieces, chamfer cuts it flat, edge keeps it sharp; a solid accepts round only

    round
    
    segments?: number

    Number of straight pieces a round corner is made of over a full circle; more makes it smoother, and a solid needs at least 4

    24
    

    0

    Infinity

    1