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

x/threejs_4_deno/src/Three.js>ShapeUtils.triangulateShape

A simple transformation of three.js for use within a Deno workflow
Go to Latest
function ShapeUtils.triangulateShape
import { ShapeUtils } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
const { triangulateShape } = ShapeUtils;

Parameters

contour: Vec2[]
holes: Vec2[][]

Returns

number[][]