Function CreateLines
-
CreateLines(
name: string,
options: {
colors?: Color4[];
instance?: Nullable<LinesMesh>;
material?: Material;
points: Vector3[];
updatable?: boolean;
useVertexAlpha?: boolean;
},
scene?: Nullable<Scene>,
): LinesMeshParameters
- name: string
defines the name of the new line system
- options: {
colors?: Color4[];
instance?: Nullable<LinesMesh>;
material?: Material;
points: Vector3[];
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 mesh
- name: string
Creates a line mesh A line mesh is considered as a parametric shape since it has no predefined original shape. Its shape is determined by the passed array of points as an input parameter
pointsis an array successive Vector3instanceis an instance of an existing LineMesh object to be updated with the passedpointsparameter : https://doc.babylonjs.com/features/featuresDeepDive/mesh/dynamicMeshMorph#lines-and-dashedlinescolorsis an array of successive Color4, one per line pointuseVertexAlphais to be set tofalse(defaulttrue) when you don't need 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