Function CreateDiscVertexData
-
CreateDiscVertexData(
options: {
arc?: number;
backUVs?: Vector4;
frontUVs?: Vector4;
radius?: number;
sideOrientation?: number;
tessellation?: number;
},
): VertexDataParameters
- options: {
arc?: number;
backUVs?: Vector4;
frontUVs?: Vector4;
radius?: number;
sideOrientation?: number;
tessellation?: number;
}an object used to set the following optional parameters for the disc, required but can be empty
- radius the radius of the disc, optional default 0.5
- tessellation the number of polygon sides, optional, default 64
- arc a number from 0 to 1, to create an unclosed polygon based on the fraction of the circumference given by the arc value, optional, default 1
- sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE
- frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)
- backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)
Returns VertexData
the VertexData of the box
- options: {
Creates the VertexData of the Disc or regular Polygon