MindFusion.Charting for JavaScript Programmer's Guide
Scene3D.buildCuboid Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

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

  Type: Number
  X coordinate of a corner point of the cuboid.

y1

  Type: Number
  Y coordinate of a corner point of the cuboid.

z1

  Type: Number
  Z coordinate of a corner point of the cuboid.

x2

  Type: Number
  X coordinate of diametrically opposite corner.

y2

  Type: Number
  Y coordinate of diametrically opposite corner.

z2

  Type: Number
  Z coordinate of diametrically opposite corner.

brush

  Type: Brush
  The Brush used to paint the cuboid model.

### Return Value

Type: Mesh3D
A Mesh3D containing the cuboid faces.

## See Also

Scene3D Members
Scene3D Class
MindFusion.Charting.ThreeD Namespace