davidcsterratt / RTriangle

Port of the Triangle Two-Dimensional Quality Mesh Generator and Delaunay Triangulator to R
https://cran.r-project.org/package=RTriangle
9 stars 4 forks source link

add the Neighbor (NB) as one of output values. #13

Closed shulele closed 5 years ago

shulele commented 5 years ago

It is very useful to export the neighbor-relationship with the triangles.

I am trying to use the RTriangle Package in my PIHMgisR tool, that is a GIS-processing for Penn State Integrated Hydrologic Model (PIHM). After I build the triangle, it is necessary to define the neighbor-relationship among triangles for modeling. I have my own code to build the topological relationship in R and C, but due to the algorithm, it is very time-consuming to build the relationship when the number of triangles become larger than larger. I notice the C version of the code already exports the neighbor-relationship, so it would be nice to update these two files and export the topological relationship explicitly.

davidcsterratt commented 5 years ago

I have committed the first commit - there are some extra things that need to be done described in Issue #14.