Creating a line that contours a grid with three.js

I have a simple square grid that has elevation values ​​derived from a dataset of ground elevation values. Is there a way that gives two (or more) X, Y coordinates to draw a line that will follow the grid surface (i.e. represent a road on the ground)?

I followed these blog posts to create an elevation mesh and I would like to add a series of lines (points of which have no height values) to the mesh without drawing them onto the texture.

Is there a way to do this without indexing the height values ​​for each point that are on a different X / Y scale?

+3
contour line three.js mesh


source to share


No one has answered this question yet

Check out similar questions:

7
Numerous Three.js stuff on object loaded via OBJMTLLoader
6
Three.js texturing terrain on a hexagon mesh
1
Expanding mesh vertex positions
1
How to get 3D coordinates of a point, given UV coordinates on a 3d plane object - Threejs
0
Algorithm for generating triangular meshes from an array of vertices
0
Algorithm for calculating and displaying a tape on a three-dimensional triangular mesh
0
Unity: create mesh from 2D line
0
three.js - clamp line to the top of the mesh
-1
Threejs create a displaced mesh (terrain model)
-2
Automatic mapping of textures in Three.js file



All Articles
Loading...
X
Show
Funny
Dev
Pics