- Thank you received: 108
Netgen - OpenCascade Geometry
3 years 2 months ago #3951
by joachim
Netgen - OpenCascade Geometry was created by joachim
Hello Netgen-Community,
we have now a Python wrapper for OCCT modeling within Netgen !
It is available in recent nightly versions, and you can find the docs here:
docu.ngsolve.org/nightly/i-tutorials/unit-4.4-occ/occ.html
In the wrapper we aim in bringing most of the structure of OCCT to Python. If you are familiar with the C++ interface of Open Cascade you will recognize many classes.
The wrapper is work in progress, more features will come in in near future.
Your feedback is warmly welcome. Please let us know if you are missing features from OCCT in the Py-interface.
Enjoy the new possibilities !
Joachim
we have now a Python wrapper for OCCT modeling within Netgen !
It is available in recent nightly versions, and you can find the docs here:
docu.ngsolve.org/nightly/i-tutorials/unit-4.4-occ/occ.html
In the wrapper we aim in bringing most of the structure of OCCT to Python. If you are familiar with the C++ interface of Open Cascade you will recognize many classes.
The wrapper is work in progress, more features will come in in near future.
Your feedback is warmly welcome. Please let us know if you are missing features from OCCT in the Py-interface.
Enjoy the new possibilities !
Joachim
3 years 2 months ago #3955
by NV
Replied by NV on topic Netgen - OpenCascade Geometry
Hi Joachim,
the documentation looks really promising. I am looking forward to future features in this direction.
Unfortanetly the new version is not yet available via conda. It would be great if this could be done soon.
Best regards and thanks a lot for your work
Nils
the documentation looks really promising. I am looking forward to future features in this direction.
Unfortanetly the new version is not yet available via conda. It would be great if this could be done soon.
Best regards and thanks a lot for your work
Nils
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
3 years 2 months ago #3956
by christopher
Replied by christopher on topic Netgen - OpenCascade Geometry
Hi, you can try it using the nightly version of netgen+ngsolve available on conda via tha package ngsolve-nightly.
Best
Christopher
Best
Christopher
3 years 2 months ago #3957
by NV
Replied by NV on topic Netgen - OpenCascade Geometry
Also the latest nightly seems to be a version prior to the OCC python wrapper. Conda says the latest ngsolve-nightly is version 6.2.2103.98 and the latest netgen-nightly is 6.2.2103.80. In the documentation, it looks like you are using 6.2.2104.XX.
Best regards
Nils
Best regards
Nils
3 years 2 months ago #3958
by matthiash
Replied by matthiash on topic Netgen - OpenCascade Geometry
Hi Nils,
Thanks for the hint. The upload of new nightly builds was blocked due to limited storage on anaconda. This issue is resolved (some old versions were removed), a new version should be available within the next three hours.
Best,
Matthias
Thanks for the hint. The upload of new nightly builds was blocked due to limited storage on anaconda. This issue is resolved (some old versions were removed), a new version should be available within the next three hours.
Best,
Matthias
The following user(s) said Thank You: NV
3 years 2 months ago #3973
by JuliusZ
Replied by JuliusZ on topic Netgen - OpenCascade Geometry
Hi Joachim,
That is a great feature, thanks for the implementation!
I tried to reimplement some of my SALOME scripts using the new feature.
I found that revolutions were only possible for faces.
OpenCascade allows one to revolve also edges and wires.
I'd suggest to include this in the interface.
My own patch (without much knowledge of the OCC interface) is in a PR on github.
I tested it locally but please consider the PR only as a suggestion and not a well-developed patch.
Best,
Julius
That is a great feature, thanks for the implementation!
I tried to reimplement some of my SALOME scripts using the new feature.
I found that revolutions were only possible for faces.
OpenCascade allows one to revolve also edges and wires.
I'd suggest to include this in the interface.
My own patch (without much knowledge of the OCC interface) is in a PR on github.
I tested it locally but please consider the PR only as a suggestion and not a well-developed patch.
Best,
Julius
Time to create page: 0.106 seconds