Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cut holes in mesh

Aperta
#144 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Start by reading the mesh construction logic in src/surface/manifold_surface_mesh.cpp around lines 48 and 154-161, then inspect SeparateEdge around lines 671 and 808-814. Reproduce the reported failures with a mesh containing an interior edge loop. Done means the library can represent the loop as a boundary or clearly documents the supported approach.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

First of all, a huge thanks for creating this fantastic library!

I've been experimenting with GC inside of Rhino to work with modelling terrains. One thing I'm struggling with is cutting holes in the mesh. Consider this basic example:

Initial mesh:
image

Faces to remove:
image

Resulting mesh with a hole inside:
image

I tried several approaches:

  1. Omit the interior faces while constructing a new mesh:
    https://github.com/nmwsharp/geometry-central/blob/ebe40292466517b2139f8f546688db278414e3bb/src/surface/manifold_surface_mesh.cpp#L48

This fails here:
https://github.com/nmwsharp/geometry-central/blob/ebe40292466517b2139f8f546688db278414e3bb/src/surface/manifold_surface_mesh.cpp#L154-L161

  1. Pass the edges defining the interior boundary to the SeparateEdge function
    https://github.com/nmwsharp/geometry-central/blob/ebe40292466517b2139f8f546688db278414e3bb/src/surface/manifold_surface_mesh.cpp#L671

Which fails here;
https://github.com/nmwsharp/geometry-central/blob/ebe40292466517b2139f8f546688db278414e3bb/src/surface/manifold_surface_mesh.cpp#L808-L814

Is there a straight-forward way to define an edge loop as a boundary?
@nmwsharp, @MarkGillespie, @keenancrane

Lingua principale
C++
Stelle
1.3k
Fork
183
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nmwsharp/geometry-central

Tutte le issue di nmwsharp/geometry-central

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.