@shopware-ag/dive
Version:
Shopware Spatial Framework
29 lines (28 loc) • 807 B
TypeScript
import { DIVENode } from '../node/Node';
import { COMGeometry, COMMaterial } from '../com/types';
/**
* A basic model class.
*
* It does calculate it's own bounding box which is used for positioning on the floor.
*
* Can be moved and selected.
*
* @module
*/
export declare class DIVEPrimitive extends DIVENode {
readonly isDIVEPrimitive: true;
private _mesh;
constructor();
SetGeometry(geometry: COMGeometry): void;
SetMaterial(material: Partial<COMMaterial>): void;
PlaceOnFloor(): void;
DropIt(): void;
private assembleGeometry;
private createCylinderGeometry;
private createSphereGeometry;
private createPyramidGeometry;
private createBoxGeometry;
private createConeGeometry;
private createWallGeometry;
private createPlaneGeometry;
}