Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cut holes in mesh

オープン
#144 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
1.3k
フォーク
183
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nmwsharp/geometry-central のほかの issue

nmwsharp/geometry-central の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。