Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StlWriter

Create an STL File from a surface Object (e.g. for 3D printing)

example

molsurf = new MolecularSurface(structure) surf = molsurf.getSurface({type: 'av', probeRadius: 1.4}) stl = new StlWriter(surf) stl.download('myFileName')

Hierarchy

Index

Constructors

constructor

Properties

defaultExt

defaultExt: "stl" = "stl"

defaultName

defaultName: "surface" = "surface"

mimeType

mimeType: "application/vnd.ms-pki.stl" = "application/vnd.ms-pki.stl"

surface

surface: any

Methods

download

  • download(name?: undefined | string, ext?: undefined | string): void
  • Trigger a download of the

    Parameters

    • Optional name: undefined | string
    • Optional ext: undefined | string

    Returns void

    [description]

getBlob

  • getBlob(): Blob

getData

  • getData(): DataView

Generated using TypeDoc