import {BufferGeometry, Material, Mesh} from 'three'; /** * Class GMesh is fully extended from Mesh, but has two generics for geometry and material. * How to use: * Describing type of Mesh that has inside PlaneGeometry and MeshBasicMaterial: * ``` * private borderTorus: GMesh; * ``` * Creating instance of Mesh, that has inside PlaneGeometry and MeshBasicMaterial: * ``` * this.borderTorus = new GMesh(new PlaneGeometry(1, 1), new MeshBasicMaterial({})); * ``` */ export class GMesh extends Mesh { geometry: T; material: U; }