Jump to content

CreateSphere new option : help for naming wanted


jerome
 Share

Recommended Posts

OK stick to arc and slice I am good with those. Sorry for trying to confuse things even more.

 

For future reference be careful about adding the term 'rate' as this implies a change with time so something like arcRate:0.75  would imply change of 0.75 in the arc per second.

Link to comment
Share on other sites

Just PRed these new features :

  • arc for Sphere, Cylinder, Tube, Lathe (it was quite difficult for Torus because I didn't understand its geometry... will be done later)
  • slice for Sphere
  • closed for Lathe (boolean, default true... force at will a truncated lathe with arc to stay opened)

Please note that arc is a part of the accepted parameters for updating/morphing a tube !

 

var hemi = BABYLON.Mesh.CreateSphere("h", {slice: 0.5}, scene); // hemispherevar lune = BABYLON.Mesh.CreateSphere("h", {arc: 0.2}, scene);   // spherical lunevar touque = BABYLON.Mesh.CreateCylinder("bbq", {arc: 0.5}, scene); // half cylindervar tube = BABYLON.Mesh.CreateTube("t", {path: myPath, arc: 0.5}, scene); // half tubeBABYLON.Mesh.CreateTube(null, {path: myPath, arc: 0.2, instance: tube});  // note it's updatable !var lathe =  BABYLON.Mesh.CreateLathe("l", {shape : mySh, arc: 0.2, closed: false}, scene);// new "closed" parameter : keeps the lathe circumference open
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...