Changes between Version 36 and Version 37 of PythonOcc/elbow
- Timestamp:
- Dec 17, 2013, 12:53:12 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonOcc/elbow
v36 v37 362 362 viewer.setParameter('InitRotationY', 30); 363 363 viewer.setParameter('InitRotationZ', 30); 364 viewer.setParameter('RenderMode', ' smooth');364 viewer.setParameter('RenderMode', 'texture'); 365 365 viewer.setParameter('CreaseAngle', 15); 366 366 viewer.init(); … … 407 407 elbow_loader.loadFromUrl('/vaje/raw-attachment/wiki/PythonOcc/elbow/elbow.stl'); 408 408 409 pod = new JSC3D.Mesh(); 410 pod.isDoubleSided = false; w = 1000; h = -50; 411 pod.vertexBuffer = [-w, -w, h, w, -w, h, w, w, h, -w, w, h]; 412 pod.indexBuffer = [0, 1, 2, 3, -1]; 413 pod.texCoordBuffer = [0, 0, 1, 0, 1, 1, 0, 1]; 414 pod.texCoordIndexBuffer = [0,1,2,3,-1]; 415 pod.init(); 416 var tex = new JSC3D.Texture; 417 tex.onready = function() { 418 pod.setTexture(this); 419 viewer.update(); 420 }; 421 tex.createFromUrl('/vaje/raw-attachment/wiki/PythonOcc/elbow/Grass_by_jaqx_textures.jpg'); 422 theScene.addChild(pod); 409 423 viewer.update(); 410 424 }