brepjs API Reference
    Preparing search index...

    Function thread

    • Build a helical screw-thread ridge by lofting rotated tooth sections.

      Parameters

      Returns Result<Shape3D>

      Result with the thread-ridge solid, or an error.

      const ridge = thread({ radius: 6, pitch: 2.5, height: 7.5 });
      const rod = fuse(cylinder(6.15, 7.5), unwrap(ridge));
      const ridge = thread({ radius: 3, pitch: 1, height: 6, inward: true });
      const nut = cut(boredBlock, unwrap(ridge));