Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private addFeatureData(srcGeometry: Geometry, technique: Technique, object: THREE.Object3D) {
if (
((srcGeometry.objInfos !== undefined && srcGeometry.objInfos.length > 0) ||
isCirclesTechnique(technique) ||
isSquaresTechnique(technique)) &&
!isSolidLineTechnique(technique)
) {
const featureData: TileFeatureData = {
geometryType: srcGeometry.type,
starts: srcGeometry.featureStarts,
objInfos: srcGeometry.objInfos
};
object.userData.feature = featureData;
}
}