|
|
|
@ -30,8 +30,8 @@ import { DragPointType } from "./DragPointType";
|
|
|
|
|
import { Entity } from "./Entity";
|
|
|
|
|
import { Polyline } from "./Polyline";
|
|
|
|
|
import { Region } from "./Region";
|
|
|
|
|
import { Line2 } from "three/examples/jsm/lines/Line2.js";
|
|
|
|
|
import { LineMaterial } from "three/examples/jsm/lines/LineMaterial.js";
|
|
|
|
|
import { Line2 } from "three/examples/jsm/lines/Line2";
|
|
|
|
|
import { LineMaterial } from "three/examples/jsm/lines/LineMaterial";
|
|
|
|
|
|
|
|
|
|
/** 最大的槽个数,当大于最大个数时,实体不会绘制槽,并且不会校验槽的正确性 */
|
|
|
|
|
const MaxGrooveCount = 15;
|
|
|
|
@ -1258,9 +1258,9 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
let line = new Line2(geometry, mat);
|
|
|
|
|
let mat2 = ColorMaterial.GetBasicMaterial(7).clone();
|
|
|
|
|
let meshGeo = this.MeshGeometry.clone();
|
|
|
|
|
const n1 = 10 / this.width;
|
|
|
|
|
const n2 = 10 / this.height;
|
|
|
|
|
const n3 = 5 / this.thickness;
|
|
|
|
|
const n1 = 4 / this.width;
|
|
|
|
|
const n2 = 4 / this.height;
|
|
|
|
|
const n3 = 2 / this.thickness;
|
|
|
|
|
meshGeo.translate(this.width * n1 / 2, this.height * n2 / 2, n3 / 2 * this.thickness);
|
|
|
|
|
meshGeo.scale(1 - n1, 1 - n2, 1 - n3);
|
|
|
|
|
let mesh = new Mesh(meshGeo, mat2);
|
|
|
|
|