Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a color to the selected mesh / Add different types of meshes (i.e. type#A or type#B) #142

Open
GoogleCodeExporter opened this issue Apr 9, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Go to JSC3D.Viewer.prototype.mouseDownHandler
2. Add 
    if(this.onmousedown) {
        var info = this.pick(e.clientX, e.clientY);
        this.onmousedown(info.canvasX, info.canvasY, e.button, info.depth, info.mesh);
        //testing - add a point or mesh to the clicked point or mesh
        var newMat = new JSC3D.Mesh.Material('', 0, 0x000080, 0, true);
        info.mesh.setMaterial(newMat);
        JSC3D.Viewer.update();
    }

What is the expected output? What do you see instead?
The color of the selected mesh should change; nothing does get changed 

What version of the product are you using? On what operating system?
latest version of jsc3d as of jan 27'15

Please provide any additional information below.
Type A would be the center of the entire image
Type B would be the center of masses (i.e. head, leg, body, etc) 

Original issue reported on code.google.com by [email protected] on 26 Jan 2015 at 5:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant