LineSegmentsGeometry constructor
LineSegmentsGeometry()
Implementation
LineSegmentsGeometry():super(){
this.type = 'LineSegmentsGeometry';
const List<double> positions = [ - 1, 2, 0, 1, 2, 0, - 1, 1, 0, 1, 1, 0, - 1, 0, 0, 1, 0, 0, - 1, - 1, 0, 1, - 1, 0 ];
const List<double> uvs = [ - 1, 2, 1, 2, - 1, 1, 1, 1, - 1, - 1, 1, - 1, - 1, - 2, 1, - 2 ];
const index = [ 0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5 ];
this.setIndex( index );
this.setAttributeFromString( 'position', new Float32BufferAttribute.fromList( positions, 3 ) );
this.setAttributeFromString( 'uv', new Float32BufferAttribute.fromList( uvs, 2 ) );
}