'non-orthogonal GTrsf' Error When Calling multiply on a Matrix
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
The following code runs fine against master, but not against the OCP branch.
```python
from cadquery import Vector, Matrix
m = Matrix(
[[-0.146655, -0.271161, -0.951296, 0.0376659],
[-0.676234, 0.729359, -0.103649, 0.615421],
[0.721942, 0.628098, -0.290333, -0.451955],
[0, 0, 0, 1]]
)
offset = Vector(0, 0, 0)
offset = m.multiply(offset)
```
When running it against the OCP branch, I get this:
```
>>> offset = m.multiply(offset)
Traceback (most recent call last):
File "", line 1, in
File "/home/jwright/Downloads/repos/cadquery/cadquery/occ_impl/geom.py", line 276, in multiply
return other.transform(self)
File "/home/jwright/Downloads/repos/cadquery/cadquery/occ_impl/geom.py", line 194, in transform
pnt_t = pnt.Transformed(T.wrapped.Trsf())
OCP.Standard.Standard_ConstructionError: gp_GTrsf::Trsf() - non-orthogonal GTrsf
```
@adam-urbanczyk Any ideas?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.