parametricCurve produces wrong result with high stop value
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
changing stop value from 3.8 to 4 produces corrupted spiral
```python
from math import cos, pi, sin
import cadquery as cq
def helix():
def func(t):
x = cos(t*pi*2)
y = sin(t*pi*2)
z = t
return (x, y, z)
return func
p1 = (cq.Workplane("XY")
.parametricCurve(helix(),stop=4).val()
)
show_object(p1)
```
# Environment
OS: Windows 11
Was CadQuery installed using Conda?: No, installed with pip. Python 3.14.3
```
cadquery 2.8.0
cadquery-ocp 7.9.3.1.1
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the provided Python reproduction and the parametricCurve entry point, comparing stop=3.8 with stop=4 on the stated CadQuery and cadquery-ocp versions. Confirm the generated curve remains a valid, correctly shaped spiral at the higher stop value and use that comparison to define regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 66/100