Skip to main content

Func3DCad

Func3DCad - это Python-пакет для работы с 3D-моделями, включающий базовые функции по созданию, трансформации, вычислениям, экспорту и рендерингу моделей.

Возможности

  • Создание 3D-моделей (вершины и грани)
  • Трансформации (масштабирование, перемещение)
  • Вычисление площади поверхности и объема модели
  • Экспорт и импорт моделей из файлов
  • Упрощенный рендеринг модели в консоли

Установка

pip install Func3DCad

Использование

Импорт библиотеки

from Func3DCad import Model3D, Transform, calculate_volume, calculate_surface_area, export_model, import_model, render_model

Создание модели

model = Model3D()
model.add_vertex((0, 0, 0))
model.add_vertex((1, 0, 0))
model.add_vertex((0, 1, 0))
model.add_face((0, 1, 2))

Трансформации

Transform.scale(model, 2)  # Увеличить в 2 раза
Transform.translate(model, 1, 1, 1)  # Сместить на (1,1,1)

Вычисления

volume = calculate_volume(model)
surface_area = calculate_surface_area(model)
print(f"Объем: {volume}, Площадь поверхности: {surface_area}")

Экспорт и импорт модели

export_model(model, "model.txt")
new_model = import_model("model.txt")

Рендеринг в консоли

render_model(model)

Разработка

Если вы хотите внести вклад в развитие проекта, форкните репозиторий и создайте Pull Request.

Лицензия

Этот проект распространяется под лицензией MIT.

Metadata

Release files for Func3DCad 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Func3DCad 1.3.2
File Size Uploaded Provenance Actions
Func3DCad-1.3.2.tar.gz 4.4 kB Without provenance Details for Func3DCad-1.3.2.tar.gz

Release files / Func3DCad-1.3.2.tar.gz

Download URL Func3DCad-1.3.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c58ed3592582dbc34b0e29c6092d6abf8695d520b7d94e8bed8cac500e03be21
BLAKE2b-256 checksum
How to use checksums
2c85b679d777301d8a04aaae8cc983d8cde7f21dda96261f13ed7f15185cd50c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Security for Func3DCad 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page