pattern-x / gemini-viewer-examples

Examples and demos for gemini-viewer sdk, which is a WebGL based BIM model viewer, built on three.js. It is used to view dwg/dxf, gltf, obj, ifc models, etc.
169 stars 40 forks source link

line color #131

Open Super-Xiao opened 2 months ago

Super-Xiao commented 2 months ago

Hello, I have a question now. The color of the lines drawn after changing the background color through the toolbar has not changed. The original white lines cannot be displayed on a white background. Is there any way to change the line color after changing the background color?

Super-Xiao commented 2 months ago

@yanzexuan1

yanzexuan1 commented 2 months ago

There is no API yet for now to handle this, we cannot dynamically change the color.

Just for your reference, there is DxfLoaderConfig.overrideColor, you can set everything to this color when loading.

And, there is some other tricky mean. E.g., find line entities by yourself and change them, do-able with some efforts.