threepipe
Version:
A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.
21 lines • 842 B
TypeScript
import { Shape } from 'three';
/**
* Create a 2D Shape from preset type and scalar parameters.
* Used by ShapeGeometryGenerator and TubeShapeGeometryGenerator.
* Shapes are created with CCW winding (standard for three.js ShapeGeometry).
*/
export declare function createShapeFromPreset(shapeType: string, params: {
width?: number;
height?: number;
circleRadius?: number;
circleSegments?: number;
sides?: number;
polygonRadius?: number;
}): Shape;
/**
* Reverse the winding order of a shape's points.
* TubeShapeGeometry expects CW winding for outward-facing normals,
* while ShapeGeometry expects CCW. Use this when passing a preset shape to TubeShapeGeometry.
*/
export declare function reverseShapeWinding(shape: Shape): Shape;
//# sourceMappingURL=../../../src/plugins/geometry/helpers/ShapePresets.d.ts.map