hugoledoux / startin

A Delaunay triangulator for processing TINs
MIT License
34 stars 9 forks source link

if duplicates, then let user choose which z-value should be kept #22

Closed hugoledoux closed 1 month ago

hugoledoux commented 11 months ago
evetion commented 11 months ago

Could you clarify the context? What duplicates, in what call?

hugoledoux commented 11 months ago

duplicates in x-y so insertion where a vertex already exists.

Right now the first insertion is what stays, but some applications (creation of a DSM eg) would benefit from another behaviour.

hugoledoux commented 10 months ago

Done in 5e9f626517ce4943e61865bc11f751aca813ad4f

It's a new attribute of the Triangulation struct that can be setup with set_duplicates_handling() and there are four choices:

  1. First (default)
  2. Last
  3. Highest
  4. Lowest