Skip to content

ScaleMesh

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

ScaleMesh

ScaleMesh:Void mesh:Int32, x_scale:Float32, y_scale:Float32, z_scale:Float32
Parameter Mode Type Default Description
mesh In Int32 required Mesh handle.
x_scale In Float32 required Factor along X.
y_scale In Float32 required Factor along Y.
z_scale In Float32 required Factor along Z.

Description

Multiplies the coordinates of every vertex by a factor per axis, permanently, around the origin. Unlike ScaleEntity it changes the mesh itself, so its size from MeshWidth and friends changes too. A negative factor mirrors the mesh, which also turns its triangles inside out, so follow it with FlipMesh.

Related Commands

AddMesh, CopyMesh, CreateMesh, FitMesh, FlipMesh, LoadAnimMesh, LoadMesh, PaintMesh

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally