#746 Implemented RTE for basic line materials (non thick)

This commit is contained in:
AlexandruPopovici
2022-05-17 17:53:49 +03:00
parent 742d83296e
commit a3c7dcf408
4 changed files with 194 additions and 1 deletions
@@ -7,6 +7,7 @@ import { Matrix4, Vector2, Vector3 } from 'three'
import { Geometry } from './converter/Geometry'
import SpeckleStandardMaterial from './materials/SpeckleStandardMaterial'
import SpeckleLineMaterial from './materials/SpeckleLineMaterial'
import SpeckleLineBasicMaterial from './materials/SpeckleLineBasicMaterial'
/**
* Manages objects and provides some convenience methods to focus on the entire scene, or one specific object.
*/
@@ -383,7 +384,7 @@ export default class SceneObjectManager {
clippingPlanes: this.viewer.sectionBox.planes
})
} else {
lineMaterial = new THREE.LineBasicMaterial({
lineMaterial = new SpeckleLineBasicMaterial({
color: 0x7f7f7f,
clippingPlanes: this.viewer.sectionBox.planes
})