tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.27k stars 364 forks source link

Requesting pythonocc-core anaconda release to target OpenCascade 7.8.0 to fix issue with BRepBuilderAPI_GTransform #1285

Open manuel-koch opened 7 months ago

manuel-koch commented 7 months ago

It would be really cool if pythonocc-core could create another anaconda release based on OpenCascade 7.8.0.

I have an open issue with pythonocc-core==7.7.2 that will likely be fixed by using newer OpenCascade C++ code, see OpenCascade forum.

Cross posting the issue here:

scale_transform = gp_GTrsf()
scale_transform.SetVectorialPart(
  gp_Mat(
    1,    0,       0,
    0,    0.1,    0,
    0,    0,       1    )
)
brep_transform_builder = BRepBuilderAPI_GTransform(
    shape, scale_transform, False  # fails too if I use "True" here
)

Raises runtime error:

RuntimeError: Standard_ConstructionErrorgp_GTrsf::Trsf() - non-orthogonal GTrsf raised from method BRepBuilderAPI_GTransform of class BRepBuilderAPI_GTransform

It crashes even when using a no-scaling-matrix with diagonal values all 1.0.

tpaviot commented 7 months ago

OpenCascade 7.8.0 has not been tagged yet, afaik there are some changes related to memory management, hopefully it wont have too much impact on the python wrapping workflow

stepi9 commented 4 months ago

OCCT 7.8.0 has been released. Do you have an estimate on when it will be ported to pythonocc?