@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
23 lines (22 loc) • 1.46 kB
TypeScript
import { Vector3, BufferAttribute } from 'three';
import { ObjectGeometryMap, CoreObjectType, ObjectContent } from '../../ObjectContent';
import { CorePoint } from '../../entities/point/CorePoint';
import { PointAttributesDict } from '../../entities/point/Common';
import { TetObject } from './TetObject';
export declare class TetPoint extends CorePoint<CoreObjectType.TET> {
protected _geometry?: ObjectGeometryMap[CoreObjectType.TET];
protected _object: TetObject;
constructor(object: TetObject, index: number);
object(): TetObject;
setIndex(index: number, object?: TetObject): this;
private _updateGeometry;
geometry(): import("./TetGeometry").TetGeometry | undefined;
static addAttribute<T extends CoreObjectType>(object: ObjectContent<T>, attribName: string, attribute: BufferAttribute): void;
static attributes<T extends CoreObjectType>(object: ObjectContent<T>): PointAttributesDict | undefined;
static entitiesCount<T extends CoreObjectType>(object: ObjectContent<T>): number;
position(target: Vector3): Vector3;
normal(target: Vector3): Vector3;
static userDataAttribs<T extends CoreObjectType>(object: ObjectContent<T>): {};
static setIndexedAttribute<T extends CoreObjectType>(object: ObjectContent<T>, attribName: string, values: string[], indices: number[]): void;
static attribValueIndex<T extends CoreObjectType>(object: ObjectContent<T>, index: number, attribName: string): number;
}