diff --git a/src/plugins/AngleMeasurementsPlugin/AngleMeasurement.js b/src/plugins/AngleMeasurementsPlugin/AngleMeasurement.js index 119828bc2..0ce7e1172 100644 --- a/src/plugins/AngleMeasurementsPlugin/AngleMeasurement.js +++ b/src/plugins/AngleMeasurementsPlugin/AngleMeasurement.js @@ -281,25 +281,6 @@ class AngleMeasurement extends Component { if (this._cpDirty) { - const near = -0.3; - const zOrigin = this._originDot.viewPos[2]; - const zCorner = this._cornerDot.viewPos[2]; - const zTarget = this._targetDot.viewPos[2]; - - if (zOrigin > near || zCorner > near || zTarget > near) { - - this._originDot.setVisible(false); - this._cornerDot.setVisible(false); - this._targetDot.setVisible(false); - - this._originWire.setVisible(false); - this._targetWire.setVisible(false); - - this._angleLabel.setCulled(true); - - return; - } - math.transformPositions4(scene.camera.project.matrix, this._vp, this._pp); var pp = this._pp; diff --git a/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js b/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js index b96d5a0e9..9031ae61a 100644 --- a/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js +++ b/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js @@ -471,28 +471,6 @@ class DistanceMeasurement extends Component { this._sectionPlanesDirty = true; } - const near = -0.3; - const vpz1 = this._originDot.viewPos[2]; - const vpz2 = this._targetDot.viewPos[2]; - - if (vpz1 > near || vpz2 > near) { - - this._xAxisLabel.setCulled(true); - this._yAxisLabel.setCulled(true); - this._zAxisLabel.setCulled(true); - this._lengthLabel.setCulled(true); - - this._xAxisWire.setVisible(false); - this._yAxisWire.setVisible(false); - this._zAxisWire.setVisible(false); - this._lengthWire.setVisible(false); - - this._originDot.setVisible(false); - this._targetDot.setVisible(false); - - return; - } - if (this._cpDirty) { math.transformPositions4(scene.camera.project.matrix, this._vp, this._pp);