Function CreateLineSystem
-
CreateLineSystem(
name: string,
options: {
colors?: Nullable<Color4[][]>;
instance?: Nullable<LinesMesh>;
lines: Vector3[][];
material?: Material;
updatable?: boolean;
useVertexAlpha?: boolean;
},
scene?: Nullable<Scene>,
): LinesMeshParameters
- name: string
defines the name of the new line system
- options: {
colors?: Nullable<Color4[][]>;
instance?: Nullable<LinesMesh>;
lines: Vector3[][];
material?: Material;
updatable?: boolean;
useVertexAlpha?: boolean;
}defines the options used to create the line system
- scene: Nullable<Scene> = null
defines the hosting scene
Returns LinesMesh
a new line system mesh
- name: string
Creates a line system mesh. A line system is a pool of many lines gathered in a single mesh
linesis an array of lines, each line being an array of successive Vector3instanceis an instance of an existing LineSystem object to be updated with the passedlinesparametercolorsis an array of line colors, each line colors being an array of successive Color4, one per line pointuseVertexAlphais 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 createdlinesarray : https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#lines-and-dashedlinesupdatable(default false) if its internal geometry is supposed to change once created