- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
I thought about the “locate the adjacent triangle” problem also. My TIN’s are saved in a binary file and I am loading all the triangles into memory to make searches faster. I also have a function that locates a triangle given any X,Y point, so I can pick a point and instantaneously load the correct triangle and calculate the elevation on the triangle surface. So I thought I would be able to locate the adjacent triangle by first locating the downhill point of the trace line on the first triangle, then extend the slope line by say 0.1 unit, calculate the coordinates of the extended point, and use those X,Y coordinates to identify the adjacent triangle.
Using LISP I thought you might be able to use the downhill point and select the two 3DFACES that cross that point, filter out the uphill face, and use the downhill face to continue the trace.
Using either method my require some filtering in case the downhill point lands on a triangle corner or a flat face.
I have attached a TIN drawing file for you to play with. It has about 1000 3DFACE's and also some contour lines. I cut the data from a larger drawing that was created from LIDAR points. It is an R14 drawing. Let me know if you can read it.
I have not tried Civil3D since I can do everything I need to do in R14 plus I do not care for AutoDesk's "rent a program" policy and I did not like the idea of having to buy a new C compiler every time AutoCAD was updated. I am also old and retired so I just program to keep my mind working.