Bitbybit Docs
    Preparing search index...

    Class ExtrudePolygonDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.extrudePolygon: the outline of a flat polygon in the XZ plane, its holes, and how far it is extruded downward.

    Index

    Constructors

    Properties

    shape: Vector3[]

    The outline points in order, only X and Z used; the outline must not cross itself

    holes?: Vector3[][]

    Lists of points, one outline per hole through the extrusion

    true

    depth: number

    How far the polygon is extruded downward along Y, in scene units

    1
    

    0

    Infinity

    0.1

    sideOrientation: sideOrientationEnum

    Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind

    frontside
    
    wrap: boolean

    When true, the sides get texture coordinates that wrap around the extrusion

    false
    
    enableShadows: boolean

    When true, the mesh casts and receives shadows from the lights that have them enabled

    true