MaterialLineBasicMaterial

LineDashedMaterial

A material for drawing wireframe-style geometries with dashed lines.

Code Example

const material = new v3d.LineDashedMaterial({ color: 0xffffff, linewidth: 1, scale: 1, dashSize: 3, gapSize: 1, });

Constructor

LineDashedMaterial(parameters : Object)

parameters — (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from LineBasicMaterial) can be passed in here.

Properties

See the base LineBasicMaterial class for common properties.

.dashSize : Float

The size of the dash. This is both the gap with the stroke. Default is 3.

.gapSize : Float

The size of the gap. Default is 1.

.isLineDashedMaterial : Boolean

Read-only flag to check if a given object is of type LineDashedMaterial.

.scale : Float

The scale of the dashed part of a line. Default is 1.

Methods

See the base LineBasicMaterial class for common methods.

Source

For more info on how to obtain the source code of this module see this page.