Skip to content

hobinjk-ptc/threejs-collada-tool-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

threejs + collada tool example

This is based on https://spatialtoolbox.vuforia.com/docs/tutorials/three-js-tool-tutorial so read that first if you haven't.

The key addition to that code is customizing the content in the scene's container object:

const loader = new ColladaLoader();
loader.load('./assets/export.dae', function(collada) {
  containerObj.add(collada.scene);
});

Note that depending on your model you may have to adjust collada.scene.position, collada.scene.rotation, and collada.scene.scale.

Exporting from Onshape

Right click either your part or assembly and select "Export." You can now refer to this downloaded file in your tool.

export from menu

select format and ok

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages