fix(feature): правки shell по ревью Codex
- сообщение shell считает грани после дедупликации (Distinct) - тест переименован (open_cap) + комментарий о симметрии торцов - RCW-долг транзитов shell задокументирован в OPEN_QUESTIONS v2-2 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ public sealed class FeatureOpsTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Shell_box_hollows_with_open_top()
|
||||
public async Task Shell_box_hollows_with_open_cap()
|
||||
{
|
||||
await _docs.CreateAsync(KompasDocumentType.Part);
|
||||
try
|
||||
@@ -33,7 +33,8 @@ public sealed class FeatureOpsTests
|
||||
await _modeler.ExtrudeAsync(s, depth: 20);
|
||||
var before = (await _query.GetPartInfoAsync()).Volume; // 24000
|
||||
|
||||
// Удаляем одну из двух плоских граней-торцов (площадь 40×30=1200) → открытая оболочка.
|
||||
// Удаляем один из двух плоских торцов (площадь 40×30=1200) → открытая оболочка.
|
||||
// Какой именно торец (верх/низ) — для объёма не важно: результат симметричен.
|
||||
var faces = await _query.ListFacesAsync();
|
||||
var cap = faces.First(f => f.Type == "plane" && Math.Abs(f.Area - 1200) < 1);
|
||||
var id = await _modeler.ShellAsync(new[] { cap.Index }, thickness: 2, outward: false);
|
||||
|
||||
Reference in New Issue
Block a user