Request

Response

    Autodesk.Viewing.Extensions
    Version 8 preview
    This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.

    WireframesExtension

    Provides the ability of rendering the model in wireframe mode. The method implemented is not very performant, so it’s best to avoid using it with large models.

    The extension id is: Autodesk.Viewing.Wireframes

    Examples

    viewer.loadExtension('Autodesk.Viewing.Wireframes')
    

    Methods

    Enters wireframe mode.

    Exits wireframe mode.

    Whether to replace the standard materials with a solid one, or not.

    Parameters

    show*
    boolean
    * Required

    showLines(show)

    Whether to render line edges or not.

    Parameters

    show*
    boolean
    * Required

    setSolidMaterial(material)

    Replaces the solid material.

    Parameters

    material*
    THREE.Material
    * Required

    setLinesMaterial(material)

    Replaces the line material.

    Parameters

    material*
    THREE.Material
    * Required

    setLightPreset(name)

    Specifies the light preset to use when wireframe mode is activated.

    Parameters

    name*
    string
    the name of the light preset
    * Required