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

pythonocc-core deprecation warning and version specification #23

Open
ZacZhangzhuo opened this issue Jan 6, 2024 · 1 comment
Open

Comments

@ZacZhangzhuo
Copy link

ZacZhangzhuo commented Jan 6, 2024

compas_occ now needs to specify the pythonocc-core version, otherwise some old functions complain:

compas_occ\brep\brepedge.py:133: DeprecationWarning: Call to deprecated function topods_Edge since pythonocc-core 7.7.1. This function will be removed in a future release, please rather use the static method topods.Edge
  self._occ_edge = topods_Edge(edge)
compas_occ\brep\brep.py", line 938, in to_viewmesh
    lines.append(Polyline(edge.curve.locus()))     
AttributeError: 'OCCCurve' object has no attribute 'locus'
compas_occ\brep\brepvertex.py:70: DeprecationWarning: Call to deprecated function BRep_Tool_Pnt since pythonocc-core 7.7.1. This function will be removed in a future release, please rather use the static method BRep_Tool.Pnt

etc ....

@ZacZhangzhuo ZacZhangzhuo changed the title pythonocc-core version specification pythonocc-core deprecation warning and version specification Jan 6, 2024
@ZacZhangzhuo
Copy link
Author

also, from v.7.5.1, pythonocc-core added a feature of display: display OpenGl information by default in OCCViewer. We should ether integrate this into our viewer or limit the version under 7.5.1 for lighter dependency..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant