You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<meshname="Ocean" @update:obj="handleMesh">
<geometrytype="Plane" :args="[10000, 10000, 40, 40]"></geometry>
<materialtype="MeshBasic" :color="0x0044ff">
<texture :options="txtOpts"></texture>
</material>
</mesh>
<script>// ...handleMesh(mesh) {if (!mesh) return// do something on the mesh...let g =mesh.geometryg.rotateX(-Math.PI/2)for (let i =0, l =g.vertices.length; i < l; i++) {g.vertices[ i ].y=10*Math.sin(i /2) }this.geom= g}</script>
I'm trying to create some lines according to this tutorial https://threejs.org/docs/index.html#manual/en/introduction/Drawing-lines, could I have help translating this into your module?
To be specific, I'm not sure how to create the Line or the Vector3D object.
Thank you!
The text was updated successfully, but these errors were encountered: