Skip to content
Snippets Groups Projects
Unverified Commit 3bbc65ce authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #794 from HumanBrainProject/chore_finetunePlotlyMesh

chore: prettify plotly meshes
parents 00a716b2 bbd293a7
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ import { ...@@ -13,6 +13,7 @@ import {
IavRootStoreInterface, IavRootStoreInterface,
safeFilter safeFilter
} from "src/services/stateStore.service"; } 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 { ClickInterceptor, CLICK_INTERCEPTOR_INJECTOR } from "src/util";
import { ModalHandler } from "../util/pluginHandlerClasses/modalHandler"; import { ModalHandler } from "../util/pluginHandlerClasses/modalHandler";
import { ToastHandler } from "../util/pluginHandlerClasses/toastHandler"; import { ToastHandler } from "../util/pluginHandlerClasses/toastHandler";
...@@ -387,7 +388,8 @@ export class AtlasViewerAPIServices implements OnDestroy{ ...@@ -387,7 +388,8 @@ export class AtlasViewerAPIServices implements OnDestroy{
this.interactiveViewer.viewerHandle?.loadLayer({ this.interactiveViewer.viewerHandle?.loadLayer({
[id]: { [id]: {
type: 'mesh', type: 'mesh',
source: `vtk://${url}` source: `vtk://${url}`,
shader: `void main(){${FRAGMENT_EMIT_RED};}`
} }
}) })
}) })
......
...@@ -312,7 +312,7 @@ onmessage = (message) => { ...@@ -312,7 +312,7 @@ onmessage = (message) => {
} }
} }
if (plotyVtkUrl) URL.revokeObjectURL(plotyVtkUrl) if (plotyVtkUrl) URL.revokeObjectURL(plotyVtkUrl)
const vtkString = parseLmToVtk(lm, 1e-1) const vtkString = parseLmToVtk(lm, 3e-2)
plotyVtkUrl = URL.createObjectURL( plotyVtkUrl = URL.createObjectURL(
new Blob([ encoder.encode(vtkString) ], { type: 'application/octet-stream' }) 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