功能:允许自定义边框的颜色

temp_color_0
ChenX 2 years ago
parent f1a446250c
commit 8c214b9e4b

@ -10,6 +10,9 @@ export class IHostApplicationServices
@ProxyValue isShowLightShadow: boolean = true;//灯光阴影 (除太阳光外)
ShowHistoryLog: boolean = true;
Physical2EdgeColor = 7;//真实视图带线框的线框颜色 默认白色
ConceptualEdgeColor = 7;//概念线框的颜色
DrawWallBottomFace = false;//绘制底面
private __ProxyObject__: any;//代理对象,当代理对象存在时,获取内部的值指向代理对象

@ -3,6 +3,7 @@ import Flatbush from 'flatbush';
import { Box3, BoxGeometry, BufferGeometry, ExtrudeGeometry, ExtrudeGeometryOptions, Float32BufferAttribute, Geometry, InstancedInterleavedBuffer, InterleavedBufferAttribute, Line as TLine, LineSegments, Matrix3, Matrix4, Mesh, Object3D, UVGenerator, Vector3 } from "three";
import { Line2 } from "three/examples/jsm/lines/Line2";
import { LineGeometry } from "three/examples/jsm/lines/LineGeometry";
import { HostApplicationServices } from '../../ApplicationServices/HostApplicationServices';
import { arrayClone, arrayLast, arrayPushArray, arrayRemoveIf, arrayRemoveOnce, arraySortByNumber, arraySum } from "../../Common/ArrayExt";
import { ColorMaterial } from "../../Common/ColorPalette";
import { CSGIntersect } from '../../Common/CSGIntersect';
@ -1620,7 +1621,7 @@ export class ExtrudeSolid extends Entity
{
return new Object3D().add(
new Mesh(this.MeshGeometry, ColorMaterial.GetConceptualMaterial(this.ColorIndex)),
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(HostApplicationServices.ConceptualEdgeColor))
);
}
else if (renderType === RenderType.Physical)
@ -1657,7 +1658,7 @@ export class ExtrudeSolid extends Entity
return new Object3D().add(
mesh,
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(HostApplicationServices.Physical2EdgeColor))
);
}
}
@ -2011,7 +2012,7 @@ export class ExtrudeSolid extends Entity
{
return obj.add(
new Mesh(this.MeshGeometry, ColorMaterial.GetConceptualMaterial(this.ColorIndex)),
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(HostApplicationServices.ConceptualEdgeColor))
);
}
else if (renderType === RenderType.Physical)
@ -2043,7 +2044,7 @@ export class ExtrudeSolid extends Entity
return obj.add(
mesh,
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(HostApplicationServices.Physical2EdgeColor))
);
}
}

Loading…
Cancel
Save