drawModelWires

fun Canvas.drawModelWires(model: Model, x: Int, y: Int, z: Int, scale: Float = 1.0f, tint: Color = Color.BLACK)

Draws the wires of a 3D model on the canvas.

This function is useful for debugging purposes to visualize the model's wireframe.

Parameters

model

The model to draw.

x

The X coordinate of the model position.

y

The Y coordinate of the model position.

z

The Z coordinate of the model position.

scale

The scale of the model.

tint

The tint color to apply to the model wires. Default is black.


fun Canvas.drawModelWires(model: Model, position: ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>, scale: Float = 1.0f, tint: Color = Color.BLACK)

Draws the wires of a 3D model on the canvas.

This function is useful for debugging purposes to visualize the model's wireframe.

Parameters

model

The model to draw.

position

The position of the model as a Triple of X, Y, Z coordinates.

scale

The scale of the model.

tint

The tint color to apply to the model wires. Default is black.


fun Canvas.drawModelWires(model: Model, x: Int, y: Int, z: Int, rotX: Float, rotY: Float, rotZ: Float, rotAngle: Float, scaleX: Float = 1.0f, scaleY: Float = 1.0f, scaleZ: Float = 1.0f, tint: Color = Color.BLACK)

Draws the wires of a 3D model on the canvas with extended parameters.

This function is useful for debugging purposes to visualize the model's wireframe.

Parameters

model

The model to draw.

x

The X coordinate of the model position.

y

The Y coordinate of the model position.

z

The Z coordinate of the model position.

rotX

The X axis position where to rotate

rotY

The Y axis position where to rotate

rotZ

The Z axis position where to rotate

rotAngle

The rotational angle along the specified axis in degrees

scaleX

The scale of the model along the X axis.

scaleY

The scale of the model along the Y axis.

scaleZ

The scale of the model along the Z axis.

tint

The tint color to apply to the model wires. Default is black.


fun Canvas.drawModelWires(model: Model, position: ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, rotAngle: Float, scaleX: Float = 1.0f, scaleY: Float = 1.0f, scaleZ: Float = 1.0f, tint: Color = Color.BLACK)

Draws the wires of a 3D model on the canvas with extended parameters.

Parameters

model

The model to draw.

position

The position of the model as a Triple of X, Y, Z coordinates.

rotation

The rotation of the model as a Triple of X, Y, Z axis positions.

rotAngle

The rotational angle along the specified axis in degrees

scaleX

The scale of the model along the X axis.

scaleY

The scale of the model along the Y axis.

scaleZ

The scale of the model along the Z axis.

tint

The tint color to apply to the model wires. Default is black.