调整threejs类型
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import * as THREE from 'three';
|
||||
import { Vector3, Line3 } from "three";
|
||||
import { Vector3, Line3, Plane } from "three";
|
||||
|
||||
export class PlaneExt extends THREE.Plane
|
||||
export class PlaneExt extends Plane
|
||||
{
|
||||
constructor(normal?: THREE.Vector3, constant?: number)
|
||||
constructor(normal?: Vector3, constant?: number)
|
||||
{
|
||||
super(normal, constant);
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Font, FontLoader, Mesh, ShapeGeometry, Vector3 } from "three";
|
||||
import { Font, FontLoader, Mesh, ShapeGeometry, Vector3, Shape } from "three";
|
||||
import { ColorMaterial } from "./ColorPalette";
|
||||
import { MoveMatrix } from "./GeUtils";
|
||||
|
||||
@@ -30,7 +30,7 @@ export class DbText extends Mesh
|
||||
{
|
||||
let font = FontLoaderUtil.Load();
|
||||
|
||||
let shapes: THREE.Shape[] = font.generateShapes(str, height, 0.1);
|
||||
let shapes: Shape[] = font.generateShapes(str, height, 0.1);
|
||||
let geometry = new ShapeGeometry(shapes);
|
||||
|
||||
geometry.computeBoundingBox();
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { Object3D } from "three";
|
||||
import { Object3D, Mesh } from "three";
|
||||
import { createTemplateBoard, DrawDimension, Viewer, selectMaterial } from ".";
|
||||
|
||||
function dispose(m: Object3D)
|
||||
@@ -12,7 +12,7 @@ function dispose(m: Object3D)
|
||||
}
|
||||
|
||||
|
||||
let blockMeshs: THREE.Mesh[];
|
||||
let blockMeshs: Mesh[];
|
||||
let dataRelations: {
|
||||
blockMeshMap: Map<number, number>,
|
||||
meshBlockMap: Map<number, number>
|
||||
|
Reference in New Issue
Block a user