-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Describe the bug
The Python implementation of cad_mesh_grading_factor (CadMeshGradingFactor in the COM) currently restricts the input to int values or the enum GradingFactor defined in common.py. This is incorrect.
The underlying COM API accepts a double value, and the Python API should accept a float, not an enum or integer-coded options. The presence of the GradingFactor enum (SLOW = 0, FAST = 1) incorrectly suggests that the API only supports two discrete values, which is not the case.
Expected behavior
cad_mesh_grading_factorshould accept afloatin the range0to1(inclusive), matching the COM API’sdoubleparameter.- Enum
GradingFactorshould not exist, as it incorrectly constrains the valid input.
Environment:
- OS: Windows 11
- Python Version: 3.10.11
- Package Version: 26.0.4
- Moldflow Synergy Version: 2026.1
Additional context
The GradingFactor enum in common.py was mistakenly added due to misinterpreting the COM signature. It should be removed, and the API should be updated so that users can pass a float directly. Documentation and type hints should be updated accordingly.