CadQuery / CadQuery/cadquery

extrude until next/last fails with the hollow profiles

Open
#1,276 2 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

I encountered a problem with extruding the hollow profiles until the existing face.
There is the following test for extrude until with multiple distant wires:
https://github.com/CadQuery/cadquery/blob/4c2a0383495862c71aaf90da2240dea9d40f99bf/tests/test_cadquery.py#L3345
The following test modification will produce an incorrect result:
```python
from cadquery import *
wp_ref = Workplane("XY").box(10, 10, 10).center(20, 0).box(10, 10, 10)
wp = (
wp_ref.faces(">X[1]")
.workplane(centerOption="CenterOfMass")
.rect(2, 2)
.rect(4, 4)
.extrude("next")
)
```
![extrude_until_next](https://user-images.githubusercontent.com/39152628/221378702-f18294ef-a619-4706-aab7-cfef5c6f0388.png)
The following test modification will fail with ```Standard OutOfRange: NCollection_Sequence:Value```:
```python
from cadquery import *
wp_ref = Workplane("XY").box(10, 10, 10).center(20, 0).box(10, 10, 10)
wp = (
wp_ref.faces(">X[1]")
.workplane(centerOption="CenterOfMass")
.circle(2)
.circle(4)
.extrude("next")
)
```

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.