From df6b061dbb8836489016b223452add2c8e2a4874 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Fri, 4 Dec 2020 15:39:45 +0000 Subject: Rename CubeMesh BoxMesh --- doc/classes/BoxMesh.xml | 30 ++++++++++++++++++++++++++++++ doc/classes/CubeMesh.xml | 30 ------------------------------ doc/classes/MeshDataTool.xml | 4 ++-- doc/classes/PrimitiveMesh.xml | 2 +- 4 files changed, 33 insertions(+), 33 deletions(-) create mode 100644 doc/classes/BoxMesh.xml delete mode 100644 doc/classes/CubeMesh.xml (limited to 'doc/classes') diff --git a/doc/classes/BoxMesh.xml b/doc/classes/BoxMesh.xml new file mode 100644 index 0000000000..88d22ac899 --- /dev/null +++ b/doc/classes/BoxMesh.xml @@ -0,0 +1,30 @@ + + + + Generate an axis-aligned box [PrimitiveMesh]. + + + Generate an axis-aligned box [PrimitiveMesh]. + The box's UV layout is arranged in a 3×2 layout that allows texturing each face individually. To apply the same texture on all faces, change the material's UV property to [code]Vector3(3, 2, 1)[/code]. + + + + + + + + Size of the box mesh. + + + Number of extra edge loops inserted along the Z axis. + + + Number of extra edge loops inserted along the Y axis. + + + Number of extra edge loops inserted along the X axis. + + + + + diff --git a/doc/classes/CubeMesh.xml b/doc/classes/CubeMesh.xml deleted file mode 100644 index 1f64b4a21f..0000000000 --- a/doc/classes/CubeMesh.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - Generate an axis-aligned cuboid [PrimitiveMesh]. - - - Generate an axis-aligned cuboid [PrimitiveMesh]. - The cube's UV layout is arranged in a 3×2 layout that allows texturing each face individually. To apply the same texture on all faces, change the material's UV property to [code]Vector3(3, 2, 1)[/code]. - - - - - - - - Size of the cuboid mesh. - - - Number of extra edge loops inserted along the Z axis. - - - Number of extra edge loops inserted along the Y axis. - - - Number of extra edge loops inserted along the X axis. - - - - - diff --git a/doc/classes/MeshDataTool.xml b/doc/classes/MeshDataTool.xml index d4157dd4c9..db7a3187f0 100644 --- a/doc/classes/MeshDataTool.xml +++ b/doc/classes/MeshDataTool.xml @@ -10,7 +10,7 @@ [codeblocks] [gdscript] var mesh = ArrayMesh.new() - mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, CubeMesh.new().get_mesh_arrays()) + mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, BoxMesh.new().get_mesh_arrays()) var mdt = MeshDataTool.new() mdt.create_from_surface(mesh, 0) for i in range(mdt.get_vertex_count()): @@ -27,7 +27,7 @@ [/gdscript] [csharp] var mesh = new ArrayMesh(); - mesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, new CubeMesh().GetMeshArrays()); + mesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, new BoxMesh().GetMeshArrays()); var mdt = new MeshDataTool(); mdt.CreateFromSurface(mesh, 0); for (var i = 0; i < mdt.GetVertexCount(); i++) diff --git a/doc/classes/PrimitiveMesh.xml b/doc/classes/PrimitiveMesh.xml index 7e9bccc1d7..25943f6d47 100644 --- a/doc/classes/PrimitiveMesh.xml +++ b/doc/classes/PrimitiveMesh.xml @@ -4,7 +4,7 @@ Base class for all primitive meshes. Handles applying a [Material] to a primitive mesh. - Base class for all primitive meshes. Handles applying a [Material] to a primitive mesh. Examples include [CapsuleMesh], [CubeMesh], [CylinderMesh], [PlaneMesh], [PrismMesh], [QuadMesh], and [SphereMesh]. + Base class for all primitive meshes. Handles applying a [Material] to a primitive mesh. Examples include [BoxMesh], [CapsuleMesh], [CylinderMesh], [PlaneMesh], [PrismMesh], [QuadMesh], and [SphereMesh]. -- cgit v1.2.3