cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Cannot create a free standing bezier curve

Open lenianiva opened this issue 7 months ago • 1 comments

In Sketch.bezier, the previous _endPoint has to exist before a bezier can be generated:

    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

lenianiva avatar Jul 22 '24 22:07 lenianiva