Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Perfora — дополнение Autodesk Fusion от 4FusionLab для перф
- Геометрическое ядро использует внутренние единицы Fusion: сантиметры. Преобразования единиц и пользовательские выражения обрабатывай явно на границе с API.
- Дополнение работает на Python, поставляемом Fusion, без сторонних зависимостей времени выполнения.
- Сохраняй совместимость: command ID `DiegoV_Perforator`, UUID из manifest и пространство атрибутов `DiegoV.Perforator` намеренно оставлены после переименования. Их изменение требует продуманной миграции.
- В релизных ZIP числовую версию рассчитывай GitVersion; checked-in `Perfora/Perfora.manifest` не переписывай ради релиза. Сохраняй лицензию GPL-3.0-only и существующие SPDX-заголовки.
- В релизных ZIP числовую версию рассчитывай GitVersion; checked-in `Perfora/Perfora.manifest` не переписывай ради релиза. Сохраняй лицензию PolyForm Noncommercial 1.0.0 и соответствующие SPDX-заголовки.

## Fusion API и интерфейс

Expand Down
805 changes: 131 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Perfora/Perfora.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Add-in entry point. A standard Fusion command with transactional previews."""
import html
import math
Expand Down
2 changes: 1 addition & 1 deletion Perfora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Perforation command for Autodesk Fusion."""
2 changes: 1 addition & 1 deletion Perfora/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""One immutable layout per slot, with bounded command-local region slots."""
from dataclasses import dataclass
from .geometry import generate
Expand Down
2 changes: 1 addition & 1 deletion Perfora/clipping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Exact planar clipping with temporary BRep; no persistent Boolean features."""
import math

Expand Down
2 changes: 1 addition & 1 deletion Perfora/curve_layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Arc-length placement and conservative web checks, without adsk imports.

The evaluator protocol is the CurveEvaluator3D protocol. Its length solver,
Expand Down
2 changes: 1 addition & 1 deletion Perfora/curves.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Shared, dependency-free open planar guide contract (cm).

Adapters supply finite 2D strokes. This module owns normalized arc length,
Expand Down
2 changes: 1 addition & 1 deletion Perfora/cylindrical.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Fusion adapter for fixed radial cuts on one rectangular cylindrical face."""
from dataclasses import dataclass
import json
Expand Down
2 changes: 1 addition & 1 deletion Perfora/cylindrical_geometry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Periodic cylindrical placement for straight radial tools; no Fusion imports.

Tool dimensions live in a tangent plane, X around the cylinder and Y along its
Expand Down
2 changes: 1 addition & 1 deletion Perfora/distribution_fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Shared revision 2 fields, independent of Fusion. All lengths are cm.

Unlike the shipped candidate rejection scheme, solve a whole field's spacing
Expand Down
2 changes: 1 addition & 1 deletion Perfora/distributions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Bounded deterministic layout generators. Pure 2D, centimeters/radians.

Enclosing disks and a spatial hash guarantee the web for every repeating shape,
Expand Down
2 changes: 1 addition & 1 deletion Perfora/feature.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Parametric Perfora timeline node; compute updates owned base geometry."""
from dataclasses import replace
import json
Expand Down
2 changes: 1 addition & 1 deletion Perfora/feature_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Versioned Feature payload; schema 1 remains a single legacy source."""
import json

Expand Down
2 changes: 1 addition & 1 deletion Perfora/geometry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Dependency-free 2D layout. Lengths use Fusion internal units (centimeters)."""
from dataclasses import dataclass
from functools import cached_property
Expand Down
2 changes: 1 addition & 1 deletion Perfora/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Fusion adapter. No UI or filesystem changes; called inside command transactions."""
from dataclasses import replace
import json
Expand Down
2 changes: 1 addition & 1 deletion Perfora/multi_region.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Multi-region CAD preparation. All sources are read before output is modified."""
from dataclasses import dataclass, replace
import json
Expand Down
2 changes: 1 addition & 1 deletion Perfora/numeric_inputs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Numeric expressions over native string inputs, including observable blanks.

Fusion's ValueCommandInput exposes its last valid expression when the visible
Expand Down
2 changes: 1 addition & 1 deletion Perfora/organic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Bounded, deterministic scalar fields and variable-radius blue noise.

No CAD objects or third-party modules. Field topology is resolved on a finite
Expand Down
2 changes: 1 addition & 1 deletion Perfora/preview.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Cached graphics preview; no persistent cell geometry or extrusion."""
from time import perf_counter

Expand Down
2 changes: 1 addition & 1 deletion Perfora/regions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Dependency-free component-space frames for multiple planar regions (cm)."""
import math

Expand Down
2 changes: 1 addition & 1 deletion Perfora/solid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Temporary, exact straight extrusion. Safe during a custom-feature compute."""
import math
import adsk.core
Expand Down
2 changes: 1 addition & 1 deletion Perfora/surface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""One preparation path for curved-face contours, solids and Custom Features.

Dimensions describe local straight tools. Boundary curves are projected exactly
Expand Down
2 changes: 1 addition & 1 deletion Perfora/surface_geometry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Pure local-tool placement and separation on non-planar surface charts."""
from dataclasses import dataclass, replace
import math
Expand Down
2 changes: 1 addition & 1 deletion Perfora/ui_resources.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Resolve Fusion's own themed UI graphics from its current installation."""
from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion PerforaSmokeTest/PerforaSmokeTest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Run from Fusion > Scripts. Exercises real CAD operations without mocks."""
import importlib.util
import json
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p align="center">
<a href="https://github.com/4FusionLab/Perfora/releases/latest"><img src="https://img.shields.io/github/v/release/4FusionLab/Perfora?label=release" alt="Latest release"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-GPL--3.0-blue" alt="GPL-3.0 license"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-PolyForm--Noncommercial-blue" alt="PolyForm Noncommercial license"></a>
<a href="https://github.com/4FusionLab/Perfora/actions/workflows/ci.yml"><img src="https://github.com/4FusionLab/Perfora/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
</p>

Expand Down Expand Up @@ -60,3 +60,5 @@ Works with Autodesk Fusion on **Windows and macOS**. Keep the installed folder i
**Perfora**, goddess of holes, guards clean edges and saves makers from repeating the same pattern by hand. She belongs to the original mythology of **[4FusionLab](https://github.com/4FusionLab)**.

<sub>Independent project, not affiliated with or endorsed by Autodesk.</sub>

Commercial use outside the permitted purposes requires a separate agreement with 4FusionLab.
4 changes: 3 additions & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p align="center">
<a href="https://github.com/4FusionLab/Perfora/releases/latest"><img src="https://img.shields.io/github/v/release/4FusionLab/Perfora?label=release" alt="Последний релиз"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-GPL--3.0-blue" alt="Лицензия GPL-3.0"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-PolyForm--Noncommercial-blue" alt="Лицензия PolyForm Noncommercial"></a>
<a href="https://github.com/4FusionLab/Perfora/actions/workflows/ci.yml"><img src="https://github.com/4FusionLab/Perfora/actions/workflows/ci.yml/badge.svg" alt="Сборка"></a>
</p>

Expand Down Expand Up @@ -60,3 +60,5 @@
**Перфора** — богиня отверстий, хранительница аккуратных кромок и противница ручного повторения узоров. Она входит в авторский пантеон **[4FusionLab](https://github.com/4FusionLab)**.

<sub>Независимый проект, не связанный с Autodesk и не одобренный ею.</sub>

Коммерческое использование за пределами разрешённых лицензией случаев возможно по отдельной договорённости с 4FusionLab.
2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ python3 -m http.server 8768 --bind 127.0.0.1
- `worker.js` — изолированное исполнение Python.
- `scripts/build_web_demo.py` — сборка, образцы и контроль происхождения.

Лицензия кода проекта — GPL-3.0-only. Производные HTML-страницы сохраняют
Лицензия кода проекта — PolyForm Noncommercial 1.0.0. Производные HTML-страницы сохраняют
лицензию проекта; встроенные исходники доступны внутри файла.
2 changes: 1 addition & 1 deletion demo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Static browser demo adapter; not loaded by Autodesk Fusion."""
4 changes: 2 additions & 2 deletions demo/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- SPDX-License-Identifier: GPL-3.0-only -->
<!-- SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 -->
<!doctype html>
<html lang="en">
<head>
Expand Down Expand Up @@ -75,7 +75,7 @@
</section>
</div>
</main>
<footer><span>4FusionLab · Perfora</span><span>Built for the way you make.</span><a href="https://github.com/4FusionLab/Perfora/blob/main/LICENSE" target="_blank" rel="noopener">GPL-3.0</a></footer>
<footer><span>4FusionLab · Perfora</span><span>Built for the way you make.</span><a href="https://github.com/4FusionLab/Perfora/blob/main/LICENSE" target="_blank" rel="noopener">PolyForm Noncommercial 1.0.0</a></footer>
<script id="demo-bundle" type="application/json">__BUNDLE__</script>
<script>__APP_SCRIPT__</script>
</body></html>
2 changes: 1 addition & 1 deletion demo/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
(() => {
'use strict';
const bundle=JSON.parse(document.getElementById('demo-bundle').textContent);
Expand Down
2 changes: 1 addition & 1 deletion demo/browser-smoke.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
// Run in the connected Playwright tool. It opens its own tab, preserves the
// user's playground, and verifies live Python execution rather than fixtures.
async (page) => {
Expand Down
2 changes: 1 addition & 1 deletion demo/engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Browser/desktop demo adapter. All hole geometry comes from Perfora.geometry.

This module imports no adsk and has no optional dependencies. The browser
Expand Down
Loading
Loading