Function CreateDashedLines
-
CreateDashedLines(
name: string,
options: {
dashNb?: number;
dashSize?: number;
gapSize?: number;
instance?: LinesMesh;
material?: Material;
points: Vector3[];
updatable?: boolean;
useVertexAlpha?: boolean;
},
scene?: Nullable<Scene>,
): LinesMeshParameters
- name: string
defines the name of the mesh
- options: {
dashNb?: number;
dashSize?: number;
gapSize?: number;
instance?: LinesMesh;
material?: Material;
points: Vector3[];
updatable?: boolean;
useVertexAlpha?: boolean;
}defines the options used to create the mesh
- scene: Nullable<Scene> = null
defines the hosting scene
Returns LinesMesh
the dashed line mesh
- name: string
Creates a dashed line mesh
pointsis an array successive Vector3dashNbis the intended total number of dashes (positive integer, default 200)dashSizeis the size of the dashes relatively the dash number (positive float, default 3)gapSizeis the size of the gap between two successive dashes relatively the dash number (positive float, default 1)instanceis an instance of an existing LineMesh object to be updated with the passedpointsparameter : https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#lines-and-dashedlinesuseVertexAlphais to be set tofalse(defaulttrue) when you don't need the alpha blending (faster)materialis the material to use to draw the lines if provided. If not, a default material will be createdupdatable(default false) if its internal geometry is supposed to change once created