Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Ship shared projects and CAD reliability updates
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
cleanNearZero,
|
||||
cleanRotationDegrees,
|
||||
fallbackSolidColor,
|
||||
meshYawDegrees,
|
||||
mirroredAxisCount,
|
||||
mirrorSign,
|
||||
normalizeDegrees,
|
||||
@@ -50,6 +51,17 @@ describe("workplane shape helpers", () => {
|
||||
expect(cleanRotationDegrees(12.34)).toBe(12.3);
|
||||
});
|
||||
|
||||
it("preserves the meaningful yaw of low-sided circular primitives", () => {
|
||||
const triangularPrism = shape({ kind: "cylinder", width: 10, depth: 10, sides: 3 });
|
||||
|
||||
expect(meshYawDegrees({ ...triangularPrism, rotation: 30 })).toBeCloseTo(30);
|
||||
expect(meshYawDegrees({ ...triangularPrism, rotation: 150 })).toBeCloseTo(30);
|
||||
expect(meshYawDegrees({ ...triangularPrism, rotation: 90 })).toBeCloseTo(-30);
|
||||
expect(meshYawDegrees({ ...triangularPrism, width: 12, rotation: 150 })).toBe(150);
|
||||
expect(meshYawDegrees({ ...triangularPrism, kind: "box", rotation: 30 })).toBe(30);
|
||||
expect(meshYawDegrees({ ...triangularPrism, sides: 96, rotation: 90 })).toBe(0);
|
||||
});
|
||||
|
||||
it("cleans near-zero values and derives dimensions", () => {
|
||||
const base = shape({ size: 30, width: 18, depth: 24 });
|
||||
expect(cleanNearZero(0.004)).toBe(0);
|
||||
|
||||
Reference in New Issue
Block a user