UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

9 lines (8 loc) 555 B
import { BufferGeometry } from 'three'; import { InstanceAttrib } from '../../Instancer'; import { Attribute } from '../../Attribute'; import { ThreejsPoint } from './ThreejsPoint'; import { Object3DWithGeometry } from '../../Group'; export declare function positionAttributeNameFromBufferGeometry(geometry: BufferGeometry): Attribute.POSITION | InstanceAttrib.POSITION; export declare function pointsCountFromBufferGeometry(geometry: BufferGeometry): number; export declare function pointsFromThreejsObject(object: Object3DWithGeometry): ThreejsPoint[];