__Function file:__ **cube(m,n,p,a,prop,val)**

This function plots a cube. Definition:

- 1 cube - left bottom corner in [m,n,p] and length of side "a"; all values are scalars
- n-cubes - left bottom corners in [m,n,p] and lengths of sides "a"; all values are vectors

Parameters of function:

Parameters

*m,n,p* describe left down corner of the cube in axes x,y,z.

Parameter

*a* describe length of side of the cube.

Parameters

*prop, val* are using for color and opacity. Parameter

*prop* can be either "c"(as color) or "o" (as opacity). Parameter

*Val* is value of

*prop*, so at color it is vector 1x3 ([R G B]) and at opacity it is number 0-1, lower number mean more transparent object. These parameters are oprional.

Example:

*
cube([0,2],[0,3.2],[0,-1.2],[2,3],["c","o"],[[1 0.5 0.5],0.5]);*

__Function file:__ **block(m,n,p,a,b,c,prop,val)**

This function plots a block. Definition:

- 1 block - left bottom corner in [m,n,p] and length of side "a","b","c"; all values are scalars
- n-blocks - left bottom corners in [m,n,p] and lengths od sides "a","b","c"; all values are vectors

Parameters:

Parameters

*m,n,p* described left bottom corner of the block in axes x,y,z.

Parameters

*a,b,c* described lengths of sides of the block - length, width, high.

Parameters

*prop, val* are using for change color or opacity. These parameters are optional.

Example:

*
block([0,2],[0,3.2],[0,-1.2],[2,3],[3,2],[4,5],["c","o"],[[1 0.5 0.5],0.5]);*

download m-file
__Function file:__ **cuboid(m,n,p,n_number,r,v,prop,val) **

This function plots a cuboid with optional number of sides. Definition:

- 1 cuboid - centre cuboid in [m,n,p], number of sides "n_number", radius "r" and high "v"; all values are scalar
- n-hranolů - centres cuboids in [m,n,p], numbers of sides "n_number", radiuses "r" and highs "v"; all values are vectors

Parameters of function:

Parameters

*m,n,p* described centre of the cuboid in axes x,y,z.

Parameter

*n_numer* described umber of the sides of cuboid (so regular n-square).

Parameter

*r* is using for change radius of regular n-square.

Parameter

*v* is using for change high of cuboid.

Parameters

*prop, val* are using for change color or opacity. These parameters are optional.

Example:

*
cuboid([0,2],[0,3.2],[0,-1.2],[6,8],[3,2],[5,5],["c","o"],[[0 1 1],0.5]);*