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

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

#include <angelcad.h>

Inheritance diagram for shape2d:
shape circle difference2d fill2d hull2d intersection2d minkowski2d offset2d polygon projection2d rectangle square union2d

Public Member Functions

shape2dopAdd (shape2d@ b)
 Boolean union operator+ overload. More...
 
shape2dopAnd (shape2d@ b)
 Boolean intersection operator& overload. More...
 
shape2dopMul (tmatrix@ matrix)
 Transform object by matrix multiplication: shape2d@ o2 = T * o1. More...
 
shape2dopSub (shape2d@ 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 2d primitives and booleans.

shape2d is an abstract base class for all 2d objects.

Member Function Documentation

◆ opAdd()

shape2d@ shape2d::opAdd ( shape2d b)

Boolean union operator+ overload.

Parameters
bshape2d@
Returns
shape2d@, resulting 2d shape

◆ opAnd()

shape2d@ shape2d::opAnd ( shape2d b)

Boolean intersection operator& overload.

Parameters
bshape2d@
Returns
shape2d@, resulting 2d shape

◆ opMul()

shape2d@ shape2d::opMul ( tmatrix matrix)

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

Parameters
matrixtmatrix@
Returns
shape2d@

◆ opSub()

shape2d@ shape2d::opSub ( shape2d b)

Boolean difference operator- overload.

Parameters
bshape2d@
Returns
shape2d@, resulting 2d shape

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