修正返回类型

pull/369/head
ChenX 5 years ago
parent f4d08ae34c
commit 6cf116ee04

@ -543,7 +543,7 @@ export class Board extends ExtureSolid
this.m_BoardProcessOption.highDrill = Array(cu.EndParam).fill(defaultType);
super.ContourCurve = cu;
}
GetBoardBoxInMat(mtx: Matrix4)
GetBoardBoxInMat(mtx: Matrix4): Box3Ext
{
let mtxC = mtx.clone().multiply(this.OCS);
return this.BoundingBoxInOCS.applyMatrix4(mtxC);

@ -10,6 +10,7 @@ import { CSG } from "../../csg/core/CSG";
import { CSG2Geometry, Geometry2CSG } from "../../csg/core/Geometry2CSG";
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { boardUVGenerator } from "../../Geometry/BoardUVGenerator";
import { Box3Ext } from "../../Geometry/Box";
import { BSPGroupParse } from "../../Geometry/BSPGroupParse";
import { FastWireframe } from "../../Geometry/CreateWireframe";
import { EdgesGeometry } from "../../Geometry/EdgeGeometry";
@ -96,9 +97,9 @@ export class ExtureSolid extends Entity
}
}
get BoundingBoxInOCS()
get BoundingBoxInOCS(): Box3Ext
{
return new Box3(new Vector3(), new Vector3(this.width, this.height, this.thickness));
return new Box3Ext(new Vector3(), new Vector3(this.width, this.height, this.thickness));
}
get GroovesAddLength()

Loading…
Cancel
Save