Skip to content
Snippets Groups Projects
Commit bbd293a7 authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: prettify plotly meshes

parent 0f8d6dd1
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import {
IavRootStoreInterface,
safeFilter
} from "src/services/stateStore.service";
import { FRAGMENT_EMIT_RED } from "src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component";
import { ClickInterceptor, CLICK_INTERCEPTOR_INJECTOR } from "src/util";
import { ModalHandler } from "../util/pluginHandlerClasses/modalHandler";
import { ToastHandler } from "../util/pluginHandlerClasses/toastHandler";
......@@ -387,7 +388,8 @@ export class AtlasViewerAPIServices implements OnDestroy{
this.interactiveViewer.viewerHandle?.loadLayer({
[id]: {
type: 'mesh',
source: `vtk://${url}`
source: `vtk://${url}`,
shader: `void main(){${FRAGMENT_EMIT_RED};}`
}
})
})
......
......@@ -312,7 +312,7 @@ onmessage = (message) => {
}
}
if (plotyVtkUrl) URL.revokeObjectURL(plotyVtkUrl)
const vtkString = parseLmToVtk(lm, 1e-1)
const vtkString = parseLmToVtk(lm, 3e-2)
plotyVtkUrl = URL.createObjectURL(
new Blob([ encoder.encode(vtkString) ], { type: 'application/octet-stream' })
)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment