Drawing lines documentation refers to Geometry instead of BufferGeometry
See original GitHub issueDescription of the problem
The “Drawing lines” documentation uses Geometries in the code snippet. It should be updated to use BufferGeometries.
Using BufferGeometry is pretty much the same number of lines of code:
const geometry = new THREE.BufferGeometry();
const points = [];
points.push(new THREE.Vector3( -10, 0, 0) );
points.push(new THREE.Vector3( 0, 10, 0) );
points.push(new THREE.Vector3( 10, 0, 0) );
geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( points, 3 ) );
Three.js version
- Dev
- r112
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, …)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Drawing lines – three.js docs
Let's say you want to draw a line or a circle, not a wireframe Mesh. First we need to set up the renderer,...
Read more >THREE.js - passing attributes to BufferGeometry instead of ...
This line bufferLineGeo.fromGeometry( lineGeo );. will not populate the position attribute if no faces are defined. Do this instead
Read more >Getting Creative with The Built-In Geometries
Technically speaking, the geometries we will create are “buffer” geometries, which means that their data is stored in flat arrays called buffers.
Read more >geometryEngine | API Reference | ArcGIS Maps SDK for ...
A client-side geometry engine for testing, measuring, and analyzing the spatial relationship between two or more 2D geometries. If more than one geometry...
Read more >boxes/BufferGeometry.html at master · hudmol/boxes
boxes/three.js/docs/api/core/BufferGeometry.html ... Use addDrawCall to add draw calls, rather than modifying this array directly.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
O, the text of the documentation should also be updated! (it was using regular Geometry because it was easier, which is not the case anymore)
54011b6c0fbd324d2dcff98d53485deb869be2d4