|
|
|
@ -1978,6 +1978,8 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
return geo as BufferGeometry;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected get Has2DPath() { return false; }
|
|
|
|
|
|
|
|
|
|
protected _EdgeGeometry: EdgesGeometry | BufferGeometry;
|
|
|
|
|
get EdgeGeometry()
|
|
|
|
|
{
|
|
|
|
@ -1991,7 +1993,7 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
return this._EdgeGeometry;
|
|
|
|
|
|
|
|
|
|
//这里我们超过100就用这个,为了性能 和MaxDrawGrooveCount不一致
|
|
|
|
|
if (this.grooves.length > 100 || this.grooves.every(g => equaln(g.thickness, this.thickness)) || this.grooves.length === 0)
|
|
|
|
|
if (this.grooves.length > 100 || this.grooves.every(g => equaln(g.thickness, this.thickness)) || (this.grooves.length === 0 && !this.Has2DPath))
|
|
|
|
|
{
|
|
|
|
|
let coords = FastExtrudeEdgeGeometry(this, this.ColorIndex, 12, true);
|
|
|
|
|
let edgeGeo = new BufferGeometry();
|
|
|
|
|