From 6bbd1dab27e1a2d0069a09c2cc9bbcbb40d1bd4c Mon Sep 17 00:00:00 2001 From: laoluo Date: Mon, 20 Feb 2023 11:22:29 +0800 Subject: [PATCH] feat(pointcloud): The default color of Box is white --- .../src/core/pointCloud/index.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/lb-annotation/src/core/pointCloud/index.ts b/packages/lb-annotation/src/core/pointCloud/index.ts index 1389578c6..f317cc97e 100644 --- a/packages/lb-annotation/src/core/pointCloud/index.ts +++ b/packages/lb-annotation/src/core/pointCloud/index.ts @@ -258,15 +258,16 @@ export class PointCloud { * @param color */ public generateBox(boxParams: IPointCloudBox, color = 0xffffff) { - let newColor = color; - if (this.config?.attributeList && this.config?.attributeList?.length > 0 && boxParams.attribute) { - newColor = - toolStyleConverter.getColorFromConfig( - { attribute: boxParams.attribute }, - { ...this.config, attributeConfigurable: true }, - {}, - )?.hex ?? color; - } + const newColor = color; + // Temporarily turn the Box white + // if (this.config?.attributeList && this.config?.attributeList?.length > 0 && boxParams.attribute) { + // newColor = + // toolStyleConverter.getColorFromConfig( + // { attribute: boxParams.attribute }, + // { ...this.config, attributeConfigurable: true }, + // {}, + // )?.hex ?? color; + // } this.AddBoxToSense(boxParams, newColor); this.render();