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

Abstract base for 3d primitives and booleans. More...

#include <angelcad.h>

Inheritance diagram for solid:
shape cone cube cuboid cylinder difference3d hull3d intersection3d linear_extrude minkowski3d polyhedron rotate_extrude sphere sweep transform_extrude union3d

Public Member Functions

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

Abstract base for 3d primitives and booleans.

solid is an abstract base class for all 3d objects.

Member Function Documentation

◆ opAdd()

solid@ solid::opAdd ( solid b)

Boolean union operator+ overload.

Parameters
bsolid@
Returns
solid@, resulting solid

◆ opAnd()

solid@ solid::opAnd ( solid b)

Boolean intersection operator& overload.

Parameters
bsolid@
Returns
solid@, resulting solid

◆ opMul()

solid@ solid::opMul ( tmatrix matrix)

Transform object by matrix multiplication: solid@ o2 = T * o1.

Parameters
matrixtmatrix@
Returns
solid@

◆ opSub()

solid@ solid::opSub ( solid b)

Boolean difference operator- overload.

Parameters
bsolid@
Returns
solid@, resulting solid

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