Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/extras/core/Shape.d.ts>Shape

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Shape
extends Path
import { Shape } from "https://deno.land/x/threejs_4_deno@v121/src/extras/core/Shape.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