CadQuery / CadQuery/cadquery

Scale issue with sweep function

Open
#307 1 comment 0 reactions 0 assignees View on GitHub
bug OCC kernel issue
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

Hello, i think i found a bug:

I try to make a pipe section with the following code:

![image](https://user-images.githubusercontent.com/37962977/78262833-72395b00-7501-11ea-877f-821c1e8ee39c.png)

When i adjust the parameters to be in mm, the code doesn't work anymore.

![image](https://user-images.githubusercontent.com/37962977/78263716-9cd7e380-7502-11ea-8180-15e420e7e2be.png)

Seems like it is dependent on the absolute size of objects? Can we make it non-dimensional, for example by dividing the tolerance by the biggest dimension of the path (just a random idea..)

The code:

```
import cadquery as cq

r_pipe = 9500 #m
t_pipe = 500 #mm

pts = [
(0, 0),
(0, 8000),
(3000, 17000),
(7000, 23000),
]

path = cq.Workplane("XZ").polyline(pts)
section = cq.Workplane("XY").circle(r_pipe).circle(r_pipe-t_pipe)
sweep = section.sweep(path)
```

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.