Export 2d Section writes an empty file when the plane cuts nothing

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp

調査の方向性

Start at MakeEdgesInPlaneInto in src/mesh.cpp:67 and compare this mesh export path with how Export Surfaces handles a mesh. Reproduce with the reported box and section plane, then verify the export no longer silently writes an empty SVG when the plane cuts nothing; the issue suggests refusing the mesh with a message. The reporter says they have a patch, so check the thread before starting.

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

説明

waiting-on-author

Export 2d Section writes a file even when the plane cuts nothing, with no error.
The SVG has no paths and says width='-19999999990.000mm'.

On r2235.3297d9a3, Linux: rectangle, extrude, set two sided, tick "force NURBS
surfaces to triangle mesh". Select a corner point and two perpendicular lines of
the rectangle, so the plane is the sketch plane through the middle of the body.
Export 2d Section as SVG gives 2237 bytes, nothing in it. On a flat face of the
same box it works.

MakeEdgesInPlaneInto (src/mesh.cpp:67) keeps only triangles lying entirely in
the plane, so on a mesh there is nothing to cut and the empty list gets written
out anyway. You get a mesh by linking an STL, or by ticking that option after a
failed boolean, which the failure message tells you to do.

Export Surfaces refuses a mesh with a message instead. Same here would do, and I
have a patch.

主要言語
C++
スター
4.2k
フォーク
600
平均マージ
9時間 37分
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

solvespace/solvespace のほかの issue

solvespace/solvespace の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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