Skip to content

Makes a floating mini CAD to easily edit objects in three.js scenes

Notifications You must be signed in to change notification settings

ThFrAng/miniCAD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

miniCAD

Makes a floating mini CAD to easily edit objects in three.js scenes.
miniCAD can controls objects of three.js complexe scenes.

powered by georgealways lil-gui https://github.com/georgealways/lil-gui/

for three.js https://threejs.org/

Screenshot miniCAD

import {MiniCAD} from 'miniCAD.js';

const scene = new THREE.Scene();
const box = new THREE.Mesh(new THREE.BoxGeometry(1, 1, 1), new THREE.MeshBasicMaterial({color: 0xffffff}));

const miniCAD = new MiniCAD(scene);

miniCAD.add(box, 'mesh', "Box 1");



miniCAD.add(obj, 'type', "name");

Adds an object to the miniCAD

  • obj - the object to add to the miniCAD

  • type - type of the object : 'mesh', 'light', 'fog', 'color', 'bvh', 'csm' (other types will be added in the futur, you can request types you need)

  • name - name given to the object, this name will be displayed in the miniCAD, if name identical, it will be incremented

About

Makes a floating mini CAD to easily edit objects in three.js scenes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published