cifloader3
TypeScript icon, indicating that this package has built-in type declarations

0.9.3 • Public • Published

CIFLoader3

CIF-File Loader for Three.js
npm

CIF-Files are file containing crystallographic information about molecules (which can be obtained here: CCDC)

Install

npm install cifloader3

Notice: If you're using it in Nuxt.js like me don't forget to transpile three and cifloader3

build: {
transpile: ['three', 'cifloader3']
}

Usage

	import  *  as  THREE  from  'three'
	import { CIFLoader } from  'cifloader3'
	var loader = new CIFLoader();
	loader.load(filename, function(cif) {
		//do stuff here
	},
	function(xhr) {
		//show loading progress here
	},
	function(error) {
		//handle errors here
	});

For further information have a look at the three.js examples directory: THREE

/cifloader3/

    Package Sidebar

    Install

    npm i cifloader3

    Weekly Downloads

    1

    Version

    0.9.3

    License

    MIT

    Unpacked Size

    13.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • jenskrumsieck