|
@@ -48,7 +48,7 @@ async function createGaussianSurfaceMesh(ctx: VisualContext, unit: Unit, structu
|
|
|
const surface = await computeMarchingCubesMesh(params, mesh).runAsChild(ctx.runtime)
|
|
|
|
|
|
Mesh.transformImmediate(surface, transform)
|
|
|
- Mesh.uniformTriangleGroup(surface)
|
|
|
+ if (ctx.webgl && !ctx.webgl.isWebGL2) Mesh.uniformTriangleGroup(surface)
|
|
|
|
|
|
return surface
|
|
|
}
|
|
@@ -91,7 +91,7 @@ async function createStructureGaussianSurfaceMesh(ctx: VisualContext, structure:
|
|
|
const surface = await computeMarchingCubesMesh(params, mesh).runAsChild(ctx.runtime)
|
|
|
|
|
|
Mesh.transformImmediate(surface, transform)
|
|
|
- Mesh.uniformTriangleGroup(surface)
|
|
|
+ if (ctx.webgl && !ctx.webgl.isWebGL2) Mesh.uniformTriangleGroup(surface)
|
|
|
|
|
|
return surface
|
|
|
}
|