Commit graph

28 commits

Author SHA1 Message Date
4074d7789f
fix: Sets default resolution to 0, 0 in Cube2Sphere
Modifies the default resolution to (0, 0) for greater
flexibility when input resolution is not predetermined.
This change could require explicit resolution inputs
from users, prompting them to define custom values.
2024-12-13 17:17:30 +01:00
81ef617003
fix: Formats command list consistently
Encapsulates the command list in a tuple to enhance readability
and consistency in the Cube2Sphere class. This change does not
alter the functional logic but simplifies understanding of how
the command is constructed.

Fixes potential readability issues in command formation.
2024-12-13 17:15:49 +01:00
40b2da19ff
refactor: Refactors Blender command construction
Moves Blender command setup to a reusable list variable
for clarity and maintainability. Simplifies subprocess
execution by passing the pre-constructed command list,
and enhances the verbose mode output for debugging.

No issue references provided.
2024-12-13 17:12:52 +01:00
7e6cc55d84
fix: Add package data for cube2sphere
Includes projector.blend file in cube2sphere package data
to ensure necessary assets are distributed with the package.
2024-12-13 15:51:22 +01:00
1296d51ee7
feat: Add Cube2Sphere to module exports
Includes the Cube2Sphere class in the module's exports to
facilitate easy import for users. Enhances usability by
enabling direct import from the module's top level.
2024-12-13 10:20:27 +01:00
874e986b51
refactor: Warns when Pillow is not installed
Adds a runtime warning message for missing Pillow dependency, indicating that image resolution detection is disabled when Pillow is not available. This provides clearer feedback to users about functionality limitations.
2024-12-13 10:15:25 +01:00
44761acfbf
feat: Add automatic resolution detection using Pillow
Introduces optional dependency on Pillow to auto-detect output image
resolution when not specified or set to (0, 0). Provides a clear
warning if Pillow is not installed and resolution detection is required.
Adjusts constructor and command-line argument default to reflect
auto-detection capabilities.

Ensures resolution correctness based on input face dimensions.
2024-12-13 10:03:05 +01:00
3a67a238ba
refactor: Refactors cube to sphere conversion process
Introduces a Cube2Sphere class to encapsulate parameters and methods for improved modularity and readability.

Refactors argument parsing and validation logic within main(), reducing redundancy and enhancing error handling.

Extends .gitignore to include 'venv/' for better virtual environment management.

This restructuring enhances maintainability and promotes better object-oriented design.
2024-12-13 09:15:37 +01:00
964c0466bc
chore: Switch to pyproject.toml for build configuration
Removes obsolete setup.py and GitHub workflow for PyPI deployment, shifting build configuration to pyproject.toml.

Updates version to 0.13.0 to align with the new configuration.

This change enhances maintainability by consolidating build settings and simplifying dependency management.
2024-12-12 09:11:13 +01:00
Tudor Brindus
aea3487f07 Fix truncated content in README.md 2020-04-01 17:55:05 -04:00
Tudor Brindus
428547bea4 Convert README to Markdown now that PyPI supports it 2020-04-01 17:37:39 -04:00
Tudor Brindus
f1572393fb Add Github Action for publishing to PyPI 2020-04-01 17:24:17 -04:00
Tudor Brindus
f2bd3911fd Bump version number to 0.2.0 2020-04-01 17:18:42 -04:00
Tudor Brindus
f2d0a2ec6d Update README.rst to reflect Python 3 changes 2020-04-01 17:18:11 -04:00
Tudor Brindus
5654c23ea3 Port to Python 3 2020-04-01 17:16:46 -04:00
Tudor Brindus
25fd832aef Bump version number to 0.1.10 after #5 2017-02-01 12:20:51 -05:00
Tudor Brindus
eb953cbc1a Merge pull request #5 from jox/master
Fixed seams at cube edges in resulting image. Fixed cube face orientation.
2017-01-31 03:18:10 -05:00
Jonas Petersen
1a5b7ba738 Fixed seams at cube edges in resulting image. Fixed cube face orientiation (resulting image was mirrored). 2017-01-18 17:22:13 +01:00
Tudor Brindus
982bdeac4c Bump version number for #4 fix 2016-11-18 23:49:52 -05:00
Tudor Brindus
5f2b1d93cc Merge pull request #4 from wouterla/master
Fixed absolute paths for input files
2016-11-18 23:47:00 -05:00
Wouter Lagerweij
0f3c1d7561 Fixed absolute paths for input files 2016-11-16 14:35:56 +01:00
Tudor
5f4542056d Bump version number for #2 fix 2016-08-19 12:48:58 -04:00
Tudor Brindus
2be085dae1 Merge pull request #3 from BorisChumichev/master
Change the way we pass resolution to blender
2016-08-19 12:45:30 -04:00
Boris Chumichev
941ab0315d Change the way we pass resolution to blender 2016-08-19 16:13:28 +03:00
Tudor Brindus
484f43a2f4 Update README.rst 2015-08-31 14:33:23 -04:00
Tudor
9e3e3e74e7 This is cube2sphere, not sphere2cube 2015-08-30 20:48:36 -04:00
Tudor
cc1b047fdf Mac OS X install instructions 2015-08-30 20:47:33 -04:00
Tudor
18365e97d0 Initial code commit 2015-08-30 19:43:54 -04:00