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
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security
- N/A

## [26.0.4]

### Added
- N/A

### Changed
- N/A

### Deprecated
- N/A

### Removed
- N/A

### Fixed
- Fixed `GeomType` enum not being exposed in package `__init__.py` - users can now import it directly with `from moldflow import GeomType`
- Fixed invalid `DUAL_DOMAIN` enum value in `GeomType` - replaced with `FUSION = "Fusion"` to match valid Moldflow API values
- Fixed missing `-> bool` return type annotations for `MeshGenerator.generate()` and `MeshGenerator.save_options()` methods
Comment on lines +43 to +45
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot these are for a new release 26.0.4, please reflect that in this changelog file.


### Security
- N/A

## [26.0.3]

### Added
Expand Down Expand Up @@ -93,7 +115,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial version aligned with Moldflow Synergy 2026.0.1
- Python 3.10-3.13 compatibility

[Unreleased]: https://github.com/Autodesk/moldflow-api/compare/v26.0.2...HEAD
[Unreleased]: https://github.com/Autodesk/moldflow-api/compare/v26.0.4...HEAD
[26.0.4]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.4
[26.0.3]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.3
[26.0.2]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.2
[26.0.1]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.1
[26.0.0]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.0
1 change: 1 addition & 0 deletions src/moldflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
from .common import EdgeDisplayOptions
from .common import EntityType
from .common import GradingFactor
from .common import GeomType
from .common import ImportUnitIndex
from .common import ImportUnits
from .common import ItemType
Expand Down
2 changes: 1 addition & 1 deletion src/moldflow/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class GeomType(Enum):
"""

AUTO_DETECT = "Auto-Detect"
DUAL_DOMAIN = "Dual Domain"
FUSION = "Fusion"
MIDPLANE = "Midplane"


Expand Down
10 changes: 8 additions & 2 deletions src/moldflow/mesh_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,22 @@ def __init__(self, _mesh_generator):
process_log(__name__, LogMessage.CLASS_INIT, locals(), name="MeshGenerator")
self.mesh_generator = safe_com(_mesh_generator)

def generate(self):
def generate(self) -> bool:
"""
Generate the mesh using the MeshGenerator instance.

Returns:
bool: True if mesh generation was successful, False otherwise.
"""
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="generate")
return self.mesh_generator.Generate

def save_options(self):
def save_options(self) -> bool:
"""
Save the mesh generation options.

Returns:
bool: True if options were saved successfully, False otherwise.
"""
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="save_options")
return self.mesh_generator.SaveOptions
Expand Down
4 changes: 2 additions & 2 deletions tests/api/unit_tests/test_unit_mesh_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"""

import pytest
from moldflow import MeshGenerator
from moldflow.common import (
from moldflow import (
MeshGenerator,
GeomType,
NurbsAlgorithm,
CoolType,
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"major": "26",
"minor": "0",
"patch": "3"
"patch": "4"
}