diff --git a/src/examples/alpha-orbitals/index.ts b/src/examples/alpha-orbitals/index.ts index 4ce65c3ae56360ca8635ec52320684bb26c09c1f..97ed7d3ce8f97c7f0f641306c12b8cf022f4ca3c 100644 --- a/src/examples/alpha-orbitals/index.ts +++ b/src/examples/alpha-orbitals/index.ts @@ -170,12 +170,11 @@ export class AlphaOrbitalsExample { return { alpha: 0.85, color, - directVolume: this.state.value.gpuSurface, kind, relativeIsovalue: this.state.value.isoValue, pickable: false, xrayShaded: true, - tryUseGpu: false + tryUseGpu: true }; } diff --git a/src/extensions/alpha-orbitals/transforms.ts b/src/extensions/alpha-orbitals/transforms.ts index 724f3f4166cf4222daca205e1360d1bd897655a9..d9d2ebd363efd5cf9617e0b02b7893ac8524c2af 100644 --- a/src/extensions/alpha-orbitals/transforms.ts +++ b/src/extensions/alpha-orbitals/transforms.ts @@ -166,7 +166,6 @@ export const CreateOrbitalRepresentation3D = PluginStateTransform.BuiltIn({ from: PluginStateObject.Volume.Data, to: PluginStateObject.Volume.Representation3D, params: { - directVolume: PD.Boolean(false), relativeIsovalue: PD.Numeric(1, { min: 0.01, max: 5, step: 0.01 }), kind: PD.Select<'positive' | 'negative'>('positive', [['positive', 'Positive'], ['negative', 'Negative']]), color: PD.Color(ColorNames.blue), @@ -217,19 +216,7 @@ function volumeParams(plugin: PluginContext, volume: PluginStateObject.Volume.Da const value = isovalues[params.kind]; - return createVolumeRepresentationParams(plugin, volume.data, params.directVolume ? { - type: 'direct-volume', - typeParams: { - alpha: params.alpha, - renderMode: { - name: 'isosurface', - params: { isoValue: { kind: 'absolute', absoluteValue: (value ?? 1000) * params.relativeIsovalue }, singleLayer: false } - }, - xrayShaded: params.xrayShaded - }, - color: 'uniform', - colorParams: { value: params.color } - } : { + return createVolumeRepresentationParams(plugin, volume.data, { type: 'isosurface', typeParams: { isoValue: { kind: 'absolute', absoluteValue: (value ?? 1000) * params.relativeIsovalue }, alpha: params.alpha, xrayShaded: params.xrayShaded, tryUseGpu: params.tryUseGpu }, color: 'uniform',