- BabylonJS Tutorial
- BabylonJS - Home
- BabylonJS - Introduction
- BabylonJS - Environment Setup
- BabylonJS - Overview
- BabylonJS - Basic Elements
- BabylonJS - Materials
- BabylonJS - Animations
- BabylonJS - Cameras
- BabylonJS - Lights
- BabylonJS - Parametric Shapes
- BabylonJS - Mesh
- VectorPosition and Rotation
- BabylonJS - Decals
- BabylonJS - Curve3
- BabylonJS - Dynamic Texture
- BabylonJS - Parallax Mapping
- BabylonJS - Lens Flares
- BabylonJS - Create ScreenShot
- BabylonJS - Reflection Probes
- Standard Rendering Pipeline
- BabylonJS - ShaderMaterial
- BabylonJS - Bones and Skeletons
- BabylonJS - Physics Engine
- BabylonJS - Playing Sounds & Music
- BabylonJS Useful Resources
- BabylonJS - Quick Guide
- BabylonJS - Useful Resources
- BabylonJS - Discussion
BabylonJS - Torus
This is one of the shapes used with the MeshBuilder.
Syntax
Following is the syntax to create torus −
var torus = BABYLON.MeshBuilder.CreateTorus("torus", {diameter, thickness: 0.2, tessellation, updatable}, scene);
Parameters
Consider the following parameters to create a torus −
Diameter − Diameter of the torus.
Thickness − Thickness of its tube.
Tessellation − Number of segments along the circle.
Updatable − By default, set to false.If it needs to be updated during morphing, you can set it to true.
babylonjs_mesh.htm
Advertisements