File Exchange

image thumbnail

Draw Cuboid

version 1.1 (1.93 KB) by

Creates a cuboid patch object with user-defined size, location and orientation.

3.33333
3 Ratings

6 Downloads

Updated

View License

Creates an 6 face cuboid patch object. User inputs are for center of volume, orientation, color, transparency and side lengths. The function returns the object handle as well as the face and vertex matrices.

Comments and Ratings (4)

Robert Shah

Only problem is you peform a translation at the origin, and then translate and rotate it. In the code R*CV should just be CV. Otherwise great code, Thank you!

Andrey

Andrey (view profile)

Great submission.

Catherine

Bad error handling. Insufficient instructions.

Peter Bone

Peter Bone (view profile)

8 face cuboid?

Updates

1.1

changed description

MATLAB Release
MATLAB 7.7 (R2008b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video