Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>Shape

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Shape
extends Path
Re-export
import { Shape } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Defines a 2d shape plane using paths.

Constructors

new
Shape(points?: Vector2[])

Properties

holes: Path[]
type: string

Methods

deprecated
extractAllPoints(divisions: number): { shape: Vector2[]; holes: Vector2[][]; }
extractPoints(divisions: number): { shape: Vector2[]; holes: Vector2[][]; }
deprecated
extrude(options?: any): ExtrudeGeometry
getPointsHoles(divisions: number): Vector2[][]
deprecated
makeGeometry(options?: any): ShapeGeometry