Skip to content

parametricCurve produces wrong result with high stop value #2084

Description

@DaiterGG

changing stop value from 3.8 to 4 produces corrupted spiral

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)
Image Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions