zhaomingjian / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

trying to get html input variables to update mesh model #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Problem is I don't know what I'm doing.

I have several variables I use to generate a mesh model.
Manually editing the variables in the script works...
but I want to change the variables on screen with html inputs.

I don't know how to delete the mesh and rebuild it with the changed variables. 

When I manually edit the variables in the script things work fine.

This is a great program.... Thanks for your help.
Roy Goodell  www.5xj.com

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by cnc...@gmail.com on 15 Nov 2014 at 12:46

Attachments:

GoogleCodeExporter commented 9 years ago
The example looks interesting.  I never tried such features but I think the 
basic idea may be like this: we manually place some helper objects (some small 
cubes for example) around the major models. When one of the helper objects is 
pressed or clicked, we can detect it by observing the viewer's 'onmousedown' or 
'onmouseclicked' events, which also return the references to the target 
objects. We can then response to the 'onmousemove' events, changing the shapes 
of our models with an expected algorithm.

There may be performance issue on large models, since we will have to 
recalculate the entire models each time an interaction event is coming. The 
cost will be high if our models are large. Experiments are required to test 
this concept.

Original comment by Humu2...@gmail.com on 21 Dec 2014 at 2:43

GoogleCodeExporter commented 9 years ago
Step 7 uploaded, creates Shank Mesh Object

http://www.5xj.com/WoodRings/jsc3d/coding/SignetRing7.html
http://www.5xj.com/WoodRings/jsc3d/coding/SignetCodingStepByStep.html

Next:
Combine two meshes into one mesh and 
mirror results to get complete manifold ring mesh.

Then create an output function to the write ring.obj.

This took a long time, got stuck with the flu... and a few wrong turns.

Roy

Original comment by cnc...@gmail.com on 24 Feb 2015 at 5:53

GoogleCodeExporter commented 9 years ago
Signet Ring Mesh Model now complete
http://www.5xj.com/WoodRings/jsc3d/Signet.html

This is it for now. 

Roy

Original comment by cnc...@gmail.com on 27 Feb 2015 at 5:52