jerome Posted October 9, 2015 Author Share Posted October 9, 2015 you are the math teacher !we're only the confused students I would like the first term to be used also for tubes/cylinders, that's what I liked "arc" arc and slice ?I'm about to code ... Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 9, 2015 Share Posted October 9, 2015 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. Quote Link to comment Share on other sites More sharing options...
jerome Posted October 9, 2015 Author Share Posted October 9, 2015 ok, just arc and slice... and I will precise in the doc that they are percentages or ratios about "confusion", it was just a joke, your help was so useful in this topic ! Jaskar 1 Quote Link to comment Share on other sites More sharing options...
Convergence Posted October 9, 2015 Share Posted October 9, 2015 3ds max uses 'cut' for the slice and 'hemisphere' for the vertical chop. Also 3ds Mac fills the sliced part with new faces so the mesh is still closed - any plans for that? Quote Link to comment Share on other sites More sharing options...
jerome Posted October 9, 2015 Author Share Posted October 9, 2015 not for nowbut it could be a nice feature to add to my endless backlog ! Quote Link to comment Share on other sites More sharing options...
jerome Posted October 9, 2015 Author Share Posted October 9, 2015 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 Sphereclosed 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 JohnK and adam 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 9, 2015 Share Posted October 9, 2015 Fine for me Quote Link to comment Share on other sites More sharing options...
jerome Posted October 9, 2015 Author Share Posted October 9, 2015 updated doc : https://github.com/BabylonJS/Documentation/blob/master/content/tutorials/01_Play_Pen/Mesh_CreateXXX_Methods_With_Options_Parameter.md before it is pushed the real doc site Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.