Open fractal97 opened 2 years ago
The OCCUtils package is deprecated and is not maintained anymore. If you need to project a point on a curve, have a look at the example https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_geometry_project_point_on_curve.py
I used to have this working on OCE 0.18 for Python 2.6 . But now, OCE 0.18.1 compiled for Python 2.7 or OCC 7.6.2 for Python 3.6.8, it is failing or not giving any results.
Also, BRepAdaptor_HCurve and BRepAdaptor_HCompCurve don't exist any more in 7.6.2, so there is an error in Common with import. Furthermore, pts.thisown = False doesn't work anymore in interpolate_points_to_spline() in Common.py
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") AttributeError: 'TColgp_HArray1OfPnt' object has no attribute 'own'