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

Aperta
#1,780 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
C++
Stelle
4.2k
Fork
600
Merge medio
9h 37m
PR unite (30g)
9

Preparare l'ambiente

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 solvespace/solvespace

Tutte le issue di solvespace/solvespace

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.