CadQuery / CadQuery/cadquery

importStep ignore dimensions

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

Description

Dimensions inside the step file are not recognized:

```python
import cadquery as cq
import math

r = 1
h = 1
Vol = r**2 * math.pi * h

r_wrong = 1000
h_wrong = 1000
Vol_wrong = r_wrong**2 * math.pi * h_wrong
stp = cq.importers.importStep("cylinder_1000mm.step")
print("volume: ", stp.objects[0].Volume(), " corrected volume: ",r**2 * math.pi * h)
print("volume with wrong dimensions: ", Vol_wrong)
```

results in

```
volume: 3141592653.5897927 corrected volume: 3.141592653589793
volume with wrong dimensions: 3141592653.589793
```

The step file was created with freecad. The same issue appeared with a 3Dx step file.

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.