Open GabrielJMS opened 10 months ago
I can reproduce, and I have encountered this before. Yet another workaround is to use bspline_surface.Weight(i, j)
directly, e.g.
values = [[bspline_surface.Weight(i, j) for j in range(1, 1 + bspline_surface.NbUPoles())] for i in range(1, 1 + bspline_surface.NbVPoles())]
The code crashes when we try to access Weigths() method from Geom_BSplineSurface twice or more times.
Searching in the internet I found that they had the same behavior in pyOCCT.
see: https://github.com/trelau/pyOCCT/issues/80 https://github.com/trelau/pyOCCT/pull/84/files#diff-7206418f088df5bcafb72d1a2ef6c5c4773fdd0f0c7bb14be7f5dbfcd4d606e1
I don't know if it's a bug or it's an expected behavior.