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

3d difference boolean operation More...

#include <angelcad.h>

Inheritance diagram for difference3d:
solid shape

Public Member Functions

 difference3d (solid@ incl, solid@ excl)
 Compute boolean difference for 3d objects. 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

3d difference boolean operation

difference3d is a 3-dimensional boolean operation. It can be invoked either
explicitly or using subtraction operator:
explicit: solid@ object = difference3d(sphere(100),sphere(50));
using subtraction operator: solid@ object = sphere(100) - sphere(50);

Constructor & Destructor Documentation

◆ difference3d()

difference3d::difference3d ( solid incl,
solid excl 
)

Compute boolean difference for 3d objects.

Parameters
inclsolid@, objects to be included
exclsolid@, objects to be excluded (subtracted)

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