0.9.3 • Published 2 years ago

cifloader3 v0.9.3

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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

0.9.3

2 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago