Search
Scene3D.buildCuboid Method
See Also
 






Creates a cuboid model.

Namespace: MindFusion.Charting.ThreeD
File: Scene3D.js

 Syntax

JavaScript  Copy Code

function buildCuboid (x1, y1, z1, x2, y2, z2, brush)

 Parameters

x1

X coordinate of a corner point of the cuboid.

y1

Y coordinate of a corner point of the cuboid.

z1

Z coordinate of a corner point of the cuboid.

x2

X coordinate of diametrically opposite corner.

y2

Y coordinate of diametrically opposite corner.

z2

Z coordinate of diametrically opposite corner.

brush

The Brush used to paint the cuboid model.

 Return Value

A Mesh3D containing the cuboid faces.

 See Also