CadQuery / CadQuery/cadquery

testText fails

Open
#345 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

Using the latest code from the git repo (master) in cadquery (a140d1035c5ef058a5c89554ef7390873e10c370) and the python-occ's cadquery fork ([`701e924`](https://github.com/CadQuery/pythonocc-core/commit/701e924ae40701cbe6f9992bcbdc2ef22aa9b5ab)), I ran `python3 -m unittest` and all tests passes except [testText](https://github.com/CadQuery/cadquery/blob/master/tests/test_cadquery.py#L2657):

```
ERROR: testText (test_cadquery.TestCadQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/run/build/cadquery/cadquery/tests/test_cadquery.py", line 2671, in testText
font="Sans",
File "/app/lib/python3.7/site-packages/cadquery/cq.py", line 3410, in text
position=self.plane,
File "/app/lib/python3.7/site-packages/cadquery/occ_impl/shapes.py", line 1952, in makeText
bb = text_flat.BoundingBox()
File "/app/lib/python3.7/site-packages/cadquery/occ_impl/shapes.py", line 352, in BoundingBox
return BoundBox._fromTopoDS(self.wrapped, tol=tolerance)
File "/app/lib/python3.7/site-packages/cadquery/occ_impl/geom.py", line 868, in _fromTopoDS
return cls(bbox)
File "/app/lib/python3.7/site-packages/cadquery/occ_impl/geom.py", line 780, in __init__
XMin, YMin, ZMin, XMax, YMax, ZMax = bb.Get()
RuntimeError: Standard_ConstructionError
Bnd_Box is void
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.