Skip to content
Open
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
1 change: 1 addition & 0 deletions doc/changelog.d/2463.test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test: adjusting small face count
5 changes: 5 additions & 0 deletions src/ansys/geometry/core/modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ def open_file(
raise RuntimeError(
"File is too large to upload. Service versions above 25R2 support streaming."
)
elif self.client.services.version == GeometryApiProtos.V0:
self.client.services.designs.open(
filepath=file_path,
import_options=import_options,
)
else:
# Zip file and pass filepath to service to open
fp_path = Path(file_path).resolve()
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_repair_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def test_fix_small_face(modeler: Modeler):
"""Test to read geometry and find and fix it's small face problem areas."""
design = modeler.open_file(FILES_DIR / "SmallFaces.scdocx")
problem_areas = modeler.repair_tools.find_small_faces(design.bodies, 2.84e-8, None)
assert len(problem_areas) == 2
assert len(problem_areas) == 6
problem_areas = modeler.repair_tools.find_small_faces(design.bodies, None, 0.00036)
assert len(problem_areas) == 9
problem_areas = modeler.repair_tools.find_small_faces(design.bodies)
Expand Down
Loading