AngelCAD  1.5-00
Public Member Functions | List of all members
cuboid Class Reference

cuboid, by default in 1st octant with one corner toucing origin More...

#include <angelcad.h>

Inheritance diagram for cuboid:
solid shape

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
solidopAdd (solid@ b)
 Boolean union operator+ overload. More...
 
solidopAnd (solid@ b)
 Boolean intersection operator& overload. More...
 
solidopMul (tmatrix@ matrix)
 Transform object by matrix multiplication: solid@ o2 = T * o1. More...
 
solidopSub (solid@ b)
 Boolean difference operator- overload. More...
 
- Public Member Functions inherited from shape
boundingboxbox () const
 Return bounding box of object. More...
 
tmatrixtransform () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ cuboid()

cuboid::cuboid ( double  dx,
double  dy,
double  dz,
bool  center = false 
)

Create cuboid.

Parameters
dxdouble, extent in x-drection
dydouble, extent of y-direction
dzdouble, extent of z-direction
centerbool, true if cuboid is centered on origin

Member Function Documentation

◆ dx()

double cuboid::dx ( ) const

extent in x-drection

Returns
double, extent in x-drection

◆ dy()

double cuboid::dy ( ) const

extent in y-drection

Returns
double, extent in y-drection

◆ dz()

double cuboid::dz ( ) const

extent in z-drection

Returns
double, extent in z-drection

The documentation for this class was generated from the following file: