manifold icon indicating copy to clipboard operation
manifold copied to clipboard

mesh id handling

Open pca006132 opened this issue 1 year ago • 4 comments

See #678 for discussion. Basically:

  1. Use zero as a special mesh ID. IncrementMeshIDs will only remap non-zero IDs. Constructors automatically assign mesh ID zero. This allows coplanar triangles to be collapsed by default unless explicitly opt-out.
  2. Allow AsOriginal(id) to take an optional parameter to specify the ID to apply to. This allows preserving the ID zero.

pca006132 avatar Jan 14 '24 10:01 pca006132