|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
import { BufferGeometry, Line as TLine, Material, MathUtils, Matrix3, Matrix4, Mesh, Object3D, Vector3 } from "three";
|
|
|
|
|
import { BufferGeometry, Material, MathUtils, Matrix3, Matrix4, Mesh, Object3D, Line as TLine, Vector3 } from "three";
|
|
|
|
|
import { Line2 } from "three/examples/jsm/lines/Line2";
|
|
|
|
|
import { HostApplicationServices } from "../../ApplicationServices/HostApplicationServices";
|
|
|
|
|
import { AddEntityDrawObject } from "../../Common/AddEntityDrawObject";
|
|
|
|
|
import { arrayRemoveDuplicateBySort, arraySortByNumber } from "../../Common/ArrayExt";
|
|
|
|
|
import { ColorMaterial } from "../../Common/ColorPalette";
|
|
|
|
|
import { reviseMirrorMatrix } from "../../Common/Matrix4Utils";
|
|
|
|
|
import { FixedNotZero, FixIndex } from "../../Common/Utils";
|
|
|
|
|
import { FixIndex, FixedNotZero } from "../../Common/Utils";
|
|
|
|
|
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
|
|
|
|
|
import { BufferGeometryUtils } from "../../Geometry/BufferGeometryUtils";
|
|
|
|
|
import { angle, equaln, equalv3, polar } from "../../Geometry/GeUtils";
|
|
|
|
@ -317,11 +317,11 @@ export class LineAngularDimension extends Dimension
|
|
|
|
|
|
|
|
|
|
AddEntityDrawObject(obj, this._Arc, renderType);
|
|
|
|
|
arrow1.position.copy(this._Arc.StartPoint);
|
|
|
|
|
arrow1.rotation.z = this._Arc.GetFistDerivAngle(0) + Math.PI / 2;
|
|
|
|
|
arrow1.rotation.z = this._Arc.GetFirstDerivAngle(0) + Math.PI / 2;
|
|
|
|
|
arrow1.updateMatrix();
|
|
|
|
|
|
|
|
|
|
arrow2.position.copy(this._Arc.EndPoint);
|
|
|
|
|
arrow2.rotation.z = this._Arc.GetFistDerivAngle(1) - Math.PI / 2;
|
|
|
|
|
arrow2.rotation.z = this._Arc.GetFirstDerivAngle(1) - Math.PI / 2;
|
|
|
|
|
arrow2.updateMatrix();
|
|
|
|
|
|
|
|
|
|
this._Text.AutoUpdate = false;//更新标记
|
|
|
|
|