![]() |
AngelCAD
1.5-00
|
cuboid, by default in 1st octant with one corner toucing origin More...
#include <angelcad.h>
Public Member Functions | |
| cuboid (double dx, double dy, double dz, bool center=false) | |
| Create cuboid. More... | |
| double | dx () const |
| extent in x-drection More... | |
| double | dy () const |
| extent in y-drection More... | |
| double | dz () const |
| extent in z-drection More... | |
Public Member Functions inherited from solid | |
| solid@ | opAdd (solid@ b) |
| Boolean union operator+ overload. More... | |
| solid@ | opAnd (solid@ b) |
| Boolean intersection operator& overload. More... | |
| solid@ | opMul (tmatrix@ matrix) |
| Transform object by matrix multiplication: solid@ o2 = T * o1. More... | |
| solid@ | opSub (solid@ b) |
| Boolean difference operator- overload. More... | |
Public Member Functions inherited from shape | |
| boundingbox@ | box () const |
| Return bounding box of object. More... | |
| tmatrix@ | transform () const |
| Return transformation matrix of object. More... | |
| void | write_csg (string path) |
| Write object to OpenSCAD .csg file. More... | |
| void | write_xcsg (string path, double secant_tolerance=- 1.0) |
| Write object to .xcsg file for processing by xcsg program. More... | |
cuboid, by default in 1st octant with one corner toucing origin
A cuboid is like a cube, but with separate dimensions in x,y and z.
By default the cuboid touches the origin, and extends along positive x,y,z.
| cuboid::cuboid | ( | double | dx, |
| double | dy, | ||
| double | dz, | ||
| bool | center = false |
||
| ) |
Create cuboid.
| dx | double, extent in x-drection |
| dy | double, extent of y-direction |
| dz | double, extent of z-direction |
| center | bool, true if cuboid is centered on origin |
| double cuboid::dx | ( | ) | const |
extent in x-drection
| double cuboid::dy | ( | ) | const |
extent in y-drection
| double cuboid::dz | ( | ) | const |
extent in z-drection
1.8.13