CadQuery / CadQuery/cadquery

Cannot create a free standing bezier curve

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

Description

In `Sketch.bezier`, the previous `_endPoint` has to exist before a bezier can be generated:
```python
def bezier(
self: T,
pts: Iterable[Point],
tag: Optional[str] = None,
forConstruction: bool = False,
) -> T:
"""
Construct an bezier curve.

The edge will pass through the last points, and the inner points
are bezier control points.
"""
p1 = self._endPoint()
val = Edge.makeBezier([Vector(*p) for p in pts])

return self.edge(val, tag, forConstruction)
```
Is there any particular reason for this? With this I can't create a loop consisting entirely of bezier curves, for example

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.