Element

Cube Element

Fundamental building block for 3D models

Overview

The cube element allows you to create basic cubic shapes with customizable width, length, and height. It's one of the fundamental building blocks for creating 3D models in confBuild.

Key Features

  • Configurable width, length, and height dimensions
  • Full position and rotation control in 3D space
  • Customizable material and color
  • Support for transparent materials

Parameters

Configure your cube with these parameters.

Parameter Description Example
width Width of the cube along X-axis 100
length Length of the cube along Y-axis 100
height Height of the cube along Z-axis 100
material Material/color of the cube #550000
x, y, z Position in 3D space 0, 0, 0
rx, ry, rz Rotation angles in degrees 0, 0, 0

Usage Examples

Learn how to create cubes with these examples.

Basic Cube

A simple cube with equal dimensions:

Type Width Length Height Material X Y Z
cube 100 100 100 #550000 0 0 0

This creates a 100x100x100 cube in dark red color at the origin.

Rectangular Box

A box with different dimensions:

Type Width Length Height Material X Y Z
cube 200 100 50 #445566 0 0 0

This creates a rectangular box with width 200, length 100, and height 50 in gray-blue color.

Best Practices

Tips for working with cubes effectively.

Recommendations

  • Use equal dimensions (width = length = height) for perfect cubes
  • Position the cube relative to other objects in your scene
  • Use rotation to align the cube with other geometric features
  • Consider using transparent materials (e.g., "#55000088") for visualization

Common Applications

  • Creating basic building blocks for larger structures
  • Prototyping and placeholder geometry
  • Creating bounding boxes for other objects
  • Building simple architectural elements

Common Issues and Solutions

Solutions to frequently encountered problems.

Cube appears too large or small

Check your units and scale. confBuild typically uses millimeters (mm) as the default unit. Adjust dimensions accordingly.

Cube is not visible

Verify the position coordinates and ensure the cube is within the visible area of your scene. Check that the camera view includes the cube's location.

Unexpected orientation

Double-check the rotation angles (rx, ry, rz). Remember that rotations are applied in degrees.

Ready to build?

Start creating with cubes

Get Started