Fix sphere: zero height and zero diameter

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, unity
領域
tooling

調査の方向性

The payload names no files, only the sphere generator and related issues #184 to #188, so locate the sphere generator and its size handling in the repository first. Compare it with the cylinder behaviour described in #186, which grows again when dragged past zero. Done means the sphere cannot be sized to zero height or diameter, negative sizes still build a valid shape, and creating at zero size cancels. The general rule covers every generator, so agree the scope with maintainers before touching them all.

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

説明

Problems when drawing and editing a sphere:

  1. Sizing the height to zero makes it flat. As with the other generators, the sphere can be sized down to zero height, which leaves it flat as a pancake.
  2. The diameter can be made zero. Dragging the diameter past zero keeps it at zero, as with the capsule's width (#185). It should behave like the cylinder (#186): dragging past zero makes it grow again on the other side, never stopping at zero.

Rule for all generators: negative sizes are allowed, and every generator builds a valid shape from them (swapping sides under the hood, so the brush is the right way out). A zero size is never allowed: creating at zero size cancels, and an existing generator can't be made zero sized.

Related: box (#184), capsule (#185), cylinder (#186), inspector values (#187), hemisphere (#188).

主要言語
C#
スター
135
フォーク
15
平均マージ
24分
マージ済み PR(30日)
90

環境構築

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

はじめの一歩

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

RadicalCSG/com.chisel のほかの issue

RadicalCSG/com.chisel の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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