Unexpected Error Triggered by show() Call Before transformGeometry
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
An unusual issue occurs in the following code: if show(cube_result_1) is executed before transformGeometry, it raises the error OCP.Standard.Standard_ConstructionError: gp_GTrsf::Trsf() - non-orthogonal GTrsf. However, if the show(cube_result_1) call preceding transformGeometry is commented out, the program runs as expected.
```
import cadquery as cq
from cadquery.func import *
from cadquery.vis import show
import math
angle=45/180.0*math.pi;
cube_result_1 = box(w=10, l=10, h=10, centered=False)
transform_matrix_3 = cq.Matrix([
[math.cos(angle), -math.sin(angle), 0, 10],
[math.sin(angle), math.cos(angle), 0, 20],
[ 0, 0, 1, 30],
[ 0, 0, 0, 1]
])
show(cube_result_1)
multmatrix_result_0 = cube_result_1.transformGeometry(transform_matrix_3)
show(multmatrix_result_0)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.