1.0.6 • Published 3 years ago

qse-core v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

qse-core

基于 three.js 的可视化库,旨在简易,快速,高效的生成 3D 项目!为了获得最佳的使用体验,建议搭配 qse-editer 一起使用!

Project setup

npm install qse-core

Project example

import { World, Mesh, getMeshOptions, getBoxGeometryAttribute, getBasicMaterialAttribute, } from 'qse-core'

//创建一个世界
const world = new World()
world.start(document.body)


//生成Box
const geometry = getBoxGeometryAttribute()
const material = getBasicMaterialAttribute()
const mesh = new Mesh(getMeshOptions(geometry, material))
world.add(mesh)

//更新Box
geometry.width = 4
material.color = '#ff000'
mesh.needUpdate = true
mesh.needUpdateGeometry = true

//销毁Box
mesh.dispose()

Project document

更详细的文档正在准备中!
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago