Skip to content

pythonocc-core deprecation warning and version specification #23

@ZacZhangzhuo

Description

@ZacZhangzhuo

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 ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions