Capítulo 609 de 859

Chapter 609: TorusKnot

Core Idea

A torus knot.

Key Concepts

  • scale : number: The curve's scale.

Code Examples

import { TorusKnot } from 'three/addons/curves/CurveExtras.js';
  • What it demonstrates: Typical usage of TorusKnot.

Reference Tables

Constructor

Signature
new TorusKnot( scale : number )

Properties

PropertyDescription
.scale : numberThe curve's scale.

Methods

MethodDescription
.getPoint( t : number, optionalTarget : Vector3 ) : Vector3This method returns a vector in 3D space for the given interpolation factor.

Key Takeaways

  1. TorusKnot extends: Curve
  2. Most relevant properties: scale.
  3. Key methods: getPoint.

Connects To