Hello ~
I have any questions, how to make a square object display grid linesοΌ
You can achieve this with THREE.WireframeGeometry.
mesh = new THREE.Mesh(geometry, material, line);
This statement is not correct since the constructor of THREE.Mesh only takes two parameters.
Try it like so:
mesh = new THREE.Mesh(geometry, material);
mesh.add( line );
Pleas use the exact code I have provided you. You should do:
mesh.add( line );
scene.add( mesh );
Right now, you are not adding the mesh to your scene.







