ansys-meshing-prime 0.6.0.dev6__tar.gz → 0.6.0.dev7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/PKG-INFO +1 -1
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/pyproject.toml +35 -1
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/fileio.py +4 -4
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/fileiostructs.py +153 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/primeconfig.py +2 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surfaceutilities.py +40 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surfaceutilitystructs.py +281 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/thinvolumecontrol.py +36 -2
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/error_handling.py +1 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/LICENSE +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/README.md +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/__init__.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/_version.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/automesh.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/automeshstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/autoquadmesher.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/autoquadmesherstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/boundaryfittednurbs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/collapsetool.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/collapsetoolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/commonstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/commontypes.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/connect.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/connectstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/controldata.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/controlstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/coreobject.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/deletetool.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/deletetoolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/featureextraction.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/featureextractionstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/igastructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/materialpointmanager.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/materialpointmanagerstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/meshinfo.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/meshinfostructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/model.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/modelstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/morpher.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/morpherbcsstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/morpherstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/multizonecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/part.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/partstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/periodiccontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/periodiccontrolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/prismcontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/prismcontrolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/quadtospline.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/scaffolder.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/scaffolderstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/sizecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/sizecontrolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/sizefield.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/sizefieldstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/splittoolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surfacesearch.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surfacesearchstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surfer.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/surferstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/thinvolumecontrolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/topodata.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/topodatastructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/toposearchstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/topoutilities.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/topoutilitystructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/transform.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/transformstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumecontrolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumemeshtool.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumemeshtoolstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumesearch.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumesearchstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumesweeper.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/volumesweeperstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/vtcomposer.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/vtcomposerstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/wrapper.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/wrappercontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/autogen/wrapperstructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/controldata.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/dynaexportutils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/fileio.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/mapdlcdbexportutils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/model.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/multizonecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/part.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/periodiccontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/sizecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/surfaceutilities.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/surfer.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/volumecontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/volumesweeper.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/wrapper.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/core/wrappercontrol.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/examples/__init__.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/examples/download_utilities.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/examples/examples.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/examples/unit_test_examples.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/__init__.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/graphics.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/bin.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/invert_visibility.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/parts.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/selectioninfo.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/show_edges.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/show_ruler.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/images/surface_body.png +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/graphics/trame_gui.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/client.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/comm_manager.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/communicator.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/config.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/defaults.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/grpc_communicator.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/grpc_utils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/json_utils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/launcher.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/logger.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/prime_communicator.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/internals/utils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/lucid/__init__.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/lucid/mesh_util.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/lucid/scope.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/lucid/utils.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/params/primestructs.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/relaxed_json/__init__.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/relaxed_json/decoder.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/relaxed_json/encoder.py +0 -0
- {ansys_meshing_prime-0.6.0.dev6 → ansys_meshing_prime-0.6.0.dev7}/src/ansys/meshing/prime/relaxed_json/scanner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ansys-meshing-prime
|
|
3
|
-
Version: 0.6.0.
|
|
3
|
+
Version: 0.6.0.dev7
|
|
4
4
|
Summary: PyPrimeMesh is a Python client to Ansys Prime Server, which delivers core Ansys meshing technology.
|
|
5
5
|
Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
6
6
|
Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
|
|
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ansys-meshing-prime"
|
|
7
|
-
version = "0.6.0.
|
|
7
|
+
version = "0.6.0.dev7"
|
|
8
8
|
description = "PyPrimeMesh is a Python client to Ansys Prime Server, which delivers core Ansys meshing technology."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8,<4"
|
|
@@ -95,3 +95,37 @@ testpaths = [
|
|
|
95
95
|
"tests",
|
|
96
96
|
]
|
|
97
97
|
|
|
98
|
+
[tool.towncrier]
|
|
99
|
+
directory = "doc/changelog.d"
|
|
100
|
+
filename = "CHANGELOG.md"
|
|
101
|
+
start_string = "<!-- towncrier release notes start -->\n"
|
|
102
|
+
underlines = ["", "", ""]
|
|
103
|
+
template = "doc/changelog.d/changelog_template.jinja"
|
|
104
|
+
title_format = "## [{version}](https://github.com/ansys/pyprimemesh/releases/tag/v{version}) - {project_date}"
|
|
105
|
+
issue_format = "[#{issue}](https://github.com/ansys/pyprimemesh/pull/{issue})"
|
|
106
|
+
|
|
107
|
+
[[tool.towncrier.type]]
|
|
108
|
+
directory = "added"
|
|
109
|
+
name = "Added"
|
|
110
|
+
showcontent = true
|
|
111
|
+
|
|
112
|
+
[[tool.towncrier.type]]
|
|
113
|
+
directory = "changed"
|
|
114
|
+
name = "Changed"
|
|
115
|
+
showcontent = true
|
|
116
|
+
|
|
117
|
+
[[tool.towncrier.type]]
|
|
118
|
+
directory = "fixed"
|
|
119
|
+
name = "Fixed"
|
|
120
|
+
showcontent = true
|
|
121
|
+
|
|
122
|
+
[[tool.towncrier.type]]
|
|
123
|
+
directory = "dependencies"
|
|
124
|
+
name = "Dependencies"
|
|
125
|
+
showcontent = true
|
|
126
|
+
|
|
127
|
+
[[tool.towncrier.type]]
|
|
128
|
+
directory = "miscellaneous"
|
|
129
|
+
name = "Miscellaneous"
|
|
130
|
+
showcontent = true
|
|
131
|
+
|
|
@@ -540,7 +540,7 @@ class FileIO(CoreObject):
|
|
|
540
540
|
self._model._print_logs_after_command("export_fluent_meshing_mesh", FileWriteResults(model = self._model, json_data = result))
|
|
541
541
|
return FileWriteResults(model = self._model, json_data = result)
|
|
542
542
|
|
|
543
|
-
def export_lsdyna_keyword_file(self, file_name : str, export_params : ExportLSDynaKeywordFileParams) ->
|
|
543
|
+
def export_lsdyna_keyword_file(self, file_name : str, export_params : ExportLSDynaKeywordFileParams) -> ExportLSDynaResults:
|
|
544
544
|
""" Export FEA LS-DYNA Keyword file for solid, surface mesh or both.
|
|
545
545
|
|
|
546
546
|
|
|
@@ -553,7 +553,7 @@ class FileIO(CoreObject):
|
|
|
553
553
|
|
|
554
554
|
Returns
|
|
555
555
|
-------
|
|
556
|
-
|
|
556
|
+
ExportLSDynaResults
|
|
557
557
|
Returns FileWriteResults.
|
|
558
558
|
|
|
559
559
|
Notes
|
|
@@ -575,8 +575,8 @@ class FileIO(CoreObject):
|
|
|
575
575
|
self._model._print_beta_api_warning("export_lsdyna_keyword_file")
|
|
576
576
|
self._model._print_logs_before_command("export_lsdyna_keyword_file", args)
|
|
577
577
|
result = self._comm.serve(self._model, command_name, self._object_id, args=args)
|
|
578
|
-
self._model._print_logs_after_command("export_lsdyna_keyword_file",
|
|
579
|
-
return
|
|
578
|
+
self._model._print_logs_after_command("export_lsdyna_keyword_file", ExportLSDynaResults(model = self._model, json_data = result))
|
|
579
|
+
return ExportLSDynaResults(model = self._model, json_data = result)
|
|
580
580
|
|
|
581
581
|
def export_lsdyna_iga_keyword_file(self, file_name : str, export_params : ExportLSDynaIgaKeywordFileParams) -> FileWriteResults:
|
|
582
582
|
""" Export IGA LS-DYNA Keyword file for solid, surface splines, or both.
|
|
@@ -3148,6 +3148,159 @@ class ExportLSDynaKeywordFileParams(CoreObject):
|
|
|
3148
3148
|
def compute_spotweld_thickness(self, value: bool):
|
|
3149
3149
|
self._compute_spotweld_thickness = value
|
|
3150
3150
|
|
|
3151
|
+
class ExportLSDynaResults(CoreObject):
|
|
3152
|
+
"""Results associated with the LS-DYNA export.
|
|
3153
|
+
"""
|
|
3154
|
+
_default_params = {}
|
|
3155
|
+
|
|
3156
|
+
def __initialize(
|
|
3157
|
+
self,
|
|
3158
|
+
summary_log: str,
|
|
3159
|
+
error_code: ErrorCode,
|
|
3160
|
+
warning_codes: List[WarningCode]):
|
|
3161
|
+
self._summary_log = summary_log
|
|
3162
|
+
self._error_code = ErrorCode(error_code)
|
|
3163
|
+
self._warning_codes = warning_codes
|
|
3164
|
+
|
|
3165
|
+
def __init__(
|
|
3166
|
+
self,
|
|
3167
|
+
model: CommunicationManager=None,
|
|
3168
|
+
summary_log: str = None,
|
|
3169
|
+
error_code: ErrorCode = None,
|
|
3170
|
+
warning_codes: List[WarningCode] = None,
|
|
3171
|
+
json_data : dict = None,
|
|
3172
|
+
**kwargs):
|
|
3173
|
+
"""Initialize a ``ExportLSDynaResults`` object.
|
|
3174
|
+
|
|
3175
|
+
Parameters
|
|
3176
|
+
----------
|
|
3177
|
+
model: Model
|
|
3178
|
+
Model to create a ``ExportLSDynaResults`` object with default parameters.
|
|
3179
|
+
summary_log: str, optional
|
|
3180
|
+
Summary log for the import operation in json format.
|
|
3181
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3182
|
+
error_code: ErrorCode, optional
|
|
3183
|
+
Error code associated with failure of operation.
|
|
3184
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3185
|
+
warning_codes: List[WarningCode], optional
|
|
3186
|
+
Warning codes associated with the operation.
|
|
3187
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3188
|
+
json_data: dict, optional
|
|
3189
|
+
JSON dictionary to create a ``ExportLSDynaResults`` object with provided parameters.
|
|
3190
|
+
|
|
3191
|
+
Examples
|
|
3192
|
+
--------
|
|
3193
|
+
>>> export_lsdyna_results = prime.ExportLSDynaResults(model = model)
|
|
3194
|
+
"""
|
|
3195
|
+
if json_data:
|
|
3196
|
+
self.__initialize(
|
|
3197
|
+
json_data["summaryLog"] if "summaryLog" in json_data else None,
|
|
3198
|
+
ErrorCode(json_data["errorCode"] if "errorCode" in json_data else None),
|
|
3199
|
+
[WarningCode(data) for data in json_data["warningCodes"]] if "warningCodes" in json_data else None)
|
|
3200
|
+
else:
|
|
3201
|
+
all_field_specified = all(arg is not None for arg in [summary_log, error_code, warning_codes])
|
|
3202
|
+
if all_field_specified:
|
|
3203
|
+
self.__initialize(
|
|
3204
|
+
summary_log,
|
|
3205
|
+
error_code,
|
|
3206
|
+
warning_codes)
|
|
3207
|
+
else:
|
|
3208
|
+
if model is None:
|
|
3209
|
+
raise ValueError("Invalid assignment. Either pass a model or specify all properties.")
|
|
3210
|
+
else:
|
|
3211
|
+
param_json = model._communicator.initialize_params(model, "ExportLSDynaResults")
|
|
3212
|
+
json_data = param_json["ExportLSDynaResults"] if "ExportLSDynaResults" in param_json else {}
|
|
3213
|
+
self.__initialize(
|
|
3214
|
+
summary_log if summary_log is not None else ( ExportLSDynaResults._default_params["summary_log"] if "summary_log" in ExportLSDynaResults._default_params else (json_data["summaryLog"] if "summaryLog" in json_data else None)),
|
|
3215
|
+
error_code if error_code is not None else ( ExportLSDynaResults._default_params["error_code"] if "error_code" in ExportLSDynaResults._default_params else ErrorCode(json_data["errorCode"] if "errorCode" in json_data else None)),
|
|
3216
|
+
warning_codes if warning_codes is not None else ( ExportLSDynaResults._default_params["warning_codes"] if "warning_codes" in ExportLSDynaResults._default_params else [WarningCode(data) for data in (json_data["warningCodes"] if "warningCodes" in json_data else None)]))
|
|
3217
|
+
self._custom_params = kwargs
|
|
3218
|
+
if model is not None:
|
|
3219
|
+
[ model._logger.warning(f'Unsupported argument : {key}') for key in kwargs ]
|
|
3220
|
+
[setattr(type(self), key, property(lambda self, key = key: self._custom_params[key] if key in self._custom_params else None,
|
|
3221
|
+
lambda self, value, key = key : self._custom_params.update({ key: value }))) for key in kwargs]
|
|
3222
|
+
self._freeze()
|
|
3223
|
+
|
|
3224
|
+
@staticmethod
|
|
3225
|
+
def set_default(
|
|
3226
|
+
summary_log: str = None,
|
|
3227
|
+
error_code: ErrorCode = None,
|
|
3228
|
+
warning_codes: List[WarningCode] = None):
|
|
3229
|
+
"""Set the default values of the ``ExportLSDynaResults`` object.
|
|
3230
|
+
|
|
3231
|
+
Parameters
|
|
3232
|
+
----------
|
|
3233
|
+
summary_log: str, optional
|
|
3234
|
+
Summary log for the import operation in json format.
|
|
3235
|
+
error_code: ErrorCode, optional
|
|
3236
|
+
Error code associated with failure of operation.
|
|
3237
|
+
warning_codes: List[WarningCode], optional
|
|
3238
|
+
Warning codes associated with the operation.
|
|
3239
|
+
"""
|
|
3240
|
+
args = locals()
|
|
3241
|
+
[ExportLSDynaResults._default_params.update({ key: value }) for key, value in args.items() if value is not None]
|
|
3242
|
+
|
|
3243
|
+
@staticmethod
|
|
3244
|
+
def print_default():
|
|
3245
|
+
"""Print the default values of ``ExportLSDynaResults`` object.
|
|
3246
|
+
|
|
3247
|
+
Examples
|
|
3248
|
+
--------
|
|
3249
|
+
>>> ExportLSDynaResults.print_default()
|
|
3250
|
+
"""
|
|
3251
|
+
message = ""
|
|
3252
|
+
message += ''.join(str(key) + ' : ' + str(value) + '\n' for key, value in ExportLSDynaResults._default_params.items())
|
|
3253
|
+
print(message)
|
|
3254
|
+
|
|
3255
|
+
def _jsonify(self) -> Dict[str, Any]:
|
|
3256
|
+
json_data = {}
|
|
3257
|
+
if self._summary_log is not None:
|
|
3258
|
+
json_data["summaryLog"] = self._summary_log
|
|
3259
|
+
if self._error_code is not None:
|
|
3260
|
+
json_data["errorCode"] = self._error_code
|
|
3261
|
+
if self._warning_codes is not None:
|
|
3262
|
+
json_data["warningCodes"] = [data for data in self._warning_codes]
|
|
3263
|
+
[ json_data.update({ utils.to_camel_case(key) : value }) for key, value in self._custom_params.items()]
|
|
3264
|
+
return json_data
|
|
3265
|
+
|
|
3266
|
+
def __str__(self) -> str:
|
|
3267
|
+
message = "summary_log : %s\nerror_code : %s\nwarning_codes : %s" % (self._summary_log, self._error_code, '[' + ''.join('\n' + str(data) for data in self._warning_codes) + ']')
|
|
3268
|
+
message += ''.join('\n' + str(key) + ' : ' + str(value) for key, value in self._custom_params.items())
|
|
3269
|
+
return message
|
|
3270
|
+
|
|
3271
|
+
@property
|
|
3272
|
+
def summary_log(self) -> str:
|
|
3273
|
+
"""Summary log for the import operation in json format.
|
|
3274
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3275
|
+
"""
|
|
3276
|
+
return self._summary_log
|
|
3277
|
+
|
|
3278
|
+
@summary_log.setter
|
|
3279
|
+
def summary_log(self, value: str):
|
|
3280
|
+
self._summary_log = value
|
|
3281
|
+
|
|
3282
|
+
@property
|
|
3283
|
+
def error_code(self) -> ErrorCode:
|
|
3284
|
+
"""Error code associated with failure of operation.
|
|
3285
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3286
|
+
"""
|
|
3287
|
+
return self._error_code
|
|
3288
|
+
|
|
3289
|
+
@error_code.setter
|
|
3290
|
+
def error_code(self, value: ErrorCode):
|
|
3291
|
+
self._error_code = value
|
|
3292
|
+
|
|
3293
|
+
@property
|
|
3294
|
+
def warning_codes(self) -> List[WarningCode]:
|
|
3295
|
+
"""Warning codes associated with the operation.
|
|
3296
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
3297
|
+
"""
|
|
3298
|
+
return self._warning_codes
|
|
3299
|
+
|
|
3300
|
+
@warning_codes.setter
|
|
3301
|
+
def warning_codes(self, value: List[WarningCode]):
|
|
3302
|
+
self._warning_codes = value
|
|
3303
|
+
|
|
3151
3304
|
class ExportLSDynaIgaKeywordFileParams(CoreObject):
|
|
3152
3305
|
"""Parameters for exporting LS-DYNA IGA keyword file.
|
|
3153
3306
|
"""
|
|
@@ -268,6 +268,8 @@ class ErrorCode(enum.IntEnum):
|
|
|
268
268
|
"""Writing size field failed."""
|
|
269
269
|
MESHNOTFOUNDTOEXPORTFLUENTMESHINGMESH = 533
|
|
270
270
|
"""Mesh not found to export fluent meshing mesh."""
|
|
271
|
+
EXPORTSTLFAILED = 549
|
|
272
|
+
"""Export STL failed."""
|
|
271
273
|
EXPORTSTLFAILEDWITHTOPOLOGY = 553
|
|
272
274
|
"""Export STL not supported for part with topology data."""
|
|
273
275
|
EXPORTSTLFAILEDWITHQUADFACES = 554
|
|
@@ -139,6 +139,46 @@ class SurfaceUtilities(CoreObject):
|
|
|
139
139
|
self._model._print_logs_after_command("copy_face_zonelets", CopyZoneletsResults(model = self._model, json_data = result))
|
|
140
140
|
return CopyZoneletsResults(model = self._model, json_data = result)
|
|
141
141
|
|
|
142
|
+
def project_topo_faces_on_geometry(self, topo_faces : Iterable[int], params : ProjectOnGeometryParams) -> ProjectOnGeometryResults:
|
|
143
|
+
""" Project nodes of given topofaces on geometry associated to those topofaces.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
Parameters
|
|
147
|
+
----------
|
|
148
|
+
topo_faces : Iterable[int]
|
|
149
|
+
Ids of topofaces to be used to project nodes on the geometry.
|
|
150
|
+
params : ProjectOnGeometryParams
|
|
151
|
+
Parameters used for projecting topoface nodes on geometry.
|
|
152
|
+
|
|
153
|
+
Returns
|
|
154
|
+
-------
|
|
155
|
+
ProjectOnGeometryResults
|
|
156
|
+
Returns the ProjectOnGeometryResults.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
Notes
|
|
160
|
+
-----
|
|
161
|
+
This is a Beta API. The Behavior and implementation may change in future.
|
|
162
|
+
|
|
163
|
+
Examples
|
|
164
|
+
--------
|
|
165
|
+
>>> params = prime.ProjectOnGeometryParams(model = model)
|
|
166
|
+
>>> results = surface_utils.project_topo_faces_on_geometry(topofaces, params)
|
|
167
|
+
|
|
168
|
+
"""
|
|
169
|
+
if not isinstance(topo_faces, Iterable):
|
|
170
|
+
raise TypeError("Invalid argument type passed for 'topo_faces'. Valid argument type is Iterable[int].")
|
|
171
|
+
if not isinstance(params, ProjectOnGeometryParams):
|
|
172
|
+
raise TypeError("Invalid argument type passed for 'params'. Valid argument type is ProjectOnGeometryParams.")
|
|
173
|
+
args = {"topo_faces" : topo_faces,
|
|
174
|
+
"params" : params._jsonify()}
|
|
175
|
+
command_name = "PrimeMesh::SurfaceUtilities/ProjectTopoFacesOnGeometry"
|
|
176
|
+
self._model._print_beta_api_warning("project_topo_faces_on_geometry")
|
|
177
|
+
self._model._print_logs_before_command("project_topo_faces_on_geometry", args)
|
|
178
|
+
result = self._comm.serve(self._model, command_name, self._object_id, args=args)
|
|
179
|
+
self._model._print_logs_after_command("project_topo_faces_on_geometry", ProjectOnGeometryResults(model = self._model, json_data = result))
|
|
180
|
+
return ProjectOnGeometryResults(model = self._model, json_data = result)
|
|
181
|
+
|
|
142
182
|
def fill_holes_at_plane(self, part_id : int, face_zonelets : Iterable[int], plane_points : Iterable[float], params : FillHolesAtPlaneParams) -> FillHolesAtPlaneResults:
|
|
143
183
|
""" Fill holes in given face zonelets at given plane.
|
|
144
184
|
|
|
@@ -292,6 +292,287 @@ class FixInvalidNormalNodeResults(CoreObject):
|
|
|
292
292
|
def error_code(self, value: ErrorCode):
|
|
293
293
|
self._error_code = value
|
|
294
294
|
|
|
295
|
+
class ProjectOnGeometryParams(CoreObject):
|
|
296
|
+
"""Parameters used to project topoface nodes on associated geometry.
|
|
297
|
+
"""
|
|
298
|
+
_default_params = {}
|
|
299
|
+
|
|
300
|
+
def __initialize(
|
|
301
|
+
self,
|
|
302
|
+
project_only_mid_nodes: bool,
|
|
303
|
+
project_on_facets_if_cadnot_found: bool):
|
|
304
|
+
self._project_only_mid_nodes = project_only_mid_nodes
|
|
305
|
+
self._project_on_facets_if_cadnot_found = project_on_facets_if_cadnot_found
|
|
306
|
+
|
|
307
|
+
def __init__(
|
|
308
|
+
self,
|
|
309
|
+
model: CommunicationManager=None,
|
|
310
|
+
project_only_mid_nodes: bool = None,
|
|
311
|
+
project_on_facets_if_cadnot_found: bool = None,
|
|
312
|
+
json_data : dict = None,
|
|
313
|
+
**kwargs):
|
|
314
|
+
"""Initialize a ``ProjectOnGeometryParams`` object.
|
|
315
|
+
|
|
316
|
+
Parameters
|
|
317
|
+
----------
|
|
318
|
+
model: Model
|
|
319
|
+
Model to create a ``ProjectOnGeometryParams`` object with default parameters.
|
|
320
|
+
project_only_mid_nodes: bool, optional
|
|
321
|
+
Option to project only the mid nodes.
|
|
322
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
323
|
+
project_on_facets_if_cadnot_found: bool, optional
|
|
324
|
+
Option to project on facet if geometry is not found.
|
|
325
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
326
|
+
json_data: dict, optional
|
|
327
|
+
JSON dictionary to create a ``ProjectOnGeometryParams`` object with provided parameters.
|
|
328
|
+
|
|
329
|
+
Examples
|
|
330
|
+
--------
|
|
331
|
+
>>> project_on_geometry_params = prime.ProjectOnGeometryParams(model = model)
|
|
332
|
+
"""
|
|
333
|
+
if json_data:
|
|
334
|
+
self.__initialize(
|
|
335
|
+
json_data["projectOnlyMidNodes"] if "projectOnlyMidNodes" in json_data else None,
|
|
336
|
+
json_data["projectOnFacetsIfCADNotFound"] if "projectOnFacetsIfCADNotFound" in json_data else None)
|
|
337
|
+
else:
|
|
338
|
+
all_field_specified = all(arg is not None for arg in [project_only_mid_nodes, project_on_facets_if_cadnot_found])
|
|
339
|
+
if all_field_specified:
|
|
340
|
+
self.__initialize(
|
|
341
|
+
project_only_mid_nodes,
|
|
342
|
+
project_on_facets_if_cadnot_found)
|
|
343
|
+
else:
|
|
344
|
+
if model is None:
|
|
345
|
+
raise ValueError("Invalid assignment. Either pass a model or specify all properties.")
|
|
346
|
+
else:
|
|
347
|
+
param_json = model._communicator.initialize_params(model, "ProjectOnGeometryParams")
|
|
348
|
+
json_data = param_json["ProjectOnGeometryParams"] if "ProjectOnGeometryParams" in param_json else {}
|
|
349
|
+
self.__initialize(
|
|
350
|
+
project_only_mid_nodes if project_only_mid_nodes is not None else ( ProjectOnGeometryParams._default_params["project_only_mid_nodes"] if "project_only_mid_nodes" in ProjectOnGeometryParams._default_params else (json_data["projectOnlyMidNodes"] if "projectOnlyMidNodes" in json_data else None)),
|
|
351
|
+
project_on_facets_if_cadnot_found if project_on_facets_if_cadnot_found is not None else ( ProjectOnGeometryParams._default_params["project_on_facets_if_cadnot_found"] if "project_on_facets_if_cadnot_found" in ProjectOnGeometryParams._default_params else (json_data["projectOnFacetsIfCADNotFound"] if "projectOnFacetsIfCADNotFound" in json_data else None)))
|
|
352
|
+
self._custom_params = kwargs
|
|
353
|
+
if model is not None:
|
|
354
|
+
[ model._logger.warning(f'Unsupported argument : {key}') for key in kwargs ]
|
|
355
|
+
[setattr(type(self), key, property(lambda self, key = key: self._custom_params[key] if key in self._custom_params else None,
|
|
356
|
+
lambda self, value, key = key : self._custom_params.update({ key: value }))) for key in kwargs]
|
|
357
|
+
self._freeze()
|
|
358
|
+
|
|
359
|
+
@staticmethod
|
|
360
|
+
def set_default(
|
|
361
|
+
project_only_mid_nodes: bool = None,
|
|
362
|
+
project_on_facets_if_cadnot_found: bool = None):
|
|
363
|
+
"""Set the default values of the ``ProjectOnGeometryParams`` object.
|
|
364
|
+
|
|
365
|
+
Parameters
|
|
366
|
+
----------
|
|
367
|
+
project_only_mid_nodes: bool, optional
|
|
368
|
+
Option to project only the mid nodes.
|
|
369
|
+
project_on_facets_if_cadnot_found: bool, optional
|
|
370
|
+
Option to project on facet if geometry is not found.
|
|
371
|
+
"""
|
|
372
|
+
args = locals()
|
|
373
|
+
[ProjectOnGeometryParams._default_params.update({ key: value }) for key, value in args.items() if value is not None]
|
|
374
|
+
|
|
375
|
+
@staticmethod
|
|
376
|
+
def print_default():
|
|
377
|
+
"""Print the default values of ``ProjectOnGeometryParams`` object.
|
|
378
|
+
|
|
379
|
+
Examples
|
|
380
|
+
--------
|
|
381
|
+
>>> ProjectOnGeometryParams.print_default()
|
|
382
|
+
"""
|
|
383
|
+
message = ""
|
|
384
|
+
message += ''.join(str(key) + ' : ' + str(value) + '\n' for key, value in ProjectOnGeometryParams._default_params.items())
|
|
385
|
+
print(message)
|
|
386
|
+
|
|
387
|
+
def _jsonify(self) -> Dict[str, Any]:
|
|
388
|
+
json_data = {}
|
|
389
|
+
if self._project_only_mid_nodes is not None:
|
|
390
|
+
json_data["projectOnlyMidNodes"] = self._project_only_mid_nodes
|
|
391
|
+
if self._project_on_facets_if_cadnot_found is not None:
|
|
392
|
+
json_data["projectOnFacetsIfCADNotFound"] = self._project_on_facets_if_cadnot_found
|
|
393
|
+
[ json_data.update({ utils.to_camel_case(key) : value }) for key, value in self._custom_params.items()]
|
|
394
|
+
return json_data
|
|
395
|
+
|
|
396
|
+
def __str__(self) -> str:
|
|
397
|
+
message = "project_only_mid_nodes : %s\nproject_on_facets_if_cadnot_found : %s" % (self._project_only_mid_nodes, self._project_on_facets_if_cadnot_found)
|
|
398
|
+
message += ''.join('\n' + str(key) + ' : ' + str(value) for key, value in self._custom_params.items())
|
|
399
|
+
return message
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
def project_only_mid_nodes(self) -> bool:
|
|
403
|
+
"""Option to project only the mid nodes.
|
|
404
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
405
|
+
"""
|
|
406
|
+
return self._project_only_mid_nodes
|
|
407
|
+
|
|
408
|
+
@project_only_mid_nodes.setter
|
|
409
|
+
def project_only_mid_nodes(self, value: bool):
|
|
410
|
+
self._project_only_mid_nodes = value
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
def project_on_facets_if_cadnot_found(self) -> bool:
|
|
414
|
+
"""Option to project on facet if geometry is not found.
|
|
415
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
416
|
+
"""
|
|
417
|
+
return self._project_on_facets_if_cadnot_found
|
|
418
|
+
|
|
419
|
+
@project_on_facets_if_cadnot_found.setter
|
|
420
|
+
def project_on_facets_if_cadnot_found(self, value: bool):
|
|
421
|
+
self._project_on_facets_if_cadnot_found = value
|
|
422
|
+
|
|
423
|
+
class ProjectOnGeometryResults(CoreObject):
|
|
424
|
+
"""Results associated with projection of topofaces nodes on its geometry.
|
|
425
|
+
"""
|
|
426
|
+
_default_params = {}
|
|
427
|
+
|
|
428
|
+
def __initialize(
|
|
429
|
+
self,
|
|
430
|
+
success: bool,
|
|
431
|
+
error_code: ErrorCode,
|
|
432
|
+
warning_codes: List[WarningCode]):
|
|
433
|
+
self._success = success
|
|
434
|
+
self._error_code = ErrorCode(error_code)
|
|
435
|
+
self._warning_codes = warning_codes
|
|
436
|
+
|
|
437
|
+
def __init__(
|
|
438
|
+
self,
|
|
439
|
+
model: CommunicationManager=None,
|
|
440
|
+
success: bool = None,
|
|
441
|
+
error_code: ErrorCode = None,
|
|
442
|
+
warning_codes: List[WarningCode] = None,
|
|
443
|
+
json_data : dict = None,
|
|
444
|
+
**kwargs):
|
|
445
|
+
"""Initialize a ``ProjectOnGeometryResults`` object.
|
|
446
|
+
|
|
447
|
+
Parameters
|
|
448
|
+
----------
|
|
449
|
+
model: Model
|
|
450
|
+
Model to create a ``ProjectOnGeometryResults`` object with default parameters.
|
|
451
|
+
success: bool, optional
|
|
452
|
+
Defines the operation was successful or not.
|
|
453
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
454
|
+
error_code: ErrorCode, optional
|
|
455
|
+
Error code associated with failure of operation.
|
|
456
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
457
|
+
warning_codes: List[WarningCode], optional
|
|
458
|
+
Warning code associated with operation.
|
|
459
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
460
|
+
json_data: dict, optional
|
|
461
|
+
JSON dictionary to create a ``ProjectOnGeometryResults`` object with provided parameters.
|
|
462
|
+
|
|
463
|
+
Examples
|
|
464
|
+
--------
|
|
465
|
+
>>> project_on_geometry_results = prime.ProjectOnGeometryResults(model = model)
|
|
466
|
+
"""
|
|
467
|
+
if json_data:
|
|
468
|
+
self.__initialize(
|
|
469
|
+
json_data["success"] if "success" in json_data else None,
|
|
470
|
+
ErrorCode(json_data["errorCode"] if "errorCode" in json_data else None),
|
|
471
|
+
[WarningCode(data) for data in json_data["warningCodes"]] if "warningCodes" in json_data else None)
|
|
472
|
+
else:
|
|
473
|
+
all_field_specified = all(arg is not None for arg in [success, error_code, warning_codes])
|
|
474
|
+
if all_field_specified:
|
|
475
|
+
self.__initialize(
|
|
476
|
+
success,
|
|
477
|
+
error_code,
|
|
478
|
+
warning_codes)
|
|
479
|
+
else:
|
|
480
|
+
if model is None:
|
|
481
|
+
raise ValueError("Invalid assignment. Either pass a model or specify all properties.")
|
|
482
|
+
else:
|
|
483
|
+
param_json = model._communicator.initialize_params(model, "ProjectOnGeometryResults")
|
|
484
|
+
json_data = param_json["ProjectOnGeometryResults"] if "ProjectOnGeometryResults" in param_json else {}
|
|
485
|
+
self.__initialize(
|
|
486
|
+
success if success is not None else ( ProjectOnGeometryResults._default_params["success"] if "success" in ProjectOnGeometryResults._default_params else (json_data["success"] if "success" in json_data else None)),
|
|
487
|
+
error_code if error_code is not None else ( ProjectOnGeometryResults._default_params["error_code"] if "error_code" in ProjectOnGeometryResults._default_params else ErrorCode(json_data["errorCode"] if "errorCode" in json_data else None)),
|
|
488
|
+
warning_codes if warning_codes is not None else ( ProjectOnGeometryResults._default_params["warning_codes"] if "warning_codes" in ProjectOnGeometryResults._default_params else [WarningCode(data) for data in (json_data["warningCodes"] if "warningCodes" in json_data else None)]))
|
|
489
|
+
self._custom_params = kwargs
|
|
490
|
+
if model is not None:
|
|
491
|
+
[ model._logger.warning(f'Unsupported argument : {key}') for key in kwargs ]
|
|
492
|
+
[setattr(type(self), key, property(lambda self, key = key: self._custom_params[key] if key in self._custom_params else None,
|
|
493
|
+
lambda self, value, key = key : self._custom_params.update({ key: value }))) for key in kwargs]
|
|
494
|
+
self._freeze()
|
|
495
|
+
|
|
496
|
+
@staticmethod
|
|
497
|
+
def set_default(
|
|
498
|
+
success: bool = None,
|
|
499
|
+
error_code: ErrorCode = None,
|
|
500
|
+
warning_codes: List[WarningCode] = None):
|
|
501
|
+
"""Set the default values of the ``ProjectOnGeometryResults`` object.
|
|
502
|
+
|
|
503
|
+
Parameters
|
|
504
|
+
----------
|
|
505
|
+
success: bool, optional
|
|
506
|
+
Defines the operation was successful or not.
|
|
507
|
+
error_code: ErrorCode, optional
|
|
508
|
+
Error code associated with failure of operation.
|
|
509
|
+
warning_codes: List[WarningCode], optional
|
|
510
|
+
Warning code associated with operation.
|
|
511
|
+
"""
|
|
512
|
+
args = locals()
|
|
513
|
+
[ProjectOnGeometryResults._default_params.update({ key: value }) for key, value in args.items() if value is not None]
|
|
514
|
+
|
|
515
|
+
@staticmethod
|
|
516
|
+
def print_default():
|
|
517
|
+
"""Print the default values of ``ProjectOnGeometryResults`` object.
|
|
518
|
+
|
|
519
|
+
Examples
|
|
520
|
+
--------
|
|
521
|
+
>>> ProjectOnGeometryResults.print_default()
|
|
522
|
+
"""
|
|
523
|
+
message = ""
|
|
524
|
+
message += ''.join(str(key) + ' : ' + str(value) + '\n' for key, value in ProjectOnGeometryResults._default_params.items())
|
|
525
|
+
print(message)
|
|
526
|
+
|
|
527
|
+
def _jsonify(self) -> Dict[str, Any]:
|
|
528
|
+
json_data = {}
|
|
529
|
+
if self._success is not None:
|
|
530
|
+
json_data["success"] = self._success
|
|
531
|
+
if self._error_code is not None:
|
|
532
|
+
json_data["errorCode"] = self._error_code
|
|
533
|
+
if self._warning_codes is not None:
|
|
534
|
+
json_data["warningCodes"] = [data for data in self._warning_codes]
|
|
535
|
+
[ json_data.update({ utils.to_camel_case(key) : value }) for key, value in self._custom_params.items()]
|
|
536
|
+
return json_data
|
|
537
|
+
|
|
538
|
+
def __str__(self) -> str:
|
|
539
|
+
message = "success : %s\nerror_code : %s\nwarning_codes : %s" % (self._success, self._error_code, '[' + ''.join('\n' + str(data) for data in self._warning_codes) + ']')
|
|
540
|
+
message += ''.join('\n' + str(key) + ' : ' + str(value) for key, value in self._custom_params.items())
|
|
541
|
+
return message
|
|
542
|
+
|
|
543
|
+
@property
|
|
544
|
+
def success(self) -> bool:
|
|
545
|
+
"""Defines the operation was successful or not.
|
|
546
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
547
|
+
"""
|
|
548
|
+
return self._success
|
|
549
|
+
|
|
550
|
+
@success.setter
|
|
551
|
+
def success(self, value: bool):
|
|
552
|
+
self._success = value
|
|
553
|
+
|
|
554
|
+
@property
|
|
555
|
+
def error_code(self) -> ErrorCode:
|
|
556
|
+
"""Error code associated with failure of operation.
|
|
557
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
558
|
+
"""
|
|
559
|
+
return self._error_code
|
|
560
|
+
|
|
561
|
+
@error_code.setter
|
|
562
|
+
def error_code(self, value: ErrorCode):
|
|
563
|
+
self._error_code = value
|
|
564
|
+
|
|
565
|
+
@property
|
|
566
|
+
def warning_codes(self) -> List[WarningCode]:
|
|
567
|
+
"""Warning code associated with operation.
|
|
568
|
+
This is a beta parameter. The behavior and name may change in the future.
|
|
569
|
+
"""
|
|
570
|
+
return self._warning_codes
|
|
571
|
+
|
|
572
|
+
@warning_codes.setter
|
|
573
|
+
def warning_codes(self, value: List[WarningCode]):
|
|
574
|
+
self._warning_codes = value
|
|
575
|
+
|
|
295
576
|
class FillHolesAtPlaneParams(CoreObject):
|
|
296
577
|
"""Parameters to fill holes at given plane.
|
|
297
578
|
"""
|
|
@@ -49,7 +49,7 @@ class ThinVolumeControl(CoreObject):
|
|
|
49
49
|
Parameters
|
|
50
50
|
----------
|
|
51
51
|
entities : ScopeDefinition
|
|
52
|
-
Scope definition entities.
|
|
52
|
+
Scope definition source face entities.
|
|
53
53
|
|
|
54
54
|
Returns
|
|
55
55
|
-------
|
|
@@ -78,7 +78,7 @@ class ThinVolumeControl(CoreObject):
|
|
|
78
78
|
Parameters
|
|
79
79
|
----------
|
|
80
80
|
entities : ScopeDefinition
|
|
81
|
-
Scope definition entities.
|
|
81
|
+
Scope definition for target face entities.
|
|
82
82
|
|
|
83
83
|
Returns
|
|
84
84
|
-------
|
|
@@ -100,6 +100,40 @@ class ThinVolumeControl(CoreObject):
|
|
|
100
100
|
self._model._print_logs_after_command("set_target_scope", SetScopeResults(model = self._model, json_data = result))
|
|
101
101
|
return SetScopeResults(model = self._model, json_data = result)
|
|
102
102
|
|
|
103
|
+
def set_volume_scope(self, entities : ScopeDefinition) -> SetScopeResults:
|
|
104
|
+
""" Sets the volume scope of thin volume control.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
Parameters
|
|
108
|
+
----------
|
|
109
|
+
entities : ScopeDefinition
|
|
110
|
+
Scope definition for volume entities.
|
|
111
|
+
|
|
112
|
+
Returns
|
|
113
|
+
-------
|
|
114
|
+
SetScopeResults
|
|
115
|
+
Returns SetScopeResults.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
Notes
|
|
119
|
+
-----
|
|
120
|
+
This is a Beta API. The Behavior and implementation may change in future.
|
|
121
|
+
|
|
122
|
+
Examples
|
|
123
|
+
--------
|
|
124
|
+
>>> results = thin_vol_ctrl.set_volume_scope(entities)
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
if not isinstance(entities, ScopeDefinition):
|
|
128
|
+
raise TypeError("Invalid argument type passed for 'entities'. Valid argument type is ScopeDefinition.")
|
|
129
|
+
args = {"entities" : entities._jsonify()}
|
|
130
|
+
command_name = "PrimeMesh::ThinVolumeControl/SetVolumeScope"
|
|
131
|
+
self._model._print_beta_api_warning("set_volume_scope")
|
|
132
|
+
self._model._print_logs_before_command("set_volume_scope", args)
|
|
133
|
+
result = self._comm.serve(self._model, command_name, self._object_id, args=args)
|
|
134
|
+
self._model._print_logs_after_command("set_volume_scope", SetScopeResults(model = self._model, json_data = result))
|
|
135
|
+
return SetScopeResults(model = self._model, json_data = result)
|
|
136
|
+
|
|
103
137
|
@property
|
|
104
138
|
def id(self):
|
|
105
139
|
""" Get the id of ThinVolumeControl."""
|
|
@@ -294,6 +294,7 @@ prime_error_messages = {
|
|
|
294
294
|
ErrorCode.THINVOLUMECONTROLINVALIDNUMBEROFLAYER: "Number of layer in thin volume mesh should be greater than 0.",
|
|
295
295
|
ErrorCode.THINVOLUMECONTROLTOPOLOGYNOTSUPPORTED: "Thin volume mesh controls not supported for part with topology data.",
|
|
296
296
|
ErrorCode.THINVOLUMECONTROLINVALIDCONTROL: "Same face scope is set as target for multiple thin volume controls.",
|
|
297
|
+
ErrorCode.EXPORTSTLFAILED: "Export STL failed.",
|
|
297
298
|
ErrorCode.EXPORTSTLFAILEDWITHTOPOLOGY: "Export STL not supported for part with topology data.",
|
|
298
299
|
ErrorCode.EXPORTSTLFAILEDWITHQUADFACES: "Export STL not supported for mesh with quad faces.",
|
|
299
300
|
ErrorCode.EXPORTSTLFAILEDWITHPOLYFACES: "Export STL not supported for mesh with poly faces.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|