Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add polydata conversors to edges and faces #759

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

AlejandroFernandezLuces
Copy link
Contributor

Add polydata methods to Edge and Face classes

@github-actions github-actions bot added the enhancement New features or code improvements label Sep 26, 2023
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@f3c32e8). Click here to learn what that means.

❗ Current head 017adfa differs from pull request most recent head 4d9f56f. Consider uploading reports for the commit 4d9f56f to get more accurate results

Files Patch % Lines
src/ansys/geometry/core/designer/face.py 36.36% 7 Missing ⚠️
src/ansys/geometry/core/designer/edge.py 50.00% 4 Missing ⚠️
src/ansys/geometry/core/designer/selection.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #759   +/-   ##
=======================================
  Coverage        ?   91.95%           
=======================================
  Files           ?       78           
  Lines           ?     5554           
  Branches        ?        0           
=======================================
  Hits            ?     5107           
  Misses          ?      447           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AlejandroFernandezLuces
Copy link
Contributor Author

Stopping the development of this branch while we don't have the required info from the server side:

  • Required info to draw circular and curved edges
  • Required info to draw non planar faces

@AlejandroFernandezLuces
Copy link
Contributor Author

Once #655 is merged, I think we can proceed with this one

@RobPasMue
Copy link
Member

#655 has been merged @AlejandroFernandezLuces - please continue work here

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 35.29412% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 89.66%. Comparing base (4a4c483) to head (fbac463).
Report is 1 commits behind head on main.

Files Patch % Lines
src/ansys/geometry/core/designer/edge.py 22.22% 14 Missing ⚠️
src/ansys/geometry/core/designer/face.py 36.36% 7 Missing ⚠️
src/ansys/geometry/core/designer/selection.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #759      +/-   ##
==========================================
- Coverage   89.94%   89.66%   -0.28%     
==========================================
  Files          93       93              
  Lines        6780     6812      +32     
==========================================
+ Hits         6098     6108      +10     
- Misses        682      704      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"""
Return the edge as polydata.

This is useful to represent the edge in a PyVista plotter.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This is useful to represent the edge in a PyVista plotter.
This method is useful to represent the edge in a PyVista plotter.

"""
Return the face as polydata.

This is useful to represent the face in a PyVista plotter.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This is useful to represent the face in a PyVista plotter.
This method is useful to represent the face in a PyVista plotter.

Face as polydata
"""
if self.surface_type != SurfaceType.SURFACETYPE_PLANE:
LOG.warning("Only planes surfaces are supported")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
LOG.warning("Only planes surfaces are supported")
LOG.warning("Only planes surfaces are supported.")

self.shape.geometry: Ellipse

else:
LOG.warning("Non linear edges not supported.")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
LOG.warning("Non linear edges not supported.")
LOG.warning("Non-linear edges not supported.")

@wiz-inc-572fc38784
Copy link

wiz-inc-572fc38784 bot commented Mar 15, 2024

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Vulnerabilities 0C 0H 0M 0L 0I
Sensitive Data 0C 0H 0M 0L 0I
Total 0C 0H 0M 0L 0I
Secrets 0🔑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants